Minor cleanups in libio/iofdopen.c
[glibc.git] / conform / data / fcntl.h-data
blobefe134e4489ebc9d0de3b88ebee23c417ab423ca
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 constant O_TTY_INIT
117 constant O_CLOEXEC
118 constant O_EXEC
119 constant O_SEARCH
120 constant O_DIRECTORY
121 constant O_NOFOLLOW
122 constant F_DUPFD_CLOEXEC
123 constant AT_FDCWD
124 constant AT_EACCESS
125 constant AT_SYMLINK_NOFOLLOW
126 constant AT_SYMLINK_FOLLOW
127 constant AT_REMOVEDIR
129 function int openat(int, const char*, int, ...)
130 #endif
132 #if !defined POSIX
133 allow-header sys/stat.h
134 allow-header unistd.h
135 #endif
137 allow l_*
138 allow F_*
139 allow O_*
140 allow S_*
141 allow *_t
142 #endif