alpha: Update ulps
[glibc.git] / include / fcntl.h
blobb645ffc0005629cc5ea1dfc4237acc903ff72900
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_creat (const char *file, mode_t mode);
12 extern int __libc_fcntl (int fd, int cmd, ...);
13 #ifndef NO_CANCELLATION
14 extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden;
15 libc_hidden_proto (__libc_fcntl)
16 #endif
17 extern int __open (const char *__file, int __oflag, ...);
18 libc_hidden_proto (__open)
19 extern int __fcntl (int __fd, int __cmd, ...);
20 libc_hidden_proto (__fcntl)
21 extern int __openat (int __fd, const char *__file, int __oflag, ...)
22 __nonnull ((2));
23 libc_hidden_proto (__openat)
24 extern int __openat64 (int __fd, const char *__file, int __oflag, ...)
25 __nonnull ((2));
26 libc_hidden_proto (__openat64)
28 extern int __open_2 (const char *__path, int __oflag);
29 extern int __open64_2 (const char *__path, int __oflag);
30 extern int __openat_2 (int __fd, const char *__path, int __oflag);
31 extern int __openat64_2 (int __fd, const char *__path, int __oflag);
34 /* Helper functions for the various *at functions. For Linux. */
35 extern void __atfct_seterrno (int errval, int fd, const char *buf)
36 attribute_hidden;
37 extern void __atfct_seterrno_2 (int errval, int fd1, const char *buf1,
38 int fd2, const char *buf2)
39 attribute_hidden;
42 /* Flag determining whether the *at system calls are available. */
43 extern int __have_atfcts attribute_hidden;
45 #ifdef O_CLOEXEC
46 extern int __have_o_cloexec attribute_hidden;
47 #endif
48 #endif
50 #endif