wok-6.x view linld/stuff/src/ISO9660.H @ rev 20528
linld: pascal convention calls
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 09 16:37:55 2018 +0100 (2018-11-09) |
parents | f01ec3e34a08 |
children | af959ebf1305 |
line source
1 #ifndef __ISO9660_H
2 #define __ISO9660_H
3 //typedef unsigned long dirsizetype;
4 //#define filesize2dirsize(x) (x)
5 //#define DIRSECTORSZ SECTORSZ
6 typedef unsigned dirsizetype;
7 #define filesize2dirsize(x) (*(unsigned *)((char *)&(x)+1))
8 #define DIRSECTORSZ (SECTORSZ/256)
9 extern struct isostate {
10 int fd;
11 unsigned short filemod;
12 unsigned long fileofs;
13 unsigned long filesize;
14 char *filename;
15 //private
16 dirsizetype curdirsize, dirsize;
17 unsigned long curdirofs, dirofs;
18 unsigned curpos;
19 } isostate;
20 #define isofd isostate.fd
21 #define isofileofs isostate.fileofs
22 #define isofilesize isostate.filesize
23 #define isofilemod isostate.filemod
24 #define isofilename isostate.filename
25 extern pascal int isolseek(const unsigned long *offset);
26 extern int isoreset(char *name);
27 extern int isoopen(const char *name);
28 extern int isoreaddir(int restart);
29 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0)
30 #endif