| xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 1 | #ifndef _FCNTL_H | 
 | 2 | #include <io/fcntl.h> | 
 | 3 |  | 
 | 4 | #ifndef _ISOMAC | 
 | 5 | /* Now define the internal interfaces.  */ | 
 | 6 | extern int __open64 (const char *__file, int __oflag, ...); | 
 | 7 | libc_hidden_proto (__open64) | 
 | 8 | extern int __libc_open64 (const char *file, int oflag, ...); | 
 | 9 | extern int __libc_open (const char *file, int oflag, ...); | 
 | 10 | libc_hidden_proto (__libc_open) | 
 | 11 | extern int __libc_fcntl (int fd, int cmd, ...) attribute_hidden; | 
 | 12 | #ifndef NO_CANCELLATION | 
 | 13 | extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden; | 
 | 14 | libc_hidden_proto (__libc_fcntl) | 
 | 15 | #endif | 
 | 16 | extern int __open (const char *__file, int __oflag, ...); | 
 | 17 | libc_hidden_proto (__open) | 
 | 18 | extern int __fcntl (int __fd, int __cmd, ...); | 
 | 19 | libc_hidden_proto (__fcntl) | 
 | 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 |  | 
 | 27 | extern int __open_2 (const char *__path, int __oflag); | 
 | 28 | extern int __open64_2 (const char *__path, int __oflag); | 
 | 29 | extern int __openat_2 (int __fd, const char *__path, int __oflag); | 
 | 30 | extern int __openat64_2 (int __fd, const char *__path, int __oflag); | 
 | 31 |  | 
 | 32 |  | 
 | 33 | #if IS_IN (rtld) | 
 | 34 | extern __typeof (__open) __open attribute_hidden; | 
 | 35 | extern __typeof (__fcntl) __fcntl attribute_hidden; | 
 | 36 | #endif | 
 | 37 |  | 
 | 38 | /* Flag determining whether the *at system calls are available.  */ | 
 | 39 | extern int __have_atfcts attribute_hidden; | 
 | 40 |  | 
 | 41 | #ifdef O_CLOEXEC | 
 | 42 | extern int __have_o_cloexec attribute_hidden; | 
 | 43 | #endif | 
 | 44 | #endif | 
 | 45 |  | 
 | 46 | #endif |