repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add 32bit time64 syscalls for arm, mips32, ppc32 and x86.
[valgrind.git]
/
memcheck
/
tests
/
mmaptest.c
blob
fac1f655caa342ab48a203f5efca6ac6494ae645
1
#include <sys/types.h>
2
#include <sys/stat.h>
3
#include <fcntl.h>
4
#include <unistd.h>
5
#include
"tests/sys_mman.h"
6
7
int
main
()
8
{
9
int
fd
;
10
11
mkdir
(
"dir"
,
0777
);
12
fd
=
open
(
"dir"
,
O_RDONLY
);
13
mmap
(
NULL
,
4711
,
PROT_READ
,
MAP_PRIVATE
,
fd
,
0
);
14
return
0
;
15
}