git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
another example
[tridge/junkcode.git]
/
foo4.c
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <fcntl.h>
4
#include <sys/mman.h>
5
#include <fcntl.h>
6
7
main()
8
{
9
int fd = open("/dev/zero", O_RDWR);
10
char *map;
11
12
map = mmap(0, 0x4000, PROT_READ | PROT_WRITE, MAP_LOCKED| MAP_PRIVATE | MAP_FILE,
13
fd, 0);
14
}