Skip to content

Commit

Permalink
2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
Browse files Browse the repository at this point in the history
            Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
	* sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
  • Loading branch information
Ulrich Drepper committed Apr 15, 2009
1 parent fc0c570 commit 353f210
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
* sysdeps/unix/sysv/linux/fallocate64.c: Likewise.

2009-03-25 Andrew Stubbs <ams@codesourcery.com>

* sysdeps/sh/libc-tls.c: New file.
Expand Down
5 changes: 5 additions & 0 deletions sysdeps/unix/sysv/linux/fallocate.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
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
}
5 changes: 5 additions & 0 deletions sysdeps/unix/sysv/linux/fallocate64.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@
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
}

0 comments on commit 353f210

Please sign in to comment.