regression: mmap for fd
[lunaix-os.git] / lunaix-os / includes / usr / sys / mann_flags.h
1 #ifndef __LUNAIX_SYS_MANN_FLAGS_H
2 #define __LUNAIX_SYS_MANN_FLAGS_H
3
4 // POSIX compliant.
5
6 // identity mapped to region attributes
7 #define PROT_READ (1 << 2)
8 #define PROT_WRITE (1 << 3)
9 #define PROT_EXEC (1 << 4)
10
11 // identity mapped to region attributes
12 #define MAP_WSHARED 0x2
13 #define MAP_RSHARED 0x1
14 #define MAP_SHARED (MAP_WSHARED | MAP_RSHARED)
15 #define MAP_PRIVATE 0x0
16 #define MAP_ANON (1 << 5)
17 #define MAP_STACK 0 // no effect in Lunaix
18 // other MAP_* goes should beyond 0x20
19
20 #define MS_ASYNC 0x1
21 #define MS_SYNC 0x2
22 #define MS_INVALIDATE 0x4
23
24 #endif /* __LUNAIX_MANN_FLAGS_H */