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

Openssh (8.5p1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 08 09:21:26 2021 +0000 (2021-04-08)
parents 217c02cbbe8d
children
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 long fileofs;
14 unsigned long filesize;
15 unsigned long filepos;
16 dirsizetype dirsize;
17 typedef unsigned dirpagetype;
18 dirpagetype dirpage;
19 dirsizetype curdirsize;
20 unsigned long curdirofs;
21 char *filename;
22 char _64bits;
23 char c;
24 int entrysize;
25 const char *tmp;
26 #define SECTORSZ 2048
27 #define SECTORBITS 11
28 } isostate;
29 #define isofd isostate.fd
30 #define isofileofs isostate.fileofs
31 #define isofilesize isostate.filesize
32 #define isofilename isostate.filename
33 extern _fastcall void isolseek(const unsigned long *offset);
34 extern _fastcall int isoreadsector(const unsigned long *offset);
35 extern int _isoopen(void);
36 extern int isoreaddir(void);
37 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0)
38 #define setiso(x) (isostate.fd = open(x))
39 extern u8 buf2k[2048];
40 #endif