diff options
Diffstat (limited to 'Mac/Compat/macstat.h')
-rw-r--r-- | Mac/Compat/macstat.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Mac/Compat/macstat.h b/Mac/Compat/macstat.h new file mode 100644 index 0000000..c14116a --- /dev/null +++ b/Mac/Compat/macstat.h @@ -0,0 +1,25 @@ +/* Include file belonging to stat emulator. + Public domain by Guido van Rossum, CWI, Amsterdam (July 1987). */ + +struct stat { + unsigned short st_mode; + unsigned long st_size; + unsigned long st_rsize; /* Resource size -- nonstandard */ + unsigned long st_mtime; +}; + +#ifdef UNIX_COMPAT +#define S_IFMT 0170000L +#define S_IFDIR 0040000L +#define S_IFREG 0100000L +#define S_IREAD 0400 +#define S_IWRITE 0200 +#define S_IEXEC 0100 +#else +#define S_IFMT 0xFFFF +#define S_IFDIR 0x0000 +#define S_IFREG 0x0003 +#define S_IREAD 0400 +#define S_IWRITE 0200 +#define S_IEXEC 0100 +#endif |