Avoid cancellable I/O primitives in ld.so.
[glibc.git] / include / fcntl.h
blob966f797890dc88e2f1efbe1e85e1196f44870b79
1 #ifndef _FCNTL_H
2 #include <io/fcntl.h>
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, ...);
12 libc_hidden_proto (__libc_fcntl)
13 extern int __fcntl_nocancel_adjusted (int fd, int cmd, void *arg) attribute_hidden;
14 extern int __open (const char *__file, int __oflag, ...);
15 libc_hidden_proto (__open)
16 extern int __fcntl (int __fd, int __cmd, ...);
17 libc_hidden_proto (__fcntl)
18 extern int __openat (int __fd, const char *__file, int __oflag, ...)
19 __nonnull ((2));
20 libc_hidden_proto (__openat)
21 extern int __openat64 (int __fd, const char *__file, int __oflag, ...)
22 __nonnull ((2));
23 libc_hidden_proto (__openat64)
25 extern int __open_2 (const char *__path, int __oflag);
26 extern int __open64_2 (const char *__path, int __oflag);
27 extern int __openat_2 (int __fd, const char *__path, int __oflag);
28 extern int __openat64_2 (int __fd, const char *__path, int __oflag);
31 #if IS_IN (rtld)
32 # include <dl-fcntl.h>
33 #endif
35 /* Flag determining whether the *at system calls are available. */
36 extern int __have_atfcts attribute_hidden;
37 #endif
39 #endif