Back to index

glibc  2.9
fcntl.h
Go to the documentation of this file.
00001 #ifndef _FCNTL_H
00002 #include <io/fcntl.h>
00003 
00004 /* Now define the internal interfaces.  */
00005 extern int __open64 (__const char *__file, int __oflag, ...);
00006 libc_hidden_proto (__open64)
00007 extern int __libc_open64 (const char *file, int oflag, ...);
00008 extern int __libc_open (const char *file, int oflag, ...);
00009 libc_hidden_proto (__libc_open)
00010 extern int __libc_creat (const char *file, mode_t mode);
00011 extern int __libc_fcntl (int fd, int cmd, ...);
00012 #ifndef NO_CANCELLATION
00013 extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden;
00014 libc_hidden_proto (__libc_fcntl)
00015 #endif
00016 extern int __open (__const char *__file, int __oflag, ...);
00017 libc_hidden_proto (__open)
00018 extern int __fcntl (int __fd, int __cmd, ...);
00019 libc_hidden_proto (__fcntl)
00020 extern int __openat (int __fd, __const char *__file, int __oflag, ...)
00021   __nonnull ((2));
00022 libc_hidden_proto (__openat)
00023 extern int __openat64 (int __fd, __const char *__file, int __oflag, ...)
00024   __nonnull ((2));
00025 libc_hidden_proto (__openat64)
00026 
00027 extern int __open_2 (__const char *__path, int __oflag);
00028 extern int __open64_2 (__const char *__path, int __oflag);
00029 extern int __openat_2 (int __fd, __const char *__path, int __oflag);
00030 extern int __openat64_2 (int __fd, __const char *__path, int __oflag);
00031 
00032 
00033 /* Helper functions for the various *at functions.  For Linux.  */
00034 extern void __atfct_seterrno (int errval, int fd, const char *buf)
00035   attribute_hidden;
00036 extern void __atfct_seterrno_2 (int errval, int fd1, const char *buf1,
00037                             int fd2, const char *buf2)
00038   attribute_hidden;
00039 
00040 
00041 /* Flag determining whether the *at system calls are available.  */
00042 extern int __have_atfcts attribute_hidden;
00043 
00044 #ifdef O_CLOEXEC
00045 extern int __have_o_cloexec attribute_hidden;
00046 #endif
00047 
00048 #endif