From 91f91bcb3abda3780347d681c3bef6201b9ca60f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Jul 2009 13:34:16 -0400 Subject: sync a few headers with glibc (no functional changes) Signed-off-by: Mike Frysinger --- include/fcntl.h | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'include/fcntl.h') diff --git a/include/fcntl.h b/include/fcntl.h index 8c3768216..5d0e4aa82 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -1,5 +1,5 @@ -/* Copyright (C) 1991,1992,1994-2001,2003,2004,2005 - Free Software Foundation, Inc. +/* Copyright (C) 1991,1992,1994-2001,2003,2004,2005,2006,2007, 2009 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -171,11 +171,11 @@ extern int creat64 (__const char *__file, __mode_t __mode) __nonnull ((1)); extern int lockf (int __fd, int __cmd, __off_t __len); libc_hidden_proto(lockf) # else -# ifdef __REDIRECT +# ifdef __REDIRECT extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64); -# else -# define lockf lockf64 -# endif +# else +# define lockf lockf64 +# endif # endif # ifdef __USE_LARGEFILE64 extern int lockf64 (int __fd, int __cmd, __off64_t __len); @@ -190,13 +190,13 @@ libc_hidden_proto(lockf64) extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len, int __advise) __THROW; # else -# ifdef __REDIRECT_NTH +# ifdef __REDIRECT_NTH extern int __REDIRECT_NTH (posix_fadvise, (int __fd, __off64_t __offset, - __off64_t __len, int __advise), - posix_fadvise64); -# else -# define posix_fadvise posix_fadvise64 -# endif + __off64_t __len, int __advise), + posix_fadvise64); +# else +# define posix_fadvise posix_fadvise64 +# endif # endif # ifdef __USE_LARGEFILE64 extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len, @@ -216,24 +216,23 @@ extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len, # ifndef __USE_FILE_OFFSET64 extern int posix_fallocate (int __fd, __off_t __offset, __off_t __len); # else -# ifdef __REDIRECT +# ifdef __REDIRECT extern int __REDIRECT (posix_fallocate, (int __fd, __off64_t __offset, __off64_t __len), posix_fallocate64); -# else -# define posix_fallocate posix_fallocate64 +# else +# define posix_fallocate posix_fallocate64 +# endif # endif +# ifdef __USE_LARGEFILE64 +extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len); # endif +#endif #ifdef __UCLIBC_HAS_THREADS_NATIVE__ extern int __fcntl_nocancel (int fd, int cmd, ...); #endif -# ifdef __USE_LARGEFILE64 -extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len); -# endif -#endif - __END_DECLS #endif /* fcntl.h */ -- cgit v1.2.3