Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
82baca7d2c2dd74a7cdecaf7aef7edb2231b1489
/
.
/
memcheck
/
tests
/
mmaptest.c
blob: fac1f655caa342ab48a203f5efca6ac6494ae645 [
file
] [
log
] [
blame
]
#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
;
}