git.ckatri.com
/
mandoc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove NULL-checks before free(); from mmcc@
[mandoc.git]
/
test-mmap.c
1
#include <sys/types.h>
2
#include <sys/mman.h>
3
#include <stddef.h>
4
5
int
6
main
(
void
)
7
{
8
return
mmap
(
NULL
,
1
,
PROT_READ
,
MAP_SHARED
, -
1
,
0
) !=
MAP_FAILED
;
9
}