wok-current annotate linld/stuff/src/ISO9660.H @ rev 20426
linld: fix xmm_driver
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 13 00:46:30 2018 +0200 (2018-08-13) |
parents | 008ac2992c52 |
children | f0d71e920c5a |
rev | line source |
---|---|
pascal@19515 | 1 #ifndef __ISO9660_H |
pascal@19515 | 2 #define __ISO9660_H |
pascal@19826 | 3 //typedef unsigned long dirsizetype; |
pascal@19826 | 4 //#define filesize2dirsize(x) (x) |
pascal@19826 | 5 //#define DIRSECTORSZ SECTORSZ |
pascal@19826 | 6 typedef unsigned dirsizetype; |
pascal@19826 | 7 #define filesize2dirsize(x) (*(unsigned *)((char *)&(x)+1)) |
pascal@19826 | 8 #define DIRSECTORSZ (SECTORSZ/256) |
pascal@19571 | 9 extern struct isostate { |
pascal@19571 | 10 int fd; |
pascal@19872 | 11 unsigned short filemod; |
pascal@19571 | 12 unsigned long fileofs; |
pascal@19571 | 13 unsigned long filesize; |
pascal@19571 | 14 char *filename; |
pascal@19571 | 15 //private |
pascal@19826 | 16 dirsizetype curdirsize, dirsize; |
pascal@19826 | 17 unsigned long curdirofs, dirofs; |
pascal@19636 | 18 unsigned curpos; |
pascal@19571 | 19 } isostate; |
pascal@19571 | 20 #define isofd isostate.fd |
pascal@19571 | 21 #define isofileofs isostate.fileofs |
pascal@19571 | 22 #define isofilesize isostate.filesize |
pascal@19571 | 23 #define isofilemod isostate.filemod |
pascal@19571 | 24 #define isofilename isostate.filename |
pascal@19825 | 25 extern "C" unsigned long isolseek(const unsigned long *offset); |
pascal@19515 | 26 extern int isoreset(char *name); |
pascal@19825 | 27 extern int isoopen(const char *name); |
pascal@19515 | 28 extern int isoreaddir(int restart); |
pascal@19515 | 29 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0) |
pascal@19515 | 30 #endif |