4 /* Now define the internal interfaces. */
5 extern int __open64 (__const
char *__file
, int __oflag
, ...);
6 libc_hidden_proto (__open64
)
7 extern int __libc_open64 (const char *file
, int oflag
, ...);
8 extern int __libc_open (const char *file
, int oflag
, ...);
9 libc_hidden_proto (__libc_open
)
10 extern int __libc_creat (const char *file
, mode_t mode
);
11 extern int __libc_fcntl (int fd
, int cmd
, ...);
12 #ifndef NO_CANCELLATION
13 extern int __fcntl_nocancel (int fd
, int cmd
, ...) attribute_hidden
;
14 libc_hidden_proto (__libc_fcntl
)
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
, ...)
22 libc_hidden_proto (__openat
)
23 extern int __openat64 (int __fd
, __const
char *__file
, int __oflag
, ...)
25 libc_hidden_proto (__openat64
)
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
);
33 /* Helper functions for the various *at functions. For Linux. */
34 extern void __atfct_seterrno (int errval
, int fd
, const char *buf
)
36 extern void __atfct_seterrno_2 (int errval
, int fd1
, const char *buf1
,
37 int fd2
, const char *buf2
)
41 /* Flag determining whether the *at system calls are available. */
42 extern int __have_atfcts attribute_hidden
;
45 extern int __have_o_cloexec attribute_hidden
;