mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-16 15:44:56 +00:00
Merge r9533..9536 (add tests/{asm.h,sys_mman.h,malloc.h} from the DARWIN
branch. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9537
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ucontext.h>
|
||||
#include <sys/mman.h>
|
||||
#include "tests/sys_mman.h"
|
||||
|
||||
#include "valgrind.h"
|
||||
|
||||
@@ -39,7 +39,7 @@ int init_context(mycontext *uc)
|
||||
}
|
||||
|
||||
stack = (void *)mmap(0, STACK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC,
|
||||
MAP_ANON|MAP_PRIVATE, -1, 0);
|
||||
MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
|
||||
|
||||
if (stack == (void*)-1) {
|
||||
perror("mmap");
|
||||
|
||||
Reference in New Issue
Block a user