]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Revert "Handle old kernel headers with new fallocate patches."
authorRyan Arnold <ryanarn@etna.rchland.ibm.com>
Mon, 27 Jul 2009 21:09:45 +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 3353ea9028f569552e12bef515582a48c49100e0 because fallocate
is defined in GLIBC 2.10 and we don't want to make it available early in 2.8.

sysdeps/unix/sysv/linux/fallocate.c
sysdeps/unix/sysv/linux/fallocate64.c

index 116f00046ed3d7f6228ea0ba513c7f8c9de9ef5a..a45b0f831d3d80dcc3385a3bdcb11a95915d0cde 100644 (file)
 int
 fallocate (int fd, int mode, __off_t offset, __off_t len)
 {
-#ifndef __NR_fallocate
   return INLINE_SYSCALL (fallocate, 6, fd, mode,
                         __LONG_LONG_PAIR (offset >> 31, offset),
                         __LONG_LONG_PAIR (len >> 31, len));
-#else
-  __set_errno (ENOSYS);
-  return -1;
-#endif
 }
index 2fbe988910affce478927cf7a710811675052215..601a70ba1fe8137097ea3c7b559426d8597c9b5b 100644 (file)
 int
 __fallocate64_l64 (int fd, int mode, __off64_t offset, __off64_t len)
 {
-#ifndef __NR_fallocate
   return INLINE_SYSCALL (fallocate, 6, fd, mode,
                         __LONG_LONG_PAIR ((long int) (offset >> 32),
                                           (long int) offset),
                         __LONG_LONG_PAIR ((long int) (len >> 32),
                                           (long int) len));
-#else
-  __set_errno (ENOSYS);
-  return -1;
-#endif
 }