]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Revert "More Linux fallocate patches."
authorRyan Arnold <ryanarn@etna.rchland.ibm.com>
Mon, 27 Jul 2009 21:09:56 +0000 (16:09 -0500)
committerRyan Arnold <ryanarn@etna.rchland.ibm.com>
Wed, 29 Jul 2009 14:58:51 +0000 (09:58 -0500)
This reverts commit c2621cbf6d0502ebbf27ea2e2165d8bfae6feb99.

sysdeps/unix/sysv/linux/fallocate.c
sysdeps/unix/sysv/linux/fallocate64.c
sysdeps/unix/sysv/linux/i386/bits/fcntl.h
sysdeps/unix/sysv/linux/ia64/bits/fcntl.h
sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
sysdeps/unix/sysv/linux/s390/bits/fcntl.h
sysdeps/unix/sysv/linux/sh/bits/fcntl.h
sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
sysdeps/unix/sysv/linux/wordsize-64/fallocate.c
sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h

index a45b0f831d3d80dcc3385a3bdcb11a95915d0cde..f65864f3f19ef48510720599764e679105beaa3b 100644 (file)
@@ -16,7 +16,6 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#include <errno.h>
 #include <fcntl.h>
 #include <sysdep.h>
 
@@ -25,7 +24,7 @@
 int
 fallocate (int fd, int mode, __off_t offset, __off_t len)
 {
-  return INLINE_SYSCALL (fallocate, 6, fd, mode,
+  return INLINE_SYSCALL (fallocate, err, 6, fd, mode,
                         __LONG_LONG_PAIR (offset >> 31, offset),
                         __LONG_LONG_PAIR (len >> 31, len));
 }
index 601a70ba1fe8137097ea3c7b559426d8597c9b5b..b20486df398fecccf603c1b17899a5a02665d17b 100644 (file)
@@ -16,7 +16,6 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#include <errno.h>
 #include <fcntl.h>
 #include <sysdep.h>
 
index 35ef665998f22a3deae27c541f19b362a8fc9b2a..fdf0df3cd87903abfdd67536f3042700510384c0 100644 (file)
@@ -235,23 +235,6 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
 extern ssize_t tee (int __fdin, int __fdout, size_t __len,
                    unsigned int __flags);
 
-/* Reserve storage for the data of the file associated with FD.  */
-# ifndef __USE_FILE_OFFSET64
-extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
-# else
-#  ifdef __REDIRECT
-extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
-                                  __off_t __len),
-                      fallocate64);
-#  else
-#   define fallocate fallocate64
-#  endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
-                       __off64_t __len);
-# endif
-
 #endif
 
 __END_DECLS
index 6abc5ced65ecfb8c03c98239cae0963e21e804fa..c5d5c150d3cc1baac42b96d5f47a1f3ecc7f7c5e 100644 (file)
@@ -229,23 +229,6 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
 extern ssize_t tee (int __fdin, int __fdout, size_t __len,
                    unsigned int __flags);
 
-/* Reserve storage for the data of the file associated with FD.  */
-# ifndef __USE_FILE_OFFSET64
-extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
-# else
-#  ifdef __REDIRECT
-extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
-                                  __off_t __len),
-                      fallocate64);
-#  else
-#   define fallocate fallocate64
-#  endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
-                       __off64_t __len);
-# endif
-
 #endif
 
 __END_DECLS
index 90b669ab6097d48d328cf11fcf6e93e4f070850d..556e83da205503be167395c45d7f44ad42a13b32 100644 (file)
@@ -235,23 +235,6 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
 extern ssize_t tee (int __fdin, int __fdout, size_t __len,
                    unsigned int __flags);
 
-/* Reserve storage for the data of the file associated with FD.  */
-# ifndef __USE_FILE_OFFSET64
-extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
-# else
-#  ifdef __REDIRECT
-extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
-                                  __off_t __len),
-                      fallocate64);
-#  else
-#   define fallocate fallocate64
-#  endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
-                       __off64_t __len);
-# endif
-
 #endif
 
 __END_DECLS
index ff5941df6544ce52fa71950b6d6bcda1b7566b75..e0cc6647891c062dcd5d74f0b4c9264584d6b5cb 100644 (file)
@@ -255,23 +255,6 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
 extern ssize_t tee (int __fdin, int __fdout, size_t __len,
                    unsigned int __flags);
 
-/* Reserve storage for the data of the file associated with FD.  */
-# ifndef __USE_FILE_OFFSET64
-extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
-# else
-#  ifdef __REDIRECT
-extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
-                                  __off_t __len),
-                      fallocate64);
-#  else
-#   define fallocate fallocate64
-#  endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
-                       __off64_t __len);
-# endif
-
 #endif
 
 __END_DECLS
index 35ef665998f22a3deae27c541f19b362a8fc9b2a..fdf0df3cd87903abfdd67536f3042700510384c0 100644 (file)
@@ -235,23 +235,6 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
 extern ssize_t tee (int __fdin, int __fdout, size_t __len,
                    unsigned int __flags);
 
-/* Reserve storage for the data of the file associated with FD.  */
-# ifndef __USE_FILE_OFFSET64
-extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
-# else
-#  ifdef __REDIRECT
-extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
-                                  __off_t __len),
-                      fallocate64);
-#  else
-#   define fallocate fallocate64
-#  endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
-                       __off64_t __len);
-# endif
-
 #endif
 
 __END_DECLS
index d59744a55e22324a6365616654e15859ff2cb6f4..c5c035c620504dfb4e095bf433518273c8da4d03 100644 (file)
@@ -254,23 +254,6 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
 extern ssize_t tee (int __fdin, int __fdout, size_t __len,
                    unsigned int __flags);
 
-/* Reserve storage for the data of the file associated with FD.  */
-# ifndef __USE_FILE_OFFSET64
-extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
-# else
-#  ifdef __REDIRECT
-extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
-                                  __off_t __len),
-                      fallocate64);
-#  else
-#   define fallocate fallocate64
-#  endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
-                       __off64_t __len);
-# endif
-
 #endif
 
 __END_DECLS
index 0eabab9781ebf87a07a5b666f8c33bbe3054cf4a..c89e318819b9f3b3e25577e2806c34b567f0854a 100644 (file)
@@ -16,7 +16,6 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#include <errno.h>
 #include <fcntl.h>
 #include <sysdep.h>
 
@@ -27,4 +26,4 @@ fallocate (int fd, int mode, __off_t offset, __off_t len)
 {
   return INLINE_SYSCALL (fallocate, 4, fd, mode, offset, len);
 }
-strong_alias (fallocate, fallocate64)
+strong_alias (posix_fallocate, posix_fallocate64)
index bc0f4d687b38aed532315bf0788bbc81cfde00f5..cf96ac7599b4b5e9593ea2bb4003fb808b63c291 100644 (file)
@@ -249,22 +249,6 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
 extern ssize_t tee (int __fdin, int __fdout, size_t __len,
                    unsigned int __flags);
 
-/* Reserve storage for the data of the file associated with FD.  */
-# ifndef __USE_FILE_OFFSET64
-extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
-# else
-#  ifdef __REDIRECT
-extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
-                                  __off_t __len),
-                      fallocate64);
-#  else
-#   define fallocate fallocate64
-#  endif
-# endif
-# ifdef __USE_LARGEFILE64
-extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
-                       __off64_t __len);
-# endif
 #endif
 
 __END_DECLS