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

syslinux: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 28 16:32:57 2021 +0000 (2021-02-28)
parents 72e35f3c7aa1
children 217c02cbbe8d
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 short 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 unsigned long filepos;
17 char *filename;
18 dirsizetype curdirsize, dirsize;
19 typedef unsigned dirpagetype;
20 dirpagetype dirpage;
21 unsigned long curdirofs;
22 int entrysize;
23 const char *tmp;
24 char c;
25 char _64bits;
26 #define SECTORSZ 2048
27 #define SECTORBITS 11
28 char buffer[SECTORSZ+512]; // RR overflow
29 } isostate;
30 #define isofd isostate.fd
31 #define isofileofs isostate.fileofs
32 #define isofilesize isostate.filesize
33 #define isofilemod isostate.filemod
34 #define isofilename isostate.filename
35 extern _fastcall void isolseek(const unsigned long *offset);
36 extern _fastcall int isoreadsector(const unsigned long *offset);
37 extern int _isoopen(void);
38 extern int isoreaddir(void);
39 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0)
40 #define setiso(x) (isostate.fd = open(x))
41 #endif