wok-6.x view linld/stuff/src/ISO9660.H @ rev 20751
Add libsbc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 12 12:12:36 2019 +0100 (2019-02-12) |
parents | 65366955881f |
children | 0e811092e7bb |
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 #define SECTORSZ 2048
20 #define SECTORBITS 11
21 char buffer[SECTORSZ+512]; // RR overflow
22 } isostate;
23 #define isofd isostate.fd
24 #define isofileofs isostate.fileofs
25 #define isofilesize isostate.filesize
26 #define isofilemod isostate.filemod
27 #define isofilename isostate.filename
28 extern _fastcall long isolseek(const unsigned long *offset);
29 extern _fastcall int isoreadsector(const unsigned long *offset);
30 extern int isoreset(char *name);
31 extern int isoopen(const char *name);
32 extern int isoreaddir(void);
33 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0)
34 #endif