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

Add util-linux-losetup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 26 09:46:23 2018 +0100 (2018-11-26)
parents f0d71e920c5a
children 65366955881f
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) (*(unsigned *)((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 pascal long isolseek(const unsigned long *offset);
29 extern pascal int isoreadsector(const unsigned long *offset);
30 extern int isoreset(char *name);
31 extern int isoopen(const char *name);
32 extern int isoreaddir(int restart);
33 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0)
34 #endif