mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* include/fcntl.h: Declare __openat, __open64. Use libc_hidden_proto.
* io/openat.c (__openat): Define instead of openat. Use libc_hidden_def. Define openat with weak_alias. * io/openat64.c (__openat64): Define instead of openat64. Use libc_hidden_def. Define openat64 with weak_alias. * sysdeps/unix/sysv/linux/openat.c: Likewise. * libio/genops.c: Include <sched.h> for __sched_yield decl.
This commit is contained in:
@ -135,12 +135,16 @@ OPENAT_NOT_CANCEL (fd, file, oflag, mode)
|
||||
#endif
|
||||
}
|
||||
|
||||
#define UNDERIZE(name) UNDERIZE_1 (name)
|
||||
#define UNDERIZE_1(name) __##name
|
||||
#define __OPENAT UNDERIZE (OPENAT)
|
||||
|
||||
|
||||
/* Open FILE with access OFLAG. Interpret relative paths relative to
|
||||
the directory associated with FD. If OFLAG includes O_CREAT, a
|
||||
third argument is the file protection. */
|
||||
int
|
||||
OPENAT (fd, file, oflag)
|
||||
__OPENAT (fd, file, oflag)
|
||||
int fd;
|
||||
const char *file;
|
||||
int oflag;
|
||||
@ -165,3 +169,5 @@ OPENAT (fd, file, oflag)
|
||||
|
||||
return res;
|
||||
}
|
||||
libc_hidden_def (__OPENAT)
|
||||
weak_alias (__OPENAT, OPENAT)
|
||||
|
Reference in New Issue
Block a user