From a54cf03496c0e181974a63c2b60b2dc522e4b8a9 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 13 Mar 2010 11:29:47 +0100 Subject: [PATCH] Add __weak sync_file_range() Signed-off-by: Jens Axboe --- helpers.c | 6 ++++++ helpers.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/helpers.c b/helpers.c index 9b1f3e90..779f9fbe 100644 --- a/helpers.c +++ b/helpers.c @@ -29,3 +29,9 @@ int __weak clock_gettime(clockid_t clk_id, struct timespec *ts) return ret; } + +int __weak sync_file_range(int fd, off64_t offset, off64_t nbytes, + unsigned int flags) +{ + return 0; +} diff --git a/helpers.h b/helpers.h index 4f8cc0ce..8307c43a 100644 --- a/helpers.h +++ b/helpers.h @@ -9,5 +9,7 @@ extern int __weak posix_memalign(void **ptr, size_t align, size_t size); extern int __weak posix_fallocate(int fd, off_t offset, off_t len); extern int __weak inet_aton(const char *cp, struct in_addr *inp); extern int __weak clock_gettime(clockid_t clk_id, struct timespec *ts); +extern int __weak sync_file_range(int fd, off64_t offset, off64_t nbytes, + unsigned int flags); #endif -- 2.25.1