diff options
author | Guido van Rossum <guido@python.org> | 1994-08-29 08:42:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-29 08:42:37 (GMT) |
commit | 739267b7c34c0bdf934059804fde3f027e84bd0b (patch) | |
tree | 25dc06eae2dd9cf8b2bce19683e8d7a5b8ebbc08 /Mac/Compat/macstat.h | |
parent | e78344444086581bdf59f13415b0c701e740cce1 (diff) | |
download | cpython-739267b7c34c0bdf934059804fde3f027e84bd0b.zip cpython-739267b7c34c0bdf934059804fde3f027e84bd0b.tar.gz cpython-739267b7c34c0bdf934059804fde3f027e84bd0b.tar.bz2 |
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
versions -- they now share config.c and config.h, and statting is
always done through macstat.[ch] (THINK's <stat.h> defines funny
constants). Also the configuration of stdwin is done differently: you
have to define USE_STDWIN to the compiler prefix.
Diffstat (limited to 'Mac/Compat/macstat.h')
-rw-r--r-- | Mac/Compat/macstat.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/Mac/Compat/macstat.h b/Mac/Compat/macstat.h index c14116a..4c24219 100644 --- a/Mac/Compat/macstat.h +++ b/Mac/Compat/macstat.h @@ -1,25 +1,28 @@ /* Include file belonging to stat emulator. - Public domain by Guido van Rossum, CWI, Amsterdam (July 1987). */ + Public domain by Guido van Rossum, CWI, Amsterdam (July 1987). + Updated August 1994. */ -struct stat { +struct macstat { + unsigned short st_dev; + unsigned long st_ino; unsigned short st_mode; + unsigned short st_nlink; + unsigned short st_uid; + unsigned short st_gid; + unsigned short st_rdev; unsigned long st_size; - unsigned long st_rsize; /* Resource size -- nonstandard */ + unsigned long st_atime; unsigned long st_mtime; + unsigned long st_ctime; + /* Non-standard additions */ + unsigned long st_rsize; /* Resource size */ + char st_type[4]; /* File type, e.g. 'APPL' or 'TEXT' */ + char st_creator[4]; /* File creator, e.g. 'PYTH' */ }; -#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 |