1987-03-10 09:24:02 +00:00
|
|
|
/* $Header$ */
|
1987-03-09 21:20:21 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1991-10-25 14:44:21 +00:00
|
|
|
|
|
|
|
#ifndef _STAT_H
|
|
|
|
#define _STAT_H
|
|
|
|
|
1987-02-24 11:17:50 +00:00
|
|
|
struct stat {
|
|
|
|
dev_t st_dev;
|
|
|
|
ino_t st_ino;
|
|
|
|
u_short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
|
|
|
dev_t st_rdev;
|
|
|
|
off_t st_size;
|
|
|
|
time_t st_atime;
|
1987-03-10 14:49:29 +00:00
|
|
|
#ifdef __BSD4_2
|
1987-02-24 11:17:50 +00:00
|
|
|
long st_spare1;
|
|
|
|
#endif
|
|
|
|
time_t st_mtime;
|
1987-03-10 14:49:29 +00:00
|
|
|
#ifdef __BSD4_2
|
1987-02-24 11:17:50 +00:00
|
|
|
long st_spare2;
|
|
|
|
#endif
|
|
|
|
time_t st_ctime;
|
1987-03-10 14:49:29 +00:00
|
|
|
#ifdef __BSD4_2
|
1987-02-24 11:17:50 +00:00
|
|
|
long st_spare3;
|
|
|
|
long st_blksize;
|
|
|
|
long st_blocks;
|
|
|
|
long st_spare4[2];
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
#define S_IFMT 0170000
|
|
|
|
#define S_IFDIR 0040000
|
|
|
|
#define S_IFCHR 0020000
|
|
|
|
#define S_IFBLK 0060000
|
|
|
|
#define S_IFREG 0100000
|
1987-03-10 14:49:29 +00:00
|
|
|
#ifndef __BSD4_2
|
|
|
|
#ifndef __USG
|
1987-02-24 11:17:50 +00:00
|
|
|
#define S_IFMPC 0030000
|
|
|
|
#define S_IFMPB 0070000
|
|
|
|
#else
|
|
|
|
#define S_IFIFO 0010000
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define S_IFLNK 0120000
|
|
|
|
#define S_IFSOCK 0140000
|
|
|
|
#endif
|
|
|
|
#define S_ISUID 0004000
|
|
|
|
#define S_ISGID 0002000
|
|
|
|
#define S_ISVTX 0001000
|
|
|
|
#define S_IREAD 0000400
|
|
|
|
#define S_IWRITE 0000200
|
|
|
|
#define S_IEXEC 0000100
|
1991-10-25 14:44:21 +00:00
|
|
|
|
|
|
|
#endif /* _STAT_H */
|