wok view linld/stuff/src/ISO9660.H @ rev 21754

Up firefox-official (67.0.3), tinyproxy (1.10.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 19 17:26:14 2019 +0200 (2019-06-19)
parents 6460d542c35a
children 72e35f3c7aa1
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) (*(dirsizetype *)((char *)&(x)+1))
8 #define DIRSECTORSZ (SECTORSZ/256)
9 extern struct isostate {
10 unsigned curpos;
11 char *filename2open;
12 int fd;
13 unsigned short filemod;
14 unsigned long fileofs;
15 unsigned long filesize;
16 char *filename;
17 dirsizetype curdirsize, dirsize;
18 unsigned long curdirofs, dirofs;
19 int entrysize;
20 const char *tmp;
21 char c;
22 char _64bits;
23 #define SECTORSZ 2048
24 #define SECTORBITS 11
25 char buffer[SECTORSZ+512]; // RR overflow
26 } isostate;
27 #define isofd isostate.fd
28 #define isofileofs isostate.fileofs
29 #define isofilesize isostate.filesize
30 #define isofilemod isostate.filemod
31 #define isofilename isostate.filename
32 extern _fastcall long isolseek(const unsigned long *offset);
33 extern _fastcall int isoreadsector(const unsigned long *offset);
34 extern _fastcall int isoreset(char *name);
35 extern _fastcall int isoopen(const char *name);
36 extern int isoreaddir(void);
37 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0)
38 #endif