]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): Use
authorUlrich Drepper <drepper@redhat.com>
Mon, 24 Apr 2006 17:09:55 +0000 (17:09 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 24 Apr 2006 17:09:55 +0000 (17:09 +0000)
__LONG_LONG_PAIR macro.

ChangeLog
sysdeps/unix/sysv/linux/sync_file_range.c

index 543903276157f56713ee959ce547a9b057c94119..4fda804d86599eef91a16142b9e700b56e4107bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index aabe192341e810bbc454ba301891dbc4bc79eb86..7519bb7fe692e481bfbad2a498bea4ec7c44b406 100644 (file)
 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