From 8c40f43018098eb8f5b2d39cdd60c119b48fbe5c Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 24 Oct 2014 14:10:46 +0400 Subject: [PATCH] prctl: Add new interface constants Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- include/prctl.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/prctl.h b/include/prctl.h index 70db7b901..441135e5d 100644 --- a/include/prctl.h +++ b/include/prctl.h @@ -1,6 +1,8 @@ #ifndef __CR_PRCTL_H__ #define __CR_PRCTL_H__ +#include "asm/int.h" + #ifndef PR_SET_NAME # define PR_SET_NAME 15 #endif @@ -43,6 +45,28 @@ # define PR_SET_MM_EXE_FILE 13 #endif +#ifndef PR_SET_MM_MAP +# define PR_SET_MM_MAP 14 +# define PR_SET_MM_MAP_SIZE 15 +#endif + +struct prctl_mm_map { + u64 start_code; + u64 end_code; + u64 start_data; + u64 end_data; + u64 start_brk; + u64 brk; + u64 start_stack; + u64 arg_start; + u64 arg_end; + u64 env_start; + u64 env_end; + u64 *auxv; + u32 auxv_size; + u32 exe_fd; +}; + #ifndef PR_GET_TID_ADDRESS # define PR_GET_TID_ADDRESS 40 #endif