malloc: Use __get_nprocs on arena_get2 (BZ 30945)
[glibc.git] / conform / data / fcntl.h-data
blobffa4a351fb43925e94b5cef13cec2fd9112da792
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 // Bug 23081: l_type and l_whence members of flock structure have type int instead of short
82 xfail[i386-gnu]-element {struct flock} short l_type
83 xfail[i386-gnu]-element {struct flock} short l_whence
84 element {struct flock} off_t l_start
85 element {struct flock} off_t l_len
86 element {struct flock} pid_t l_pid
88 #if !defined POSIX
89 # if !defined UNIX98
90 type mode_t
91 # endif
92 type off_t
93 type pid_t
94 #endif
96 function int creat (const char*, mode_t)
97 function int fcntl (int, int, ...)
98 function int open (const char*, int, ...)
99 #if defined XOPEN2K8 || defined POSIX2008
100 function int openat (int, const char*, int, ...)
101 #endif
102 #if defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
103 function int posix_fadvise (int, off_t, off_t, int)
104 function int posix_fallocate (int, off_t, off_t)
105 #endif
107 #if defined XOPEN2K8 || defined POSIX2008
108 // Bug 18228: O_TTY_INIT, O_EXEC, O_SEARCH missing.
109 xfail-constant O_TTY_INIT
110 constant O_CLOEXEC
111 xfail-constant O_EXEC
112 xfail-constant O_SEARCH
113 constant O_DIRECTORY
114 constant O_NOFOLLOW
115 constant F_DUPFD_CLOEXEC
116 constant AT_FDCWD
117 constant AT_EACCESS
118 constant AT_SYMLINK_NOFOLLOW
119 constant AT_SYMLINK_FOLLOW
120 constant AT_REMOVEDIR
122 function int openat (int, const char*, int, ...)
123 #endif
125 #if !defined POSIX
126 allow-header sys/stat.h
127 allow-header unistd.h
128 #endif
130 allow l_*
131 allow F_*
132 allow O_*
133 allow S_*
134 allow *_t
135 #endif