1 #if !defined ISO && !defined ISO99 && !defined ISO11
3 #if !defined POSIX && !defined POSIX2008 && !defined XPG3 && !defined XPG4
17 # define dev_t __dev_t
18 # define ino_t __ino_t
19 # define mode_t __mode_t
20 # define nlink_t __nlink_t
21 # define uid_t __uid_t
22 # define gid_t __gid_t
23 # define off_t __off_t
24 # define time_t __time_t
29 element {struct stat} dev_t st_dev
30 element {struct stat} ino_t st_ino
31 element {struct stat} mode_t st_mode
32 element {struct stat} nlink_t st_nlink
33 element {struct stat} uid_t st_uid
34 element {struct stat} gid_t st_gid
35 #if !defined POSIX && !defined POSIX2008
36 element {struct stat} dev_t st_rdev
38 element {struct stat} off_t st_size
39 element {struct stat} time_t st_atime
40 element {struct stat} time_t st_mtime
41 element {struct stat} time_t st_ctime
42 #if defined XOPEN2K8 || defined POSIX2008
43 element {struct stat} {struct timespec} st_atim
44 element {struct stat} {struct timespec} st_mtim
45 element {struct stat} {struct timespec} st_ctim
47 #if !defined POSIX && !defined POSIX2008
48 element {struct stat} blksize_t st_blksize
49 element {struct stat} blkcnt_t st_blocks
52 # if defined XOPEN2K8 || defined POSIX2008
53 type {struct timespec}
54 element {struct timespec} time_t tv_sec
55 element {struct timespec} long tv_nsec
58 #if !defined POSIX && !defined POSIX2008
83 #if !defined POSIX && !defined POSIX2008
97 // How to represent optional tests?
98 optional-macro S_TYPEISMQ
99 optional-macro S_TYPEISSEM
100 optional-macro S_TYPEISSHM
101 # if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
102 optional-macro S_TYPEISTMO
105 # if defined XOPEN2K8 || defined POSIX2008
110 function int chmod (const char*, mode_t)
111 function int fchmod (int, mode_t)
112 # if defined XOPEN2K8 || defined POSIX2008
113 function int fchmodat (int, const char*, mode_t, int)
115 function int fstat (int, struct stat*)
116 # if defined XOPEN2K8 || defined POSIX2008
117 function int fstatat (int, const char*, struct stat*, int)
118 function int futimens (int, const struct timespec[2])
121 function int lstat (const char*, struct stat*)
123 function int mkdir (const char*, mode_t)
124 # if defined XOPEN2K8 || defined POSIX2008
125 function int mkdirat (int, const char*, mode_t)
127 function int mkfifo (const char*, mode_t)
128 # if defined XOPEN2K8 || defined POSIX2008
129 function int mkfifoat (int, const char*, mode_t)
131 # if !defined POSIX && !defined POSIX2008
132 function int mknod (const char*, mode_t, dev_t)
135 function int mknodat (int, const char*, mode_t, dev_t)
137 function int stat (const char*, struct stat*)
138 function mode_t umask (mode_t)
139 # if defined XOPEN2K8 || defined POSIX2008
140 function int utimensat (int, const char*, const struct timespec[2], int)