/* Stat.h  */

struct	stat
{
	int16	st_dev;
	uint16	st_ino;
	uint16  st_mode;
	uint16	st_nlink;
	uint16	st_uid;
	uint16	st_gid;
	uint16	st_rdev;
	off_t	st_size;
	time_t	st_atime;
	time_t	st_mtime;
	time_t	st_ctime;
};

/* Bit masks for i_mode and st_mode */

#define	OTH_EX	0001
#define	OTH_WR	0002
#define OTH_RD	0004
#define	GRP_EX	0010
#define	GRP_WR	0020
#define GRP_RD	0040
#define	OWN_EX	0100
#define	OWN_WR	0200
#define OWN_RD	0400

#define SAV_TXT	01000
#define	SET_GID	02000
#define	SET_UID	04000

#define MODE_MASK 07777

#define	F_REG  0100000
#define	F_DIR	040000
#define F_PIPE  010000
#define	F_BDEV	060000
#define	F_CDEV	020000

#define	F_MASK	0170000

