summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2020-01-05 11:10:30 -0800
committerBart Van Assche <bvanassche@acm.org>2020-01-06 11:10:37 -0800
commit7e2a317e68abf1ca9946151ea61b6f1fc95a4686 (patch)
tree6a1124dd36249444dd21dd5fc82ee6782bcee1f1 /os
parent585ef66edaacfd16a91b5ed94488f4ab2113f596 (diff)
downloadfio-7e2a317e68abf1ca9946151ea61b6f1fc95a4686.tar.gz
fio-7e2a317e68abf1ca9946151ea61b6f1fc95a4686.tar.bz2
Change off64_t into uint64_t
off64_t is Linux specific while uint64_t is defined by a C standard. This change makes fio easier to port. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Diffstat (limited to 'os')
-rw-r--r--os/os-dragonfly.h1
-rw-r--r--os/os-freebsd.h2
-rw-r--r--os/os-mac.h2
-rw-r--r--os/os-netbsd.h2
-rw-r--r--os/os-openbsd.h2
-rw-r--r--os/windows/posix.h1
6 files changed, 0 insertions, 10 deletions
diff --git a/os/os-dragonfly.h b/os/os-dragonfly.h
index 3c460ae2..44bfcd5d 100644
--- a/os/os-dragonfly.h
+++ b/os/os-dragonfly.h
@@ -47,7 +47,6 @@
/* This is supposed to equal (sizeof(cpumask_t)*8) */
#define FIO_MAX_CPUS SMP_MAXCPU
-typedef off_t off64_t;
typedef cpumask_t os_cpu_mask_t;
/*
diff --git a/os/os-freebsd.h b/os/os-freebsd.h
index 789da178..b3addf98 100644
--- a/os/os-freebsd.h
+++ b/os/os-freebsd.h
@@ -30,8 +30,6 @@
#define fio_swap32(x) bswap32(x)
#define fio_swap64(x) bswap64(x)
-typedef off_t off64_t;
-
typedef cpuset_t os_cpu_mask_t;
#define fio_cpu_clear(mask, cpu) (void) CPU_CLR((cpu), (mask))
diff --git a/os/os-mac.h b/os/os-mac.h
index 0d97f6b9..2852ac67 100644
--- a/os/os-mac.h
+++ b/os/os-mac.h
@@ -33,8 +33,6 @@
*/
#define FIO_MAX_JOBS 128
-typedef off_t off64_t;
-
#ifndef CONFIG_CLOCKID_T
typedef unsigned int clockid_t;
#endif
diff --git a/os/os-netbsd.h b/os/os-netbsd.h
index 88fb3ef1..abc1d3cb 100644
--- a/os/os-netbsd.h
+++ b/os/os-netbsd.h
@@ -35,8 +35,6 @@
#define fio_swap32(x) bswap32(x)
#define fio_swap64(x) bswap64(x)
-typedef off_t off64_t;
-
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
{
struct disklabel dl;
diff --git a/os/os-openbsd.h b/os/os-openbsd.h
index 43a649d4..085a6f2b 100644
--- a/os/os-openbsd.h
+++ b/os/os-openbsd.h
@@ -35,8 +35,6 @@
#define fio_swap32(x) bswap32(x)
#define fio_swap64(x) bswap64(x)
-typedef off_t off64_t;
-
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
{
struct disklabel dl;
diff --git a/os/windows/posix.h b/os/windows/posix.h
index 85640a21..02a9075b 100644
--- a/os/windows/posix.h
+++ b/os/windows/posix.h
@@ -1,7 +1,6 @@
#ifndef FIO_WINDOWS_POSIX_H
#define FIO_WINDOWS_POSIX_H
-typedef off_t off64_t;
typedef int clockid_t;
extern int clock_gettime(clockid_t clock_id, struct timespec *tp);