blob: 7e885c4f0fbdd59582e37749c1694fae56732f6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef MMAP_H
#define MMAP_H
#include "syscalls.h"
#define PROT_READ 0x1
#define PROT_WRITE 0x2
#define PROT_EXEC 0x4
#define PROT_NONE 0x0
#define MAP_SHARED 0x1
#define MAP_PRIVATE 0x2
static void * mmap(void * addr, unsigned long size, int prot, int flags, int fd, int offset) {
return syscall(MMAP, size, prot, flags, fd, offset);
}
#endif
|