4 // Provide UNIX compatibility
10 // NT versions of readdir(), etc
11 // From the MSDOS implementation
14 // Directory entry size
18 #define DIRSIZ(rp) (sizeof(struct direct))
20 // needed to compile directory stuff
23 // structure of a directory entry
26 long d_ino; // inode number (not used by MS-DOS)
27 int d_namlen; // Name length
28 char d_name[257]; // file name
31 // structure for dir operations
32 typedef struct _dir_struc
34 char *start; // Starting position
35 char *curr; // Current position
36 long size; // Size of string table
37 long nfiles; // number if filenames in table
38 struct direct dirstr; // Directory structure to return
41 DIR * win32_opendir(char *filename);
42 struct direct * win32_readdir(DIR *dirp);
43 long win32_telldir(DIR *dirp);
44 void win32_seekdir(DIR *dirp,long loc);
45 void win32_rewinddir(DIR *dirp);
46 int win32_closedir(DIR *dirp);