Trailing-Edge
-
PDP-10 Archives
-
SRI_NIC_PERM_FS_1_19910112
-
c/old/lib/stat.h
There are 10 other files named stat.h in the archive. Click here to see a list.
/* stat.h 6.1 83/07/29 */
#include "sys/types.h"
struct stat
{
dev_t st_dev;
ino_t st_ino;
unsigned short st_mode;
short st_nlink;
short st_uid;
short st_gid;
dev_t st_rdev;
off_t st_size;
time_t st_atime;
int st_spare1;
time_t st_mtime;
int st_spare2;
time_t st_ctime;
int st_spare3;
long st_blksize;
long st_blocks;
long st_spare4[2];
};
struct xstat {
struct stat st; /* include original structure */
union { /* device-dependant portion */
struct {
int state; /* connection state */
int fhost; /* foreign host# */
int fport; /* foreign port# */
} tcp;
struct {
int version; /* version# of file */
} disk;
} dev_dep;
};
#define xst_fhost dev_dep.tcp.fhost
#define xst_fport dev_dep.tcp.fport
#define xst_state dev_dep.tcp.state
#define xst_version dev_dep.disk.version
#define ST_DEV_DSK 0
#define ST_DEV_MTA 2
#define ST_DEV_LPT 7
#define ST_DEV_CDR 010
#define ST_DEV_FE 011
#define ST_DEV_TTY 012
#define ST_DEV_PTY 013
#define ST_DEV_NUL 015
#define ST_DEV_NET 016 /* old stuff? */
#define ST_DEV_DCN 022 /* DECnet active component */
#define ST_DEV_SRV 023 /* DECnet passive component */
#define ST_DEV_TCP 025
#define S_IFMT 0170000 /* type of file */
#define S_IFDIR 0040000 /* directory */
#define S_IFCHR 0020000 /* character special */
#define S_IFBLK 0060000 /* block special */
#define S_IFREG 0100000 /* regular */
#define S_IFLNK 0120000 /* symbolic link */
#define S_IFSOCK 0140000/* socket */
#define S_ISUID 0004000 /* set user id on execution */
#define S_ISGID 0002000 /* set group id on execution */
#define S_ISVTX 0001000 /* save swapped text even after use */
#define S_IREAD 0000400 /* read permission, owner */
#define S_IWRITE 0000200 /* write permission, owner */
#define S_IEXEC 0000100 /* execute/search permission, owner */