]>
Commit | Line | Data |
---|---|---|
6796bc80 | 1 | #ifndef _FCNTL_H |
28f540f4 | 2 | #include <io/fcntl.h> |
bdbf022d UD |
3 | |
4 | /* Now define the internal interfaces. */ | |
c19559b0 | 5 | extern int __open64 (__const char *__file, int __oflag, ...); |
37ba7d66 | 6 | libc_hidden_proto (__open64) |
762e5d48 UD |
7 | extern int __libc_open64 (const char *file, int oflag, ...); |
8 | extern int __libc_open (const char *file, int oflag, ...); | |
37ba7d66 | 9 | libc_hidden_proto (__libc_open) |
2674e3c6 | 10 | extern int __libc_creat (const char *file, mode_t mode); |
762e5d48 | 11 | extern int __libc_fcntl (int fd, int cmd, ...); |
d199bfb2 | 12 | #ifndef NO_CANCELLATION |
ce42435c | 13 | extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden; |
37ba7d66 | 14 | libc_hidden_proto (__libc_fcntl) |
d199bfb2 | 15 | #endif |
414a6b0d | 16 | extern int __open (__const char *__file, int __oflag, ...); |
37ba7d66 | 17 | libc_hidden_proto (__open) |
6b87a564 | 18 | extern int __fcntl (int __fd, int __cmd, ...); |
37ba7d66 | 19 | libc_hidden_proto (__fcntl) |
e2c7e1de RM |
20 | extern int __openat (int __fd, __const char *__file, int __oflag, ...) |
21 | __nonnull ((2)); | |
22 | libc_hidden_proto (__openat) | |
23 | extern int __openat64 (int __fd, __const char *__file, int __oflag, ...) | |
24 | __nonnull ((2)); | |
25 | libc_hidden_proto (__openat64) | |
26 | ||
762e5d48 | 27 | |
26cec518 UD |
28 | /* Helper functions for the various *at functions. For Linux. */ |
29 | extern void __atfct_seterrno (int errval, int fd, const char *buf) | |
30 | attribute_hidden; | |
5c46041a UD |
31 | extern void __atfct_seterrno_2 (int errval, int fd1, const char *buf1, |
32 | int fd2, const char *buf2) | |
33 | attribute_hidden; | |
26cec518 | 34 | |
7c65e900 UD |
35 | |
36 | /* Flag determining whether the *at system calls are available. */ | |
37 | extern int __have_atfcts attribute_hidden; | |
38 | ||
6796bc80 | 39 | #endif |