Skip to content

Commit

Permalink
* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): Use
Browse files Browse the repository at this point in the history
	__LONG_LONG_PAIR macro.
  • Loading branch information
Ulrich Drepper committed Apr 24, 2006
1 parent a346370 commit 589abe9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2006-04-24 Jakub Jelinek <jakub@redhat.com>

* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): Use
__LONG_LONG_PAIR macro.

* posix/bits/unistd.h (__readlinkat_chk): New prototype.
(__readlinkat_alias): New alias.
(readlinkat): New inline function.
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/unix/sysv/linux/sync_file_range.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
int
sync_file_range (int fd, __off64_t from, __off64_t to, int flags)
{
return INLINE_SYSCALL (sync_file_range, 6, fd, (off_t) (from >> 32),
(off_t) (from & 0xffffffff), (off_t) (to >> 32),
(off_t) (to & 0xffffffff), flags);
return INLINE_SYSCALL (sync_file_range, 6, fd,
__LONG_LONG_PAIR ((long) (from >> 32), (long) from),
__LONG_LONG_PAIR ((long) (to >> 32), (long) to),
flags);
}
#else
int
Expand Down

0 comments on commit 589abe9

Please sign in to comment.