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 | 93bcfd2 | 2012-02-20 20:18:19 +0100 | [diff] [blame] | 6 | #include <sys/types.h> |
Bruce Cran | 03e20d6 | 2011-01-02 20:14:54 +0100 | [diff] [blame] | 7 | #include <time.h> |
| 8 | |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 9 | extern int fallocate(int fd, int mode, off_t offset, off_t len); |
| 10 | extern int posix_fallocate(int fd, off_t offset, off_t len); |
| 11 | extern int sync_file_range(int fd, off64_t offset, off64_t nbytes, |
Jens Axboe | a54cf03 | 2010-03-13 11:29:47 +0100 | [diff] [blame] | 12 | unsigned int flags); |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 13 | extern int posix_fadvise(int fd, off_t offset, off_t len, int advice); |
Jens Axboe | c5c8bd5 | 2009-11-24 13:01:41 +0100 | [diff] [blame] | 14 | |
Bruce Cran | 03e20d6 | 2011-01-02 20:14:54 +0100 | [diff] [blame] | 15 | #endif /* FIO_HELPERS_H_ */ |