Compression buffer fill fix
[fio.git] / helpers.h
1 #ifndef FIO_HELPERS_H
2 #define FIO_HELPERS_H
3
4 #include "compiler/compiler.h"
5
6 #include <sys/types.h>
7 #include <time.h>
8
9 struct in_addr;
10
11 extern int _weak fallocate(int fd, int mode, off_t offset, off_t len);
12 extern int _weak posix_memalign(void **ptr, size_t align, size_t size);
13 extern int _weak posix_fallocate(int fd, off_t offset, off_t len);
14 extern int _weak inet_aton(const char *cp, struct in_addr *inp);
15 extern int _weak clock_gettime(clockid_t clk_id, struct timespec *ts);
16 extern int _weak sync_file_range(int fd, off64_t offset, off64_t nbytes,
17                                         unsigned int flags);
18
19 #endif /* FIO_HELPERS_H_ */