Commit | Line | Data |
---|---|---|
1 | #ifndef FIO_HELPERS_H | |
2 | #define FIO_HELPERS_H | |
3 | ||
4 | #include <sys/types.h> | |
5 | ||
6 | #include "os/os.h" | |
7 | ||
8 | extern int fallocate(int fd, int mode, off_t offset, off_t len); | |
9 | extern int posix_fallocate(int fd, off_t offset, off_t len); | |
10 | #ifndef CONFIG_SYNC_FILE_RANGE | |
11 | extern int sync_file_range(int fd, uint64_t offset, uint64_t nbytes, | |
12 | unsigned int flags); | |
13 | #endif | |
14 | extern int posix_fadvise(int fd, off_t offset, off_t len, int advice); | |
15 | ||
16 | #endif /* FIO_HELPERS_H_ */ |