From: Ryan Arnold Date: Mon, 27 Jul 2009 21:09:45 +0000 (-0500) Subject: Revert "Handle old kernel headers with new fallocate patches." X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61692cdcfc8b9cfd608ded8c946392895095d678;p=thirdparty%2Fglibc.git Revert "Handle old kernel headers with new fallocate patches." 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. --- diff --git a/sysdeps/unix/sysv/linux/fallocate.c b/sysdeps/unix/sysv/linux/fallocate.c index 116f00046ed..a45b0f831d3 100644 --- a/sysdeps/unix/sysv/linux/fallocate.c +++ b/sysdeps/unix/sysv/linux/fallocate.c @@ -25,12 +25,7 @@ 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 } diff --git a/sysdeps/unix/sysv/linux/fallocate64.c b/sysdeps/unix/sysv/linux/fallocate64.c index 2fbe988910a..601a70ba1fe 100644 --- a/sysdeps/unix/sysv/linux/fallocate64.c +++ b/sysdeps/unix/sysv/linux/fallocate64.c @@ -25,14 +25,9 @@ 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 }