3 #include <sys/socket.h>
5 #include <netinet/in.h>
8 #include "compiler/compiler.h"
12 #ifndef FIO_HAVE_LINUX_FALLOCATE
13 int _weak fallocate(int fd, int mode, off_t offset, off_t len)
20 #ifndef __NR_fallocate
21 int _weak posix_fallocate(int fd, off_t offset, off_t len)
27 int _weak inet_aton(const char *cp, struct in_addr *inp)
32 int _weak clock_gettime(clockid_t clk_id, struct timespec *ts)
37 ret = gettimeofday(&tv, NULL);
39 ts->tv_sec = tv.tv_sec;
40 ts->tv_nsec = tv.tv_usec * 1000;
45 #ifndef __NR_sync_file_range
46 int _weak sync_file_range(int fd, off64_t offset, off64_t nbytes,
54 #ifndef FIO_HAVE_FADVISE
55 int _weak posix_fadvise(int fd, off_t offset, off_t len, int advice)