Go to the documentation of this file.
39 inline int getpagesize() {
return 4096; }
45 void *fakemmap(
void *addr,
size_t length,
int prot,
int flags,
int fd, off_t offset);
46 int fakemunmap(
void *addr,
size_t length);
47 int fakemsync(
void *addr,
size_t length,
int flags);
51 #define PROT_WRITE 0x2
54 #define MAP_FAILED ((void *) -1)
55 #define MAP_SHARED 0x01
56 #define MAP_PRIVATE 0x02
60 #define MS_INVALIDATE 2