aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-03-01 05:32:59 +0000
committerRoland McGrath <roland@gnu.org>2006-03-01 05:32:59 +0000
commite2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce (patch)
tree7b48cb055b65cf11b56000bb84d37a23365520bf /sysdeps
parent3192fd8e464f2364347979fd58ae95d03bbe74e6 (diff)
downloadglibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.zip
glibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.tar.gz
glibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.tar.bz2
* 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')
-rw-r--r--sysdeps/unix/sysv/linux/openat.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/openat.c b/sysdeps/unix/sysv/linux/openat.c
index 38ffe85..7dfe367 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)