Recent changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following changes since commit a54cf03496c0e181974a63c2b60b2dc522e4b8a9:

  Add __weak sync_file_range() (2010-03-13 11:29:47 +0100)

are available in the git repository at:
  git://git.kernel.dk/fio.git master

Jens Axboe (1):
      Check for syscall definitions, before declaring __weak helper

 helpers.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

---

Diff of recent changes:

diff --git a/helpers.c b/helpers.c
index 779f9fb..c695331 100644
--- a/helpers.c
+++ b/helpers.c
@@ -3,14 +3,17 @@
 #include <sys/socket.h>
 #include <sys/time.h>
 #include <netinet/in.h>
+#include <unistd.h>
 
 #include "compiler/compiler.h"
 #include "os/os.h"
 
+#ifndef __NR_fallocate
 int __weak posix_fallocate(int fd, off_t offset, off_t len)
 {
 	return 0;
 }
+#endif
 
 int __weak inet_aton(const char *cp, struct in_addr *inp)
 {
@@ -30,8 +33,11 @@ int __weak clock_gettime(clockid_t clk_id, struct timespec *ts)
 	return ret;
 }
 
+#ifndef __NR_sync_file_range
 int __weak sync_file_range(int fd, off64_t offset, off64_t nbytes,
 			   unsigned int flags)
 {
-	return 0;
+	errno = ENOSYS;
+	return -1;
 }
+#endif
--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux