diff options
Diffstat (limited to 'Mac/Compat/dirent.h')
-rw-r--r-- | Mac/Compat/dirent.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Mac/Compat/dirent.h b/Mac/Compat/dirent.h new file mode 100644 index 0000000..44cfc5a --- /dev/null +++ b/Mac/Compat/dirent.h @@ -0,0 +1,22 @@ +/* + * "Dir.h" for the Macintosh. + * Public domain by Guido van Rossum, CWI, Amsterdam (July 1987). + */ + +#define MAXNAMLEN 31 +#define MAXPATH 256 + +#define DIR struct _dir + +struct _dir { + long dirid; + int nextfile; +}; + +struct dirent { + char d_name[MAXPATH]; +}; + +extern DIR *opendir(char *); +extern struct dirent *readdir(DIR *); +extern void closedir(DIR *); |