2 #include "tests/sys_mman.h"
6 /* Point of this is that the fd of an PROT_EXEC segment is -1, so Valgrind
7 shouldn't add it to its list of exe segs, and thus it won't be discarded
8 upon the munmap() (so no "discard" message). */
14 m
= mmap(NULL
, 100, PROT_READ
|PROT_EXEC
, MAP_PRIVATE
|MAP_ANONYMOUS
, -1, 0);
17 fprintf(stderr
, "error mmapping\n");