blob: a127b5ac13a5e4436b2aca76df600b11fc699848 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_PRCTL_H
20#define _LINUX_PRCTL_H
Elliott Hughesc95eb572013-01-29 18:15:55 -080021#define PR_SET_PDEATHSIG 1
22#define PR_GET_PDEATHSIG 2
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#define PR_GET_DUMPABLE 3
25#define PR_SET_DUMPABLE 4
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#define PR_GET_UNALIGN 5
27#define PR_SET_UNALIGN 6
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080029#define PR_UNALIGN_NOPRINT 1
30#define PR_UNALIGN_SIGBUS 2
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031#define PR_GET_KEEPCAPS 7
32#define PR_SET_KEEPCAPS 8
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#define PR_GET_FPEMU 9
35#define PR_SET_FPEMU 10
Elliott Hughesc95eb572013-01-29 18:15:55 -080036#define PR_FPEMU_NOPRINT 1
37#define PR_FPEMU_SIGFPE 2
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#define PR_GET_FPEXC 11
40#define PR_SET_FPEXC 12
Elliott Hughesc95eb572013-01-29 18:15:55 -080041#define PR_FP_EXC_SW_ENABLE 0x80
42#define PR_FP_EXC_DIV 0x010000
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080044#define PR_FP_EXC_OVF 0x020000
45#define PR_FP_EXC_UND 0x040000
46#define PR_FP_EXC_RES 0x080000
47#define PR_FP_EXC_INV 0x100000
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080049#define PR_FP_EXC_DISABLED 0
50#define PR_FP_EXC_NONRECOV 1
51#define PR_FP_EXC_ASYNC 2
52#define PR_FP_EXC_PRECISE 3
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define PR_GET_TIMING 13
55#define PR_SET_TIMING 14
Elliott Hughesc95eb572013-01-29 18:15:55 -080056#define PR_TIMING_STATISTICAL 0
57#define PR_TIMING_TIMESTAMP 1
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080059#define PR_SET_NAME 15
60#define PR_GET_NAME 16
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080061#define PR_GET_ENDIAN 19
62#define PR_SET_ENDIAN 20
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064#define PR_ENDIAN_BIG 0
Elliott Hughesc95eb572013-01-29 18:15:55 -080065#define PR_ENDIAN_LITTLE 1
66#define PR_ENDIAN_PPC_LITTLE 2
Nick Kralevichd1a69182012-06-12 15:42:39 -070067#define PR_GET_SECCOMP 21
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Kralevichd1a69182012-06-12 15:42:39 -070069#define PR_SET_SECCOMP 22
70#define PR_CAPBSET_READ 23
71#define PR_CAPBSET_DROP 24
72#define PR_GET_TSC 25
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define PR_SET_TSC 26
Elliott Hughesc95eb572013-01-29 18:15:55 -080075#define PR_TSC_ENABLE 1
76#define PR_TSC_SIGSEGV 2
Nick Kralevichd1a69182012-06-12 15:42:39 -070077#define PR_GET_SECUREBITS 27
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define PR_SET_SECUREBITS 28
80#define PR_SET_TIMERSLACK 29
81#define PR_GET_TIMERSLACK 30
82#define PR_TASK_PERF_EVENTS_DISABLE 31
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define PR_TASK_PERF_EVENTS_ENABLE 32
85#define PR_MCE_KILL 33
86#define PR_MCE_KILL_CLEAR 0
87#define PR_MCE_KILL_SET 1
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define PR_MCE_KILL_LATE 0
90#define PR_MCE_KILL_EARLY 1
91#define PR_MCE_KILL_DEFAULT 2
92#define PR_MCE_KILL_GET 34
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define PR_SET_MM 35
95#define PR_SET_MM_START_CODE 1
96#define PR_SET_MM_END_CODE 2
97#define PR_SET_MM_START_DATA 3
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define PR_SET_MM_END_DATA 4
100#define PR_SET_MM_START_STACK 5
101#define PR_SET_MM_START_BRK 6
102#define PR_SET_MM_BRK 7
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define PR_SET_MM_ARG_START 8
105#define PR_SET_MM_ARG_END 9
106#define PR_SET_MM_ENV_START 10
107#define PR_SET_MM_ENV_END 11
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define PR_SET_MM_AUXV 12
110#define PR_SET_MM_EXE_FILE 13
111#define PR_SET_PTRACER 0x59616d61
112#define PR_SET_PTRACER_ANY ((unsigned long)-1)
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define PR_SET_CHILD_SUBREAPER 36
115#define PR_GET_CHILD_SUBREAPER 37
116#define PR_SET_NO_NEW_PRIVS 38
117#define PR_GET_NO_NEW_PRIVS 39
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define PR_GET_TID_ADDRESS 40
120#endif