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

vlgothic-fonts: use archive.org as web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 13 15:52:10 2019 +0200 (2019-06-13)
parents 0e811092e7bb
children 8b9f768b711e
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 int entrysize;
21 const char *tmp;
22 #define SECTORSZ 2048
23 #define SECTORBITS 11
24 char buffer[SECTORSZ+512]; // RR overflow
25 } isostate;
26 #define isofd isostate.fd
27 #define isofileofs isostate.fileofs
28 #define isofilesize isostate.filesize
29 #define isofilemod isostate.filemod
30 #define isofilename isostate.filename
31 extern _fastcall long isolseek(const unsigned long *offset);
32 extern _fastcall int isoreadsector(const unsigned long *offset);
33 extern _fastcall int isoreset(char *name);
34 extern _fastcall int isoopen(const char *name);
35 extern int isoreaddir(void);
36 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0)
37 #endif