]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise. cvs/fedora-glibc-20090416T0610
authorUlrich Drepper <drepper@redhat.com>
Wed, 15 Apr 2009 17:10:28 +0000 (17:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 15 Apr 2009 17:10:28 +0000 (17:10 +0000)
ChangeLog
sysdeps/unix/sysv/linux/fallocate.c
sysdeps/unix/sysv/linux/fallocate64.c
sysdeps/unix/sysv/linux/wordsize-64/fallocate.c

index bf3e96f4c0e93764a52e7310ee994db1dc3e557f..5fa4d3d371b28f2944ff6695842eeb0dc69ed326 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@
 
        * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
        * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
+       * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
 
 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
 
index 116f00046ed3d7f6228ea0ba513c7f8c9de9ef5a..dc2b4e92ca81aaccfe2d0d528afef1befd4c2d65 100644 (file)
@@ -25,7 +25,7 @@
 int
 fallocate (int fd, int mode, __off_t offset, __off_t len)
 {
-#ifndef __NR_fallocate
+#ifdef __NR_fallocate
   return INLINE_SYSCALL (fallocate, 6, fd, mode,
                         __LONG_LONG_PAIR (offset >> 31, offset),
                         __LONG_LONG_PAIR (len >> 31, len));
index 2fbe988910affce478927cf7a710811675052215..ebcaf671b3e064b0324857f3f90211762db87af8 100644 (file)
@@ -25,7 +25,7 @@
 int
 __fallocate64_l64 (int fd, int mode, __off64_t offset, __off64_t len)
 {
-#ifndef __NR_fallocate
+#ifdef __NR_fallocate
   return INLINE_SYSCALL (fallocate, 6, fd, mode,
                         __LONG_LONG_PAIR ((long int) (offset >> 32),
                                           (long int) offset),
index 0eabab9781ebf87a07a5b666f8c33bbe3054cf4a..3e8954f0b7cac546c6e8708c20e94219634e7728 100644 (file)
 int
 fallocate (int fd, int mode, __off_t offset, __off_t len)
 {
+#ifdef __NR_fallocate
   return INLINE_SYSCALL (fallocate, 4, fd, mode, offset, len);
+#else
+  __set_errno (ENOSYS);
+  return -1;
+#endif
 }
 strong_alias (fallocate, fallocate64)