X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=memory.c;h=39fb9f237bb6fcb3d2a378997ed6debe71e2f236;hp=b94cd6df35feed843659bc9bf88921bf55ba9be4;hb=6035e7d6d1ed462176402615da37d4f987588c16;hpb=ca7e0ddb08fece35c95e9056ca877e0806f1e6ef diff --git a/memory.c b/memory.c index b94cd6df..39fb9f23 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) {