resolv: Remove BSD compatibility conditionals and header
[glibc.git] / conform / data / fcntl.h-data
blob1971d4a7422939722ac7f42d4464f545d0d2f4bc
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 XPG3 && !defined XPG4 && !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 XPG3 && !defined XPG4
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_IFMT
52 constant S_IFBLK
53 constant S_IFCHR
54 constant S_IFIFO
55 constant S_IFREG
56 constant S_IFDIR
57 constant S_IFLNK
58 constant S_IFSOCK
60 constant S_IRWXU
61 constant S_IRUSR
62 constant S_IWUSR
63 constant S_IXUSR
64 constant S_IRWXG
65 constant S_IRGRP
66 constant S_IWGRP
67 constant S_IXGRP
68 constant S_IRWXO
69 constant S_IROTH
70 constant S_IWOTH
71 constant S_IXOTH
72 constant S_ISUID
73 constant S_ISGID
74 #if !defined POSIX2008
75 constant S_ISVTX
76 #endif
77 #endif
79 #if defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
80 constant POSIX_FADV_NORMAL
81 constant POSIX_FADV_SEQUENTIAL
82 constant POSIX_FADV_RANDOM
83 constant POSIX_FADV_WILLNEED
84 constant POSIX_FADV_DONTNEED
85 constant POSIX_FADV_NOREUSE
86 #endif
88 type {struct flock}
90 element {struct flock} short l_type
91 element {struct flock} short l_whence
92 element {struct flock} off_t l_start
93 element {struct flock} off_t l_len
94 element {struct flock} pid_t l_pid
96 #if !defined POSIX
97 # if !defined UNIX98
98 type mode_t
99 # endif
100 type off_t
101 type pid_t
102 #endif
104 function int creat (const char*, mode_t)
105 function int fcntl (int, int, ...)
106 function int open (const char*, int, ...)
107 #if defined XOPEN2K8 || defined POSIX2008
108 function int openat (int, const char*, int, ...)
109 #endif
110 #if defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
111 function int posix_fadvise (int, off_t, off_t, int)
112 function int posix_fallocate (int, off_t, off_t)
113 #endif
115 #if defined XOPEN2K8 || defined POSIX2008
116 // Bug 18228: O_TTY_INIT, O_EXEC, O_SEARCH missing.
117 xfail-constant O_TTY_INIT
118 constant O_CLOEXEC
119 xfail-constant O_EXEC
120 xfail-constant O_SEARCH
121 constant O_DIRECTORY
122 constant O_NOFOLLOW
123 constant F_DUPFD_CLOEXEC
124 constant AT_FDCWD
125 constant AT_EACCESS
126 constant AT_SYMLINK_NOFOLLOW
127 constant AT_SYMLINK_FOLLOW
128 constant AT_REMOVEDIR
130 function int openat(int, const char*, int, ...)
131 #endif
133 #if !defined POSIX
134 allow-header sys/stat.h
135 allow-header unistd.h
136 #endif
138 allow l_*
139 allow F_*
140 allow O_*
141 allow S_*
142 allow *_t
143 #endif