X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-linux.h;h=c0f5327637bae11d572aacd315f5b018f2aa6ec3;hb=a7ba8c5f4c0f9fe117d529c1ad6686b2070bae51;hp=e7c0e47cbf0e5c23bbbe8feb0722b97d49a3ded0;hpb=f3de88a7a8806016ebb27af3f4be1fced172122e;p=fio.git diff --git a/os/os-linux.h b/os/os-linux.h index e7c0e47c..c0f53276 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -25,8 +25,11 @@ #define FIO_HAVE_HUGETLB #define FIO_HAVE_RAWBIND #define FIO_HAVE_BLKTRACE +#define FIO_HAVE_STRSEP +#define FIO_HAVE_FALLOCATE +#define FIO_HAVE_POSIXAIO_FSYNC -#define OS_MAP_ANON (MAP_ANONYMOUS) +#define OS_MAP_ANON MAP_ANONYMOUS #ifndef CLOCK_MONOTONIC #define CLOCK_MONOTONIC 1 @@ -113,7 +116,7 @@ struct async_head_user; static inline struct syslet_uatom * async_exec(struct syslet_uatom *atom, struct async_head_user *ahu) { - return (void *) syscall(__NR_async_exec, atom, ahu); + return (struct syslet_uatom *) syscall(__NR_async_exec, atom, ahu); } static inline long @@ -227,4 +230,10 @@ static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev) return 0; } +#ifdef O_NOATIME +#define FIO_O_NOATIME O_NOATIME +#else +#define FIO_O_NOATIME 0 +#endif + #endif