about summary refs log tree commit diff
path: root/include/fcntl.h
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 /include/fcntl.h
parent3192fd8e464f2364347979fd58ae95d03bbe74e6 (diff)
downloadglibc-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 'include/fcntl.h')
-rw-r--r--include/fcntl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h
index f00881449d..e23af1c3d3 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)