summaryrefslogtreecommitdiffstats
path: root/Mac/Compat/macstat.h
blob: 10d9653915b3116c3da6a7cd909895b3675c974d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Include file belonging to stat emulator.
   Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
   Updated August 1994. */

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_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' */
};

#define S_IFMT	0170000
#define S_IFDIR	0040000
#define S_IFREG 0100000
#define S_IREAD    0400
#define S_IWRITE   0200
#define S_IEXEC    0100

extern int macstat(char *, struct macstat *);
/* To stop inclusion of MWerks header: */
#ifndef _STAT
#define _STAT
#endif