From e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 1 Mar 2006 05:32:59 +0000 Subject: * 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 for __sched_yield decl. --- include/fcntl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/fcntl.h b/include/fcntl.h index f008814..e23af1c 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -17,6 +17,13 @@ extern int __open (__const char *__file, int __oflag, ...); libc_hidden_proto (__open) extern int __fcntl (int __fd, int __cmd, ...); libc_hidden_proto (__fcntl) +extern int __openat (int __fd, __const char *__file, int __oflag, ...) + __nonnull ((2)); +libc_hidden_proto (__openat) +extern int __openat64 (int __fd, __const char *__file, int __oflag, ...) + __nonnull ((2)); +libc_hidden_proto (__openat64) + /* Helper functions for the various *at functions. For Linux. */ extern void __atfct_seterrno (int errval, int fd, const char *buf) -- cgit v1.1