* sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c

(posix_fadvise): Fix high word of len argument.
This commit is contained in:
Daniel Jacobowitz 2007-05-24 16:18:27 +00:00
parent 0012a8520b
commit 92fa63ee30
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-05-24 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
* sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c
(posix_fadvise): Fix high word of len argument.
2007-05-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
* sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.

View file

@ -31,7 +31,7 @@ posix_fadvise (int fd, off_t offset, off_t len, int advise)
INTERNAL_SYSCALL_DECL (err);
int ret = INTERNAL_SYSCALL (fadvise64, err, 7, fd, 0,
__LONG_LONG_PAIR (offset >> 31, offset),
__LONG_LONG_PAIR (offset >> 31, len),
__LONG_LONG_PAIR (len >> 31, len),
advise);
if (INTERNAL_SYSCALL_ERROR_P (ret, err))
return INTERNAL_SYSCALL_ERRNO (ret, err);