Add i386 memset and memcpy assembly functions
[glibc.git] / conform / data / sys / stat.h-data
blobf5b17a31acd3b3f099b98e964165f63ec191f498
1 #if !defined ISO && !defined ISO99 && !defined ISO11
3 #if !defined POSIX && !defined POSIX2008 && !defined XPG3 && !defined XPG4
4 type blkcnt_t
5 type blksize_t
6 #endif
7 #ifndef POSIX
8 type dev_t
9 type ino_t
10 type mode_t
11 type nlink_t
12 type uid_t
13 type gid_t
14 type off_t
15 type time_t
16 #else
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
25 #endif
27 type {struct stat}
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
37 #endif
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
46 #endif
47 #if !defined POSIX && !defined POSIX2008
48 element {struct stat} blksize_t st_blksize
49 element {struct stat} blkcnt_t st_blocks
50 #endif
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
56 # endif
58 #if !defined POSIX && !defined POSIX2008
59 constant S_IFMT
60 constant S_IFBLK
61 constant S_IFCHR
62 constant S_IFIFO
63 constant S_IFREG
64 constant S_IFDIR
65 constant S_IFLNK
66 constant S_IFSOCK
67 #endif
69 constant S_IRWXU
70 constant S_IRUSR
71 constant S_IWUSR
72 constant S_IXUSR
73 constant S_IRWXG
74 constant S_IRGRP
75 constant S_IWGRP
76 constant S_IXGRP
77 constant S_IRWXO
78 constant S_IROTH
79 constant S_IWOTH
80 constant S_IXOTH
81 constant S_ISUID
82 constant S_ISGID
83 #if !defined POSIX && !defined POSIX2008
84 constant S_ISVTX
85 #endif
87 macro S_ISBLK
88 macro S_ISCHR
89 macro S_ISDIR
90 macro S_ISFIFO
91 macro S_ISREG
92 #if !defined POSIX
93 macro S_ISLNK
94 macro S_ISSOCK
95 #endif
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
103 # endif
105 # if defined XOPEN2K8 || defined POSIX2008
106 constant UTIME_NOW
107 constant UTIME_OMIT
108 # endif
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)
114 # endif
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])
119 # endif
120 #if !defined POSIX
121 function int lstat (const char*, struct stat*)
122 #endif
123 function int mkdir (const char*, mode_t)
124 # if defined XOPEN2K8 || defined POSIX2008
125 function int mkdirat (int, const char*, mode_t)
126 # endif
127 function int mkfifo (const char*, mode_t)
128 # if defined XOPEN2K8 || defined POSIX2008
129 function int mkfifoat (int, const char*, mode_t)
130 # endif
131 # if !defined POSIX && !defined POSIX2008
132 function int mknod (const char*, mode_t, dev_t)
133 # endif
134 # ifdef XOPEN2K8
135 function int mknodat (int, const char*, mode_t, dev_t)
136 # endif
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)
141 # endif
143 allow st_*
144 allow S_*
145 allow *_t
146 #endif