[CRIU] [PATCH 1/3] prctl: Add new interface constants
Cyrill Gorcunov
gorcunov at openvz.org
Fri Oct 24 03:10:46 PDT 2014
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/prctl.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/include/prctl.h b/include/prctl.h
index 70db7b9018c3..441135e5d2f9 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
--
1.9.3
More information about the CRIU
mailing list