diff options
author | Richard Henderson <rth@redhat.com> | 1999-05-03 07:29:06 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1999-05-03 07:29:06 +0000 |
commit | a3acbf46947e52ff596461a4cf6f539884c9dbbd (patch) | |
tree | ef93cefb82fdb4d8f2639e166e277474d9b2acab /include/mpw/sys/stat.h | |
download | cygnal-a3acbf46947e52ff596461a4cf6f539884c9dbbd.tar.gz cygnal-a3acbf46947e52ff596461a4cf6f539884c9dbbd.tar.bz2 cygnal-a3acbf46947e52ff596461a4cf6f539884c9dbbd.zip |
19990502 sourceware importbinu_ss_19990502
Diffstat (limited to 'include/mpw/sys/stat.h')
-rw-r--r-- | include/mpw/sys/stat.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/mpw/sys/stat.h b/include/mpw/sys/stat.h new file mode 100644 index 000000000..b65c72e10 --- /dev/null +++ b/include/mpw/sys/stat.h @@ -0,0 +1,44 @@ +/* Imitation sys/stat.h. */ + +#ifndef __SYS_STAT_H__ +#define __SYS_STAT_H__ + +#include <sys/types.h> +#include <time.h> + +struct stat { + dev_t st_dev; + ino_t st_ino; + mode_t st_mode; + short st_nlink; + uid_t st_uid; + gid_t st_gid; + dev_t st_rdev; + off_t st_size; + off_t st_rsize; + 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]; +}; + +#define S_IFMT 0170000L +#define S_IFDIR 0040000L +#define S_IFREG 0100000L +#define S_IREAD 0400 +#define S_IWRITE 0200 +#define S_IEXEC 0100 + +#define S_IFIFO 010000 /* FIFO special */ +#define S_IFCHR 020000 /* character special */ +#define S_IFBLK 030000 /* block special */ + +int stat (char *path, struct stat *buf); +int fstat (int fd, struct stat *buf); + +#endif /* __SYS_STAT_H___ */ |