* elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
[binutils.git] / include / mpw / sys / stat.h
blobb65c72e10c6a669468474f06ae072545f12c0efc
1 /* Imitation sys/stat.h. */
3 #ifndef __SYS_STAT_H__
4 #define __SYS_STAT_H__
6 #include <sys/types.h>
7 #include <time.h>
9 struct stat {
10 dev_t st_dev;
11 ino_t st_ino;
12 mode_t st_mode;
13 short st_nlink;
14 uid_t st_uid;
15 gid_t st_gid;
16 dev_t st_rdev;
17 off_t st_size;
18 off_t st_rsize;
19 time_t st_atime;
20 int st_spare1;
21 time_t st_mtime;
22 int st_spare2;
23 time_t st_ctime;
24 int st_spare3;
25 long st_blksize;
26 long st_blocks;
27 long st_spare4[2];
30 #define S_IFMT 0170000L
31 #define S_IFDIR 0040000L
32 #define S_IFREG 0100000L
33 #define S_IREAD 0400
34 #define S_IWRITE 0200
35 #define S_IEXEC 0100
37 #define S_IFIFO 010000 /* FIFO special */
38 #define S_IFCHR 020000 /* character special */
39 #define S_IFBLK 030000 /* block special */
41 int stat (char *path, struct stat *buf);
42 int fstat (int fd, struct stat *buf);
44 #endif /* __SYS_STAT_H___ */