1994-08-26 09:09:48 +00:00
|
|
|
/* Include file belonging to stat emulator.
|
1994-08-29 08:42:37 +00:00
|
|
|
Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
|
|
|
|
Updated August 1994. */
|
1994-08-26 09:09:48 +00:00
|
|
|
|
1994-08-29 08:42:37 +00:00
|
|
|
struct macstat {
|
|
|
|
unsigned short st_dev;
|
|
|
|
unsigned long st_ino;
|
1994-08-26 09:09:48 +00:00
|
|
|
unsigned short st_mode;
|
1994-08-29 08:42:37 +00:00
|
|
|
unsigned short st_nlink;
|
|
|
|
unsigned short st_uid;
|
|
|
|
unsigned short st_gid;
|
|
|
|
unsigned short st_rdev;
|
1994-08-26 09:09:48 +00:00
|
|
|
unsigned long st_size;
|
1994-08-29 08:42:37 +00:00
|
|
|
unsigned long st_atime;
|
1994-08-26 09:09:48 +00:00
|
|
|
unsigned long st_mtime;
|
1994-08-29 08:42:37 +00:00
|
|
|
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' */
|
1994-08-26 09:09:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define S_IFMT 0170000L
|
|
|
|
#define S_IFDIR 0040000L
|
|
|
|
#define S_IFREG 0100000L
|
|
|
|
#define S_IREAD 0400
|
|
|
|
#define S_IWRITE 0200
|
|
|
|
#define S_IEXEC 0100
|