2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

prctl: Add new interface constants

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2014-10-24 14:10:46 +04:00 committed by Pavel Emelyanov
parent a9c724142d
commit 8c40f43018

View File

@ -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