|
@@ -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.
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
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);
|
|
extern int lockf (int __fd, int __cmd, __off_t __len);
|
|
|
libc_hidden_proto(lockf)
|
|
libc_hidden_proto(lockf)
|
|
|
# else
|
|
# else
|
|
|
-# ifdef __REDIRECT
|
|
|
|
|
|
|
+# ifdef __REDIRECT
|
|
|
extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64);
|
|
extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64);
|
|
|
-# else
|
|
|
|
|
-# define lockf lockf64
|
|
|
|
|
-# endif
|
|
|
|
|
|
|
+# else
|
|
|
|
|
+# define lockf lockf64
|
|
|
|
|
+# endif
|
|
|
# endif
|
|
# endif
|
|
|
# ifdef __USE_LARGEFILE64
|
|
# ifdef __USE_LARGEFILE64
|
|
|
extern int lockf64 (int __fd, int __cmd, __off64_t __len);
|
|
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,
|
|
extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len,
|
|
|
int __advise) __THROW;
|
|
int __advise) __THROW;
|
|
|
# else
|
|
# else
|
|
|
-# ifdef __REDIRECT_NTH
|
|
|
|
|
|
|
+# ifdef __REDIRECT_NTH
|
|
|
extern int __REDIRECT_NTH (posix_fadvise, (int __fd, __off64_t __offset,
|
|
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
|
|
# endif
|
|
|
# ifdef __USE_LARGEFILE64
|
|
# ifdef __USE_LARGEFILE64
|
|
|
extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len,
|
|
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
|
|
# ifndef __USE_FILE_OFFSET64
|
|
|
extern int posix_fallocate (int __fd, __off_t __offset, __off_t __len);
|
|
extern int posix_fallocate (int __fd, __off_t __offset, __off_t __len);
|
|
|
# else
|
|
# else
|
|
|
-# ifdef __REDIRECT
|
|
|
|
|
|
|
+# ifdef __REDIRECT
|
|
|
extern int __REDIRECT (posix_fallocate, (int __fd, __off64_t __offset,
|
|
extern int __REDIRECT (posix_fallocate, (int __fd, __off64_t __offset,
|
|
|
__off64_t __len),
|
|
__off64_t __len),
|
|
|
posix_fallocate64);
|
|
posix_fallocate64);
|
|
|
-# else
|
|
|
|
|
-# define posix_fallocate posix_fallocate64
|
|
|
|
|
|
|
+# else
|
|
|
|
|
+# define posix_fallocate posix_fallocate64
|
|
|
|
|
+# endif
|
|
|
# endif
|
|
# endif
|
|
|
|
|
+# ifdef __USE_LARGEFILE64
|
|
|
|
|
+extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len);
|
|
|
# endif
|
|
# endif
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifdef __UCLIBC_HAS_THREADS_NATIVE__
|
|
#ifdef __UCLIBC_HAS_THREADS_NATIVE__
|
|
|
extern int __fcntl_nocancel (int fd, int cmd, ...);
|
|
extern int __fcntl_nocancel (int fd, int cmd, ...);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-# ifdef __USE_LARGEFILE64
|
|
|
|
|
-extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len);
|
|
|
|
|
-# endif
|
|
|
|
|
-#endif
|
|
|
|
|
-
|
|
|
|
|
__END_DECLS
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif /* fcntl.h */
|
|
#endif /* fcntl.h */
|