projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add configure script
[fio.git]
/
os
/
os.h
diff --git
a/os/os.h
b/os/os.h
index 2e4764e18f4ab6c021c3171827bd7323b52ef8bf..a14d7f0c0333152ed6663d895d787fb95d7e1f18 100644
(file)
--- a/
os/os.h
+++ b/
os/os.h
@@
-44,11
+44,7
@@
enum {
#error "unsupported os"
#endif
#error "unsupported os"
#endif
-#ifdef FIO_HAVE_LIBAIO
-#include <libaio.h>
-#endif
-
-#ifdef FIO_HAVE_POSIXAIO
+#ifdef CONFIG_POSIXAIO
#include <aio.h>
#ifndef FIO_OS_HAVE_AIOCB_TYPEDEF
typedef struct aiocb os_aiocb_t;
#include <aio.h>
#ifndef FIO_OS_HAVE_AIOCB_TYPEDEF
typedef struct aiocb os_aiocb_t;
@@
-60,7
+56,7
@@
typedef struct aiocb os_aiocb_t;
#include <scsi/sg.h>
#endif
#include <scsi/sg.h>
#endif
-#if
ndef FIO_HAVE
_STRSEP
+#if
def CONFIG
_STRSEP
#include "../lib/strsep.h"
#endif
#include "../lib/strsep.h"
#endif
@@
-116,12
+112,6
@@
typedef unsigned long os_cpu_mask_t;
#define OS_RAND_MAX RAND_MAX
#endif
#define OS_RAND_MAX RAND_MAX
#endif
-#ifdef FIO_HAVE_CLOCK_MONOTONIC
-#define FIO_TIMER_CLOCK CLOCK_MONOTONIC
-#else
-#define FIO_TIMER_CLOCK CLOCK_REALTIME
-#endif
-
#ifndef FIO_HAVE_RAWBIND
#define fio_lookup_raw(dev, majdev, mindev) 1
#endif
#ifndef FIO_HAVE_RAWBIND
#define fio_lookup_raw(dev, majdev, mindev) 1
#endif
@@
-142,8
+132,8
@@
typedef unsigned long os_cpu_mask_t;
#define FIO_MAX_JOBS 2048
#endif
#define FIO_MAX_JOBS 2048
#endif
-#ifndef
FIO_OS_HAVE
_SOCKLEN_T
-typedef
socklen_t fio_
socklen_t;
+#ifndef
CONFIG
_SOCKLEN_T
+typedef
unsigned int
socklen_t;
#endif
#ifndef FIO_OS_HAS_CTIME_R
#endif
#ifndef FIO_OS_HAS_CTIME_R