1 #ifndef _LUNAIX_UHDR_SYS_MMAN_H
2 #define _LUNAIX_UHDR_SYS_MMAN_H
6 // identity mapped to region attributes
7 #define PROT_READ (1 << 2)
8 #define PROT_WRITE (1 << 3)
9 #define PROT_EXEC (1 << 4)
12 // identity mapped to region attributes
14 #define MAP_WSHARED 0x2
15 #define MAP_RSHARED 0x1
16 #define MAP_SHARED MAP_WSHARED
17 #define MAP_PRIVATE MAP_RSHARED
18 #define MAP_EXCLUSIVE 0x0
19 #define MAP_ANON (1 << 5)
20 #define MAP_ANONYMOUS MAP_ANON
21 #define MAP_STACK 0 // no effect in Lunaix
23 // other MAP_* goes should beyond 0x20
25 #define MAP_FIXED 0x40
26 #define MAP_FIXED_NOREPLACE 0x80
30 #define MS_INVALIDATE 0x4
31 #define MS_INVALIDATE_ALL 0x8
43 #endif /* _LUNAIX_UHDR_MMAN_H */