Fix the typehelp[] array
[fio.git] / helpers.c
CommitLineData
f166280e 1#include <errno.h>
ed80ddf6 2
3d2d14bc 3#include "helpers.h"
ed80ddf6 4
67bf9823
JA
5#ifndef CONFIG_LINUX_FALLOCATE
6int fallocate(int fd, int mode, off_t offset, off_t len)
804bb9a1
JA
7{
8 errno = ENOSYS;
9 return -1;
10}
bcb01f84 11#endif
804bb9a1 12
67bf9823
JA
13#ifndef CONFIG_POSIX_FALLOCATE
14int posix_fallocate(int fd, off_t offset, off_t len)
ed80ddf6
JA
15{
16 return 0;
17}
285d451f 18#endif
c5c8bd5c 19
67bf9823
JA
20#ifndef CONFIG_SYNC_FILE_RANGE
21int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags)
a54cf034 22{
285d451f
JA
23 errno = ENOSYS;
24 return -1;
a54cf034 25}
285d451f 26#endif
09164e5a 27
4b20c681 28#ifndef CONFIG_POSIX_FADVISE
67bf9823 29int posix_fadvise(int fd, off_t offset, off_t len, int advice)
09164e5a
JA
30{
31 return 0;
32}
33#endif