diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-03-03 13:53:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-03-03 13:53:19 +0000 |
commit | 99eb932f75c941f08b7cb66890b7d406bf37ba9b (patch) | |
tree | 0b2d4c3865b8e49225ac5e140983b2e3f5188871 /sysdeps/unix/sysv/linux/fallocate.c | |
parent | e00c5ece4296520043620237e48e8e197902af11 (diff) | |
download | glibc-99eb932f75c941f08b7cb66890b7d406bf37ba9b.tar.gz glibc-99eb932f75c941f08b7cb66890b7d406bf37ba9b.tar.xz glibc-99eb932f75c941f08b7cb66890b7d406bf37ba9b.zip |
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/fallocate.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/fallocate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/fallocate.c b/sysdeps/unix/sysv/linux/fallocate.c index f65864f3f1..a45b0f831d 100644 --- a/sysdeps/unix/sysv/linux/fallocate.c +++ b/sysdeps/unix/sysv/linux/fallocate.c @@ -16,6 +16,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include <errno.h> #include <fcntl.h> #include <sysdep.h> @@ -24,7 +25,7 @@ int fallocate (int fd, int mode, __off_t offset, __off_t len) { - return INLINE_SYSCALL (fallocate, err, 6, fd, mode, + return INLINE_SYSCALL (fallocate, 6, fd, mode, __LONG_LONG_PAIR (offset >> 31, offset), __LONG_LONG_PAIR (len >> 31, len)); } |