debuggers.hg

view extras/mini-os/include/posix/sys/mman.h @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children 5c0bf00e371d b3d827e63a09
line source
1 #ifndef _POSIX_SYS_MMAN_H
2 #define _POSIX_SYS_MMAN_H
4 #define PROT_READ 0x1
5 #define PROT_WRITE 0x2
6 #define PROT_EXEC 0x4
8 #define MAP_SHARED 0x01
9 #define MAP_PRIVATE 0x02
10 #define MAP_ANON 0x20
12 #define MAP_FAILED ((void*)0)
14 void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset);
15 int munmap(void *start, size_t length);
16 #define munlock(addr, len) ((void)addr, (void)len, 0)
17 #define mlock(addr, len) ((void)addr, (void)len, 0)
19 #endif /* _POSIX_SYS_MMAN_H */