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

linld: more ram for zImage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 27 23:23:13 2019 +0200 (2019-05-27)
parents 6f2188ee6be5
children 6460d542c35a
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 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 char *filename2open;
20 #define SECTORSZ 2048
21 #define SECTORBITS 11
22 char buffer[SECTORSZ+512]; // RR overflow
23 } isostate;
24 #define isofd isostate.fd
25 #define isofileofs isostate.fileofs
26 #define isofilesize isostate.filesize
27 #define isofilemod isostate.filemod
28 #define isofilename isostate.filename
29 extern _fastcall long isolseek(const unsigned long *offset);
30 extern _fastcall int isoreadsector(const unsigned long *offset);
31 extern _fastcall int isoreset(char *name);
32 extern _fastcall int isoopen(const char *name);
33 extern int isoreaddir(void);
34 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0)
35 #endif