fio: factor out FIO_NET_PORT
[fio.git] / helpers.h
CommitLineData
c5c8bd5c
JA
1#ifndef FIO_HELPERS_H
2#define FIO_HELPERS_H
3
3b2e1464
JA
4#include "compiler/compiler.h"
5
93bcfd20 6#include <sys/types.h>
03e20d68
BC
7#include <time.h>
8
c5c8bd5c
JA
9struct in_addr;
10
804bb9a1 11extern int _weak fallocate(int fd, int mode, off_t offset, off_t len);
c3d3178b
BC
12extern int _weak posix_memalign(void **ptr, size_t align, size_t size);
13extern int _weak posix_fallocate(int fd, off_t offset, off_t len);
14extern int _weak inet_aton(const char *cp, struct in_addr *inp);
15extern int _weak clock_gettime(clockid_t clk_id, struct timespec *ts);
16extern int _weak sync_file_range(int fd, off64_t offset, off64_t nbytes,
a54cf034 17 unsigned int flags);
c5c8bd5c 18
03e20d68 19#endif /* FIO_HELPERS_H_ */