blob: 191096bde600b07c1ed352b69cd4d72cf193a337 [file] [log] [blame]
Jens Axboec5c8bd52009-11-24 13:01:41 +01001#ifndef FIO_HELPERS_H
2#define FIO_HELPERS_H
3
Jens Axboe3b2e1462009-12-15 08:58:10 +01004#include "compiler/compiler.h"
5
Bruce Cran93bcfd22012-02-20 20:18:19 +01006#include <sys/types.h>
Bruce Cran03e20d62011-01-02 20:14:54 +01007#include <time.h>
8
Jens Axboec5c8bd52009-11-24 13:01:41 +01009struct in_addr;
10
Jens Axboe804bb9a2011-07-12 20:49:46 +020011extern int _weak fallocate(int fd, int mode, off_t offset, off_t len);
Bruce Cranc3d31782011-07-10 20:56:23 +020012extern 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,
Jens Axboea54cf032010-03-13 11:29:47 +010017 unsigned int flags);
Jens Axboe09164e52012-11-29 21:27:20 +010018extern int _weak posix_fadvise(int fd, off_t offset, off_t len, int advice);
Jens Axboec5c8bd52009-11-24 13:01:41 +010019
Bruce Cran03e20d62011-01-02 20:14:54 +010020#endif /* FIO_HELPERS_H_ */