git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
test structure too
[tridge/junkcode.git]
/
map.c
1
#include <unistd.h>
2
#include <fcntl.h>
3
#include <sys/mman.h>
4
5
main()
6
{
7
int fd = open("/dev/null", O_WRONLY);
8
9
mmap(0, 0x1000, PROT_READ, MAP_PRIVATE, fd, 0);
10
}