diff options
author | Roland McGrath <roland@gnu.org> | 2006-03-01 05:32:59 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2006-03-01 05:32:59 +0000 |
commit | e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce (patch) | |
tree | 7b48cb055b65cf11b56000bb84d37a23365520bf /sysdeps/unix | |
parent | 3192fd8e464f2364347979fd58ae95d03bbe74e6 (diff) | |
download | glibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.tar.gz glibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.tar.xz glibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.zip |
* 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.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/openat.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/openat.c b/sysdeps/unix/sysv/linux/openat.c index 38ffe85b56..7dfe367425 100644 --- a/sysdeps/unix/sysv/linux/openat.c +++ b/sysdeps/unix/sysv/linux/openat.c @@ -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) |