wok-current annotate 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 |
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@20534 | 19 #define SECTORSZ 2048 |
pascal@20534 | 20 #define SECTORBITS 11 |
pascal@20534 | 21 char buffer[SECTORSZ+512]; // RR overflow |
pascal@19571 | 22 } isostate; |
pascal@19571 | 23 #define isofd isostate.fd |
pascal@19571 | 24 #define isofileofs isostate.fileofs |
pascal@19571 | 25 #define isofilesize isostate.filesize |
pascal@19571 | 26 #define isofilemod isostate.filemod |
pascal@19571 | 27 #define isofilename isostate.filename |
pascal@20534 | 28 extern pascal long isolseek(const unsigned long *offset); |
pascal@20534 | 29 extern pascal int isoreadsector(const unsigned long *offset); |
pascal@19515 | 30 extern int isoreset(char *name); |
pascal@19825 | 31 extern int isoopen(const char *name); |
pascal@19515 | 32 extern int isoreaddir(int restart); |
pascal@19515 | 33 #define isolabel() do { isofileofs=0x8028; isofilesize=32; } while (0) |
pascal@19515 | 34 #endif |