7c65e9001b
* sysdeps/unix/sysv/linux/faccessat.c: Use syscall if available. * sysdeps/unix/sysv/linux/fchmodat.c: Likewise. * sysdeps/unix/sysv/linux/fchownat.c: Likewise. * sysdeps/unix/sysv/linux/futimesat.c: Likewise. * sysdeps/unix/sysv/linux/linkat.c: Likewise. * sysdeps/unix/sysv/linux/mkdirat.c: Likewise. * sysdeps/unix/sysv/linux/openat.c: Likewise. * sysdeps/unix/sysv/linux/readlinkat.c: Likewise. * sysdeps/unix/sysv/linux/renameat.c: Likewise. * sysdeps/unix/sysv/linux/symlinkat.c: Likewise. * sysdeps/unix/sysv/linux/unlinkat.c: Likewise. * sysdeps/unix/sysv/linux/xmknodat.c: Likewise. * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise. * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PSELECT, __ASSUME_PPOLL, and __ASSUME_ATFCTS if possible. * io/ppoll.c: New file. * io/Makefile (routines): Add ppoll. (CFLAGS-ppoll.c): Define. * io/Versions: Export ppoll for GLIBC_2.4. * io/sys/poll.h: Declare ppoll. * sysdeps/unix/sysv/linux/ppoll.c: New file. * misc/pselect.c: Make it possible to include this file to define the generic code as a static function. * sysdeps/unix/sysv/linux/pselect.c: New file.
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
#ifndef _FCNTL_H
|
|
#include <io/fcntl.h>
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern int __open64 (__const char *__file, int __oflag, ...);
|
|
libc_hidden_proto (__open64)
|
|
extern int __libc_open64 (const char *file, int oflag, ...);
|
|
extern int __libc_open (const char *file, int oflag, ...);
|
|
libc_hidden_proto (__libc_open)
|
|
extern int __libc_creat (const char *file, mode_t mode);
|
|
extern int __libc_fcntl (int fd, int cmd, ...);
|
|
#ifndef NO_CANCELLATION
|
|
extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden;
|
|
libc_hidden_proto (__libc_fcntl)
|
|
#endif
|
|
extern int __open (__const char *__file, int __oflag, ...);
|
|
libc_hidden_proto (__open)
|
|
extern int __fcntl (int __fd, int __cmd, ...);
|
|
libc_hidden_proto (__fcntl)
|
|
|
|
/* Helper functions for the various *at functions. For Linux. */
|
|
extern void __atfct_seterrno (int errval, int fd, const char *buf)
|
|
attribute_hidden;
|
|
extern void __atfct_seterrno_2 (int errval, int fd1, const char *buf1,
|
|
int fd2, const char *buf2)
|
|
attribute_hidden;
|
|
|
|
|
|
/* Flag determining whether the *at system calls are available. */
|
|
extern int __have_atfcts attribute_hidden;
|
|
|
|
#endif
|