projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'patch-1' of https://github.com/avlasov-mos-de/fio
[fio.git]
/
os
/
os-openbsd.h
diff --git
a/os/os-openbsd.h
b/os/os-openbsd.h
index b4c02c9bf236803227cdb053f35975bb2b6f26d6..994bf078c9863a1fb0d28bcb940bd224fd1d4a1c 100644
(file)
--- a/
os/os-openbsd.h
+++ b/
os/os-openbsd.h
@@
-20,7
+20,6
@@
#include "../file.h"
#include "../file.h"
-#define FIO_USE_GENERIC_RAND
#define FIO_USE_GENERIC_INIT_RANDOM_STATE
#define FIO_HAVE_FS_STAT
#define FIO_HAVE_GETTID
#define FIO_USE_GENERIC_INIT_RANDOM_STATE
#define FIO_HAVE_FS_STAT
#define FIO_HAVE_GETTID
@@
-32,11
+31,9
@@
#define PTHREAD_STACK_MIN 4096
#endif
#define PTHREAD_STACK_MIN 4096
#endif
-#define fio_swap16(x) bswap16(x)
-#define fio_swap32(x) bswap32(x)
-#define fio_swap64(x) bswap64(x)
-
-typedef off_t off64_t;
+#define fio_swap16(x) swap16(x)
+#define fio_swap32(x) swap32(x)
+#define fio_swap64(x) swap64(x)
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
{
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
{
@@
-66,10
+63,12
@@
static inline unsigned long long os_phys_mem(void)
return mem;
}
return mem;
}
+#ifndef CONFIG_HAVE_GETTID
static inline int gettid(void)
{
return (int)(intptr_t) pthread_self();
}
static inline int gettid(void)
{
return (int)(intptr_t) pthread_self();
}
+#endif
static inline unsigned long long get_fs_free_size(const char *path)
{
static inline unsigned long long get_fs_free_size(const char *path)
{