aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Arnold <ryanarn@etna.rchland.ibm.com>2009-07-27 16:09:45 -0500
committerRyan Arnold <ryanarn@etna.rchland.ibm.com>2009-07-29 09:58:51 -0500
commit61692cdcfc8b9cfd608ded8c946392895095d678 (patch)
tree5f2e93db47e9081412968db41f09511ffd859016
parent1a2b40ebf949a4cc2888afdee9c9f6c23ff2be14 (diff)
downloadglibc-61692cdcfc8b9cfd608ded8c946392895095d678.tar
glibc-61692cdcfc8b9cfd608ded8c946392895095d678.tar.gz
glibc-61692cdcfc8b9cfd608ded8c946392895095d678.tar.bz2
glibc-61692cdcfc8b9cfd608ded8c946392895095d678.zip
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.
-rw-r--r--sysdeps/unix/sysv/linux/fallocate.c5
-rw-r--r--sysdeps/unix/sysv/linux/fallocate64.c5
2 files changed, 0 insertions, 10 deletions
diff --git a/sysdeps/unix/sysv/linux/fallocate.c b/sysdeps/unix/sysv/linux/fallocate.c
index 116f00046e..a45b0f831d 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 2fbe988910..601a70ba1f 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
}