#
/*
	Structure for use with stat(II) and fstat(II).   (2.4)
*/

struct Statbuf {
	char minor;
	char major;
	int  inumber;
	int  flags;
	char nlinks;
	char uid;
	char gid;
	char size0;
	int  size1;
	int  addr[8];
	int  actime[2];
	int  modtime[2];
};

/* flags */

#define	IALLOC	(0100000)		/* file is used */
#define	IFMT	(060000)		/* type of file */
#define		IFDIR	(040000)	/* directory */
#define		IFCHR	(020000)	/* character special */
#define		IFBLK	(060000)	/* block special, 0 is regular */
#define	ILARG	(010000)		/* large addressing algorithm */
#define	ISUID	(04000)		/* set user id on execution */
#define	ISGID	(02000)		/* set group id on execution */
#define ISVTX	(01000)		/* save swapped text even after use */
#define	IREAD	(0400)		/* read, write, execute permissions */
#define	IWRITE	(0200)
#define	IEXEC	(0100)
