git » libfiu » commit 707081e

preload/posix: correct sync_file_range() prototype

author Pavel Borzenkov
2014-01-22 09:20:59 UTC
committer Alberto Bertogli
2014-01-22 21:03:01 UTC
parent 6a1cd97805666f5fc62e6dc8065d0932a2158e3f

preload/posix: correct sync_file_range() prototype

sync_file_range() always use 64-bit types for offset regardless of host
arch or _FILE_OFFSET_BITS macro.

Signed-off-by: Pavel Borzenkov <pavel@voidptr.ru>

preload/posix/modules/linux.io.mod +1 -1

diff --git a/preload/posix/modules/linux.io.mod b/preload/posix/modules/linux.io.mod
index e05df19..63f2246 100644
--- a/preload/posix/modules/linux.io.mod
+++ b/preload/posix/modules/linux.io.mod
@@ -7,7 +7,7 @@ fiu name base: linux/io/
 # sync_file_range() is linux-only
 v: #ifdef __linux__
 
-int sync_file_range(int fd, off_t offset, off_t nbytes, \
+int sync_file_range(int fd, off64_t offset, off64_t nbytes, \
 		unsigned int flags);
 	on error: -1
 	valid errnos: EBADF EINVAL EIO ENOMEM ENOSPC