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:
Nicholas Nethercote
2009-04-15 03:12:43 +00:00
parent afca46e298
commit f3f801ed48
56 changed files with 250 additions and 231 deletions

View File

@@ -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");