diff options
author | Guido van Rossum <guido@python.org> | 1994-08-26 09:09:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-26 09:09:48 (GMT) |
commit | e78344444086581bdf59f13415b0c701e740cce1 (patch) | |
tree | 3acac917aadc26e434e55d139ddfcab7d671ef3b /Mac/Compat/macstat.h | |
parent | f0171a1626164cad064930e60fe5f06ca2c51f8b (diff) | |
download | cpython-e78344444086581bdf59f13415b0c701e740cce1.zip cpython-e78344444086581bdf59f13415b0c701e740cce1.tar.gz cpython-e78344444086581bdf59f13415b0c701e740cce1.tar.bz2 |
Intermediate version of changes after porting to MPW 3.2
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 |