blob: 607296328362b50d2c349c5a1dd481495310a299 [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 Cran03e20d62011-01-02 20:14:54 +01006#include <time.h>
7
Jens Axboec5c8bd52009-11-24 13:01:41 +01008struct in_addr;
9
10extern int __weak posix_memalign(void **ptr, size_t align, size_t size);
11extern int __weak posix_fallocate(int fd, off_t offset, off_t len);
12extern int __weak inet_aton(const char *cp, struct in_addr *inp);
Jens Axboe2afd8262009-12-14 23:08:42 +010013extern int __weak clock_gettime(clockid_t clk_id, struct timespec *ts);
Jens Axboea54cf032010-03-13 11:29:47 +010014extern int __weak sync_file_range(int fd, off64_t offset, off64_t nbytes,
15 unsigned int flags);
Jens Axboec5c8bd52009-11-24 13:01:41 +010016
Bruce Cran03e20d62011-01-02 20:14:54 +010017#endif /* FIO_HELPERS_H_ */