| 1 |
/* |
| 2 |
Copyright (c) 1990-1999 Info-ZIP. All rights reserved. |
| 3 |
|
| 4 |
See the accompanying file LICENSE, version 1999-Oct-05 or later |
| 5 |
(the contents of which are also included in zip.h) for terms of use. |
| 6 |
If, for some reason, both of these files are missing, the Info-ZIP license |
| 7 |
also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html |
| 8 |
*/ |
| 9 |
/* <dirent.h> definitions */ |
| 10 |
|
| 11 |
#define NAMELEN 8 |
| 12 |
|
| 13 |
struct dirent { |
| 14 |
struct dirent *d_next; |
| 15 |
char d_name[NAMELEN+1]; |
| 16 |
}; |
| 17 |
|
| 18 |
typedef struct _DIR { |
| 19 |
struct dirent *D_list; |
| 20 |
struct dirent *D_curpos; |
| 21 |
char D_path[FILENAME_MAX]; |
| 22 |
} DIR; |
| 23 |
|
| 24 |
DIR * opendir(const char *dirname); |
| 25 |
struct dirent *readdir(DIR *dirp); |
| 26 |
void rewinddir(DIR *dirp); |
| 27 |
int closedir(DIR *dirp); |
| 28 |
char * readd(DIR *dirp); |
| 29 |
|
| 30 |
#define ALIAS_MASK (unsigned int) 0x80 |
| 31 |
#define SKIP_MASK (unsigned int) 0x1F |
| 32 |
#define TTRLEN 3 |
| 33 |
#define RECLEN 254 |
| 34 |
|
| 35 |
typedef _Packed struct { |
| 36 |
unsigned short int count; |
| 37 |
char rest[RECLEN]; |
| 38 |
} RECORD; |
| 39 |
|
| 40 |
char *endmark = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"; |