feat: fstat now handle symbolic link
[lunaix-os.git] / lunaix-os / includes / usr / lunaix / 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
13 #define MAP_WSHARED 0x2
14 #define MAP_RSHARED 0x1
15 #define MAP_SHARED MAP_WSHARED
16 #define MAP_PRIVATE MAP_RSHARED
17 #define MAP_EXCLUSIVE 0x0
18 #define MAP_ANON (1 << 5)
19 #define MAP_STACK 0 // no effect in Lunaix
20
21 // other MAP_* goes should beyond 0x20
22
23 #define MAP_FIXED 0x40
24 #define MAP_FIXED_NOREPLACE 0x80
25
26 #define MS_ASYNC 0x1
27 #define MS_SYNC 0x2
28 #define MS_INVALIDATE 0x4
29 #define MS_INVALIDATE_ALL 0x8
30
31 #endif /* __LUNAIX_MANN_FLAGS_H */