projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use POSIX path for poll.h and fcntl.h headers
[fio.git]
/
engines
/
binject.c
diff --git
a/engines/binject.c
b/engines/binject.c
index 7d20a3fd7b9ce15d52d86f4b28dc494ba7b24e93..49042a3b15843590c5500cb28d47069fc1abc7d8 100644
(file)
--- a/
engines/binject.c
+++ b/
engines/binject.c
@@
-11,7
+11,7
@@
#include <errno.h>
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <string.h>
-#include <
sys/
poll.h>
+#include <poll.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
@@
-59,11
+59,12
@@
static int pollin_events(struct pollfd *pfds, int fds)
return 0;
}
return 0;
}
-static unsigned int binject_read_commands(struct thread_data *td, void *
p
,
+static unsigned int binject_read_commands(struct thread_data *td, void *
buf
,
int left, int *err)
{
struct fio_file *f;
int i, ret, events;
int left, int *err)
{
struct fio_file *f;
int i, ret, events;
+ char *p = buf;
one_more:
events = 0;
one_more:
events = 0;
@@
-351,7
+352,7
@@
static int fio_binject_open_file(struct thread_data *td, struct fio_file *f)
if (ret)
return 1;
if (ret)
return 1;
- if (f->filetype != FIO_TYPE_B
D
) {
+ if (f->filetype != FIO_TYPE_B
LOCK
) {
log_err("fio: binject only works with block devices\n");
goto err_close;
}
log_err("fio: binject only works with block devices\n");
goto err_close;
}