support_become_root: Enable file creation in user namespaces
[glibc.git] / conform / data / fcntl.h-data
blob17596f5ff1368769cf849902659f635002719770
1 #if !defined ISO && !defined ISO99 && !defined ISO11
2 constant F_DUPFD
3 constant F_GETFD
4 constant F_SETFD
5 constant F_GETFL
6 constant F_SETFL
7 constant F_GETLK
8 constant F_SETLK
9 constant F_SETLKW
10 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
11 constant F_GETOWN
12 constant F_SETOWN
13 #endif
15 constant FD_CLOEXEC
17 constant F_RDLCK
18 constant F_UNLCK
19 constant F_WRLCK
21 #if defined POSIX
22 allow SEEK_SET
23 allow SEEK_CUR
24 allow SEEK_END
25 #else
26 constant SEEK_SET
27 constant SEEK_CUR
28 constant SEEK_END
29 #endif
31 constant O_CREAT
32 constant O_EXCL
33 constant O_NOCTTY
34 constant O_TRUNC
36 constant O_APPEND
37 constant O_NONBLOCK
38 constant O_SYNC
39 #if !defined XPG4 && !defined XPG42
40 constant O_DSYNC
41 constant O_RSYNC
42 #endif
44 constant O_ACCMODE
46 constant O_RDONLY
47 constant O_RDWR
48 constant O_WRONLY
50 #if !defined POSIX
51 constant S_IRWXU
52 constant S_IRUSR
53 constant S_IWUSR
54 constant S_IXUSR
55 constant S_IRWXG
56 constant S_IRGRP
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 POSIX2008
66 constant S_ISVTX
67 #endif
68 #endif
70 #if defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
71 constant POSIX_FADV_NORMAL
72 constant POSIX_FADV_SEQUENTIAL
73 constant POSIX_FADV_RANDOM
74 constant POSIX_FADV_WILLNEED
75 constant POSIX_FADV_DONTNEED
76 constant POSIX_FADV_NOREUSE
77 #endif
79 type {struct flock}
81 element {struct flock} short l_type
82 element {struct flock} short l_whence
83 element {struct flock} off_t l_start
84 element {struct flock} off_t l_len
85 element {struct flock} pid_t l_pid
87 #if !defined POSIX
88 # if !defined UNIX98
89 type mode_t
90 # endif
91 type off_t
92 type pid_t
93 #endif
95 function int creat (const char*, mode_t)
96 function int fcntl (int, int, ...)
97 function int open (const char*, int, ...)
98 #if defined XOPEN2K8 || defined POSIX2008
99 function int openat (int, const char*, int, ...)
100 #endif
101 #if defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
102 function int posix_fadvise (int, off_t, off_t, int)
103 function int posix_fallocate (int, off_t, off_t)
104 #endif
106 #if defined XOPEN2K8 || defined POSIX2008
107 // Bug 18228: O_TTY_INIT, O_EXEC, O_SEARCH missing.
108 xfail-constant O_TTY_INIT
109 constant O_CLOEXEC
110 xfail-constant O_EXEC
111 xfail-constant O_SEARCH
112 constant O_DIRECTORY
113 constant O_NOFOLLOW
114 constant F_DUPFD_CLOEXEC
115 constant AT_FDCWD
116 constant AT_EACCESS
117 constant AT_SYMLINK_NOFOLLOW
118 constant AT_SYMLINK_FOLLOW
119 constant AT_REMOVEDIR
121 function int openat(int, const char*, int, ...)
122 #endif
124 #if !defined POSIX
125 allow-header sys/stat.h
126 allow-header unistd.h
127 #endif
129 allow l_*
130 allow F_*
131 allow O_*
132 allow S_*
133 allow *_t
134 #endif