Jens Axboe | c5c8bd5 | 2009-11-24 13:01:41 +0100 | [diff] [blame] | 1 | #ifndef FIO_HELPERS_H |
| 2 | #define FIO_HELPERS_H |
| 3 | |
Jens Axboe | 3b2e146 | 2009-12-15 08:58:10 +0100 | [diff] [blame] | 4 | #include "compiler/compiler.h" |
| 5 | |
Bruce Cran | 03e20d6 | 2011-01-02 20:14:54 +0100 | [diff] [blame] | 6 | #include <time.h> |
| 7 | |
Jens Axboe | c5c8bd5 | 2009-11-24 13:01:41 +0100 | [diff] [blame] | 8 | struct in_addr; |
| 9 | |
Jens Axboe | 804bb9a | 2011-07-12 20:49:46 +0200 | [diff] [blame] | 10 | extern int _weak fallocate(int fd, int mode, off_t offset, off_t len); |
Bruce Cran | c3d3178 | 2011-07-10 20:56:23 +0200 | [diff] [blame] | 11 | extern int _weak posix_memalign(void **ptr, size_t align, size_t size); |
| 12 | extern int _weak posix_fallocate(int fd, off_t offset, off_t len); |
| 13 | extern int _weak inet_aton(const char *cp, struct in_addr *inp); |
| 14 | extern int _weak clock_gettime(clockid_t clk_id, struct timespec *ts); |
| 15 | extern int _weak sync_file_range(int fd, off64_t offset, off64_t nbytes, |
Jens Axboe | a54cf03 | 2010-03-13 11:29:47 +0100 | [diff] [blame] | 16 | unsigned int flags); |
Jens Axboe | c5c8bd5 | 2009-11-24 13:01:41 +0100 | [diff] [blame] | 17 | |
Bruce Cran | 03e20d6 | 2011-01-02 20:14:54 +0100 | [diff] [blame] | 18 | #endif /* FIO_HELPERS_H_ */ |