X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-linux.h;h=ed19553778e719e25f7d5643dd1b06acdfe416a3;hp=f86ed322c150429df9d7a8e99f70c3dbd19d4028;hb=81887d5dcd608492e59ed3fb2ac8fcb463223120;hpb=09c6cb22aa0a0b179d428bfb6cda0dfb11367b13 diff --git a/os/os-linux.h b/os/os-linux.h index f86ed322..ed195537 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -98,10 +98,6 @@ static inline int vmsplice(int fd, const struct iovec *iov, } #endif -#ifdef SPLICE_F_UNMAP -#define SPLICE_F_UNMAP (0x10) -#endif - #define SPLICE_DEF_SIZE (64*1024) #ifdef FIO_HAVE_SYSLET @@ -199,14 +195,6 @@ static inline long os_random_long(os_random_state_t *rs) return val; } -static inline double os_random_double(os_random_state_t *rs) -{ - double val; - - drand48_r(rs, &val); - return val; -} - static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev) { struct raw_config_request rq;