summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorBruce Cran <bruce@cran.org.uk>2011-01-02 20:14:54 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-02 20:14:54 +0100
commit03e20d687566753b90383571e5e152c5142bdffd (patch)
tree062419c9a907354a95fe53e88b6ca3a143689d7e /memory.c
parent2d7760d1dbbc742a0699b959ffcd8742b9db9e2c (diff)
First snapshot of FIO for Windows
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory.c b/memory.c
index b94cd6d..39fb9f2 100644
--- a/memory.c
+++ b/memory.c
@@ -63,7 +63,7 @@ int fio_pin_memory(void)
static int alloc_mem_shm(struct thread_data *td, unsigned int total_mem)
{
- int flags = IPC_CREAT | SHM_R | SHM_W;
+ int flags = IPC_CREAT | S_IRUSR | S_IWUSR;
if (td->o.mem_type == MEM_SHMHUGE) {
unsigned long mask = td->o.hugepage_size - 1;
@@ -181,7 +181,7 @@ static void free_mem_malloc(struct thread_data *td)
}
/*
- * Setup the buffer area we need for io.
+ * Set up the buffer area we need for io.
*/
int allocate_io_mem(struct thread_data *td)
{