X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-mac.h;h=683aab3220a54f4125ebe97327be75b2a2b64d86;hb=874d55e50cac071bf64fceb7e739b9b8bf8d4deb;hp=a073300c40c5ed6fea8c2ec2ff4933776ef7066d;hpb=de5ed0e4d398bc9d4576f9b2b82d7686989c27e1;p=fio.git diff --git a/os/os-mac.h b/os/os-mac.h index a073300c..683aab32 100644 --- a/os/os-mac.h +++ b/os/os-mac.h @@ -27,14 +27,6 @@ #define fio_swap32(x) OSSwapInt32(x) #define fio_swap64(x) OSSwapInt64(x) -/* - * OSX has a pitifully small shared memory segment by default, - * so default to a lower number of max jobs supported - */ -#define FIO_MAX_JOBS 128 - -typedef off_t off64_t; - #ifndef CONFIG_CLOCKID_T typedef unsigned int clockid_t; #endif @@ -97,12 +89,6 @@ static inline int gettid(void) } #endif -/* - * For some reason, there's no header definition for fdatasync(), even - * if it exists. - */ -extern int fdatasync(int fd); - static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t len) { fstore_t store = {F_ALLOCATEALL, F_PEOFPOSMODE, offset, len};