mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 20:21:07 +00:00
5c46041a9c
separate function __atfct_seterrno_2. * include/fcntl.h: Declare __atfct_seterrno_2. * posix/unistd.h: Declare linkat, symlinkat, readlinkat. * io/Makefile (routines): Add linkat, symlinkat, readlinkat. * io/Versions [GLIBC_2.4]: Export linkat, symlinkat, readlinkat. * io/linkat.c: New file. * io/readlinkat.c: New file. * io/symlinkat.c: New file. * sysdeps/unix/sysv/linux/linkat.c: New file. * sysdeps/unix/sysv/linux/readlinkat.c: New file. * sysdeps/unix/sysv/linux/symlinkat.c: New file.
29 lines
1011 B
C
29 lines
1011 B
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;
|
|
|
|
#endif
|