Nicholas Nethercote f3f801ed48 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
2009-04-15 03:12:43 +00:00

16 lines
264 B
C

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "tests/sys_mman.h"
int main()
{
int fd;
mkdir("dir", 0777);
fd = open("dir", O_RDONLY);
mmap(NULL, 4711, PROT_READ, MAP_PRIVATE, fd, 0);
return 0;
}