summaryrefslogtreecommitdiff
path: root/nonstd/stubs/sys/mman.h
blob: 01a201eb018e0c669da6cabb2569092df34cbaf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "nonstd/types.h"

#ifndef PROT_READ
# define PROT_READ 0x1
#endif
#ifndef PROT_WRITE
# define PROT_WRITE 0x2
#endif
#ifndef MAP_PRIVATE
# define MAP_PRIVATE 0x02
#endif

#define mmap(_a, _l, _p, _f, _d, _o) __libc.syscall(__libc.syscall_lookup("mmap"), _a, _l, _p, _f, _d, _o)