b0e10a4c7f4a75f095103395d6b542c06ffa1acc
[platform/upstream/glibc.git] / conform / data / sys / stat.h-data
1 #ifndef ISO
2
3 type {struct stat}
4
5 element {struct stat} dev_t st_dev
6 element {struct stat} ino_t st_ino
7 element {struct stat} mode_t st_mode
8 element {struct stat} nlink_t st_nlink
9 element {struct stat} uid_t st_uid
10 element {struct stat} gid_t st_gid
11 #if !defined POSIX && !defined POSIX2008
12 element {struct stat} dev_t st_rdev
13 #endif
14 element {struct stat} off_t st_size
15 element {struct stat} time_t st_atime
16 element {struct stat} time_t st_mtime
17 element {struct stat} time_t st_ctime
18 #if !defined POSIX && !defined POSIX2008
19 element {struct stat} blksize_t st_blksize
20 element {struct stat} blkcnt_t st_blocks
21 #endif
22
23 #if !defined POSIX && !defined POSIX2008
24 type blkcnt_t
25 type blksize_t
26 #endif
27 type dev_t
28 type ino_t
29 type mode_t
30 type nlink_t
31 type uid_t
32 type gid_t
33 type off_t
34 type time_t
35 # if defined XOPEN2K8 || defined POSIX2008
36 type {struct timespec}
37 element {struct timespec} time_t tv_sec
38 element {struct timespec} long tv_nsec
39 # endif
40
41 #if !defined POSIX && !defined POSIX2008
42 constant S_IFMT
43 constant S_IFBLK
44 constant S_IFCHR
45 constant S_IFIFO
46 constant S_IFREG
47 constant S_IFDIR
48 constant S_IFLNK
49 constant S_IFSOCK
50 #endif
51
52 constant S_IRWXU
53 constant S_IRUSR
54 constant S_IWUSR
55 constant S_IXUSR
56 constant S_IRWXG
57 constant S_IWGRP
58 constant S_IXGRP
59 constant S_IRWXO
60 constant S_IROTH
61 constant S_IWOTH
62 constant S_IXOTH
63 constant S_ISUID
64 constant S_ISGID
65 #if !defined POSIX && !defined POSIX2008
66 constant S_ISVTX
67 #endif
68
69 #if !defined POSIX
70 macro S_ISBLK
71 macro S_ISCHR
72 macro S_ISDIR
73 macro S_ISFIFO
74 macro S_ISREG
75 macro S_ISLNK
76 macro S_ISSOCK
77 #endif
78
79 // How to represent optional tests?
80 optional-macro S_TYPEISMQ
81 optional-macro S_TYPEISSEM
82 optional-macro S_TYPEISSHM
83 optional-macro S_TYPEISTMO
84
85 # if defined XOPEN2K8 || defined POSIX2008
86 constant UTIME_NOW
87 constant UTIME_OMIT
88 # endif
89
90 function int chmod (const char*, mode_t)
91 function int fchmod (int, mode_t)
92 # if defined XOPEN2K8 || defined POSIX2008
93 function int fchmodat (int, const char*, mode_t, int)
94 # endif
95 function int fstat (int, struct stat*)
96 # if defined XOPEN2K8 || defined POSIX2008
97 function int fstatat (int, const char*, struct stat*, int)
98 function int futimens (int, const struct timespec[2])
99 # endif
100 function int lstat (const char*, struct stat*)
101 function int mkdir (const char*, mode_t)
102 # if defined XOPEN2K8 || defined POSIX2008
103 function int mkdirat (int, const char*, mode_t)
104 # endif
105 function int mkfifo (const char*, mode_t)
106 # if defined XOPEN2K8 || defined POSIX2008
107 function int mkfifoat (int, const char*, mode_t)
108 # endif
109 # if !defined POSIX && !defined POSIX2008
110 function int mknod (const char*, mode_t, dev_t)
111 function int mknodat (int, const char*, mode_t, dev_t)
112 # endif
113 function int stat (const char*, struct stat*)
114 function mode_t umask (mode_t)
115 # if defined XOPEN2K8 || defined POSIX2008
116 function int utimensat (int, const char*, const struct timespec[2], int)
117 # endif
118
119 allow st_*
120 allow S_*
121 allow *_t
122 #endif