3 /*******************************************************************************
4 this code is protected by the GNU affero GPLv3
5 author:Sylvain BERTRAND (sylvain.bertrand AT gmail dot com)
6 *******************************************************************************/
7 #include <ulinux/arch/mmap.h>
9 #define ULINUX_PROT_READ 0x1/*page can be read*/
10 #define ULINUX_PROT_WRITE 0x2/*page can be written*/
11 #define ULINUX_PROT_EXEC 0x4/*page can be executed*/
12 #define ULINUX_PROT_SEM 0x8/*page may be used for atomic ops*/
13 #define ULINUX_PROT_NONE 0x0/*page can not be accessed*/
14 #define ULINUX_PROT_GROWSDOWN 0x01000000/*mprotect flag: extend change to start
16 #define ULINUX_PROT_GROWSUP 0x02000000/*mprotect flag: extend change to end of
19 #define ULINUX_MAP_SHARED 0x01/*Share changes*/
20 #define ULINUX_MAP_PRIVATE 0x02/*Changes are private*/
21 #define ULINUX_MAP_TYPE 0x0f/*Mask for type of mapping*/
22 #define ULINUX_MAP_FIXED 0x10/*Interpret addr exactly*/
23 #define ULINUX_MAP_ANONYMOUS 0x20/*don't use a file*/