mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-24 02:35:41 +00:00
Move prctl constants into own header. They are arch independent. The x86 specific ARCH_SET_GS should be fetched from <asm/prctl.h> (instead of defining own ones). Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
41 lines
887 B
C
41 lines
887 B
C
#ifndef __CR_PRCTL_H__
|
|
#define __CR_PRCTL_H__
|
|
|
|
#ifndef PR_SET_NAME
|
|
# define PR_SET_NAME 15
|
|
#endif
|
|
#ifndef PR_GET_NAME
|
|
# define PR_GET_NAME 16
|
|
#endif
|
|
#ifndef PR_CAPBSET_DROP
|
|
# define PR_CAPBSET_DROP 24
|
|
#endif
|
|
#ifndef PR_GET_SECUREBITS
|
|
# define PR_GET_SECUREBITS 27
|
|
#endif
|
|
#ifndef PR_SET_SECUREBITS
|
|
# define PR_SET_SECUREBITS 28
|
|
#endif
|
|
|
|
#ifndef PR_SET_MM
|
|
#define PR_SET_MM 35
|
|
# define PR_SET_MM_START_CODE 1
|
|
# define PR_SET_MM_END_CODE 2
|
|
# define PR_SET_MM_START_DATA 3
|
|
# define PR_SET_MM_END_DATA 4
|
|
# define PR_SET_MM_START_STACK 5
|
|
# define PR_SET_MM_START_BRK 6
|
|
# define PR_SET_MM_BRK 7
|
|
# define PR_SET_MM_ARG_START 8
|
|
# define PR_SET_MM_ARG_END 9
|
|
# define PR_SET_MM_ENV_START 10
|
|
# define PR_SET_MM_ENV_END 11
|
|
# define PR_SET_MM_AUXV 12
|
|
# define PR_SET_MM_EXE_FILE 13
|
|
#endif
|
|
|
|
#ifndef PR_GET_TID_ADDRESS
|
|
# define PR_GET_TID_ADDRESS 40
|
|
#endif
|
|
|
|
#endif /* __CR_PRCTL_H__ */
|