1/* automatically generated by rust-bindgen 0.66.1 */
2
3pub type __s8 = crate::ctypes::c_schar;
4pub type __u8 = crate::ctypes::c_uchar;
5pub type __s16 = crate::ctypes::c_short;
6pub type __u16 = crate::ctypes::c_ushort;
7pub type __s32 = crate::ctypes::c_int;
8pub type __u32 = crate::ctypes::c_uint;
9pub type __s64 = crate::ctypes::c_longlong;
10pub type __u64 = crate::ctypes::c_ulonglong;
11pub type __kernel_key_t = crate::ctypes::c_int;
12pub type __kernel_mqd_t = crate::ctypes::c_int;
13pub type __kernel_old_uid_t = crate::ctypes::c_ushort;
14pub type __kernel_old_gid_t = crate::ctypes::c_ushort;
15pub type __kernel_old_dev_t = crate::ctypes::c_ulong;
16pub type __kernel_long_t = crate::ctypes::c_long;
17pub type __kernel_ulong_t = crate::ctypes::c_ulong;
18pub type __kernel_ino_t = __kernel_ulong_t;
19pub type __kernel_mode_t = crate::ctypes::c_uint;
20pub type __kernel_pid_t = crate::ctypes::c_int;
21pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
22pub type __kernel_uid_t = crate::ctypes::c_uint;
23pub type __kernel_gid_t = crate::ctypes::c_uint;
24pub type __kernel_suseconds_t = __kernel_long_t;
25pub type __kernel_daddr_t = crate::ctypes::c_int;
26pub type __kernel_uid32_t = crate::ctypes::c_uint;
27pub type __kernel_gid32_t = crate::ctypes::c_uint;
28pub type __kernel_size_t = __kernel_ulong_t;
29pub type __kernel_ssize_t = __kernel_long_t;
30pub type __kernel_ptrdiff_t = __kernel_long_t;
31pub type __kernel_off_t = __kernel_long_t;
32pub type __kernel_loff_t = crate::ctypes::c_longlong;
33pub type __kernel_old_time_t = __kernel_long_t;
34pub type __kernel_time_t = __kernel_long_t;
35pub type __kernel_time64_t = crate::ctypes::c_longlong;
36pub type __kernel_clock_t = __kernel_long_t;
37pub type __kernel_timer_t = crate::ctypes::c_int;
38pub type __kernel_clockid_t = crate::ctypes::c_int;
39pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
40pub type __kernel_uid16_t = crate::ctypes::c_ushort;
41pub type __kernel_gid16_t = crate::ctypes::c_ushort;
42pub type __le16 = __u16;
43pub type __be16 = __u16;
44pub type __le32 = __u32;
45pub type __be32 = __u32;
46pub type __le64 = __u64;
47pub type __be64 = __u64;
48pub type __sum16 = __u16;
49pub type __wsum = __u32;
50pub type __poll_t = crate::ctypes::c_uint;
51#[repr(C)]
52#[derive(Debug, Copy, Clone)]
53pub struct prctl_mm_map {
54pub start_code: __u64,
55pub end_code: __u64,
56pub start_data: __u64,
57pub end_data: __u64,
58pub start_brk: __u64,
59pub brk: __u64,
60pub start_stack: __u64,
61pub arg_start: __u64,
62pub arg_end: __u64,
63pub env_start: __u64,
64pub env_end: __u64,
65pub auxv: *mut __u64,
66pub auxv_size: __u32,
67pub exe_fd: __u32,
68}
69pub const PR_SET_PDEATHSIG: u32 = 1;
70pub const PR_GET_PDEATHSIG: u32 = 2;
71pub const PR_GET_DUMPABLE: u32 = 3;
72pub const PR_SET_DUMPABLE: u32 = 4;
73pub const PR_GET_UNALIGN: u32 = 5;
74pub const PR_SET_UNALIGN: u32 = 6;
75pub const PR_UNALIGN_NOPRINT: u32 = 1;
76pub const PR_UNALIGN_SIGBUS: u32 = 2;
77pub const PR_GET_KEEPCAPS: u32 = 7;
78pub const PR_SET_KEEPCAPS: u32 = 8;
79pub const PR_GET_FPEMU: u32 = 9;
80pub const PR_SET_FPEMU: u32 = 10;
81pub const PR_FPEMU_NOPRINT: u32 = 1;
82pub const PR_FPEMU_SIGFPE: u32 = 2;
83pub const PR_GET_FPEXC: u32 = 11;
84pub const PR_SET_FPEXC: u32 = 12;
85pub const PR_FP_EXC_SW_ENABLE: u32 = 128;
86pub const PR_FP_EXC_DIV: u32 = 65536;
87pub const PR_FP_EXC_OVF: u32 = 131072;
88pub const PR_FP_EXC_UND: u32 = 262144;
89pub const PR_FP_EXC_RES: u32 = 524288;
90pub const PR_FP_EXC_INV: u32 = 1048576;
91pub const PR_FP_EXC_DISABLED: u32 = 0;
92pub const PR_FP_EXC_NONRECOV: u32 = 1;
93pub const PR_FP_EXC_ASYNC: u32 = 2;
94pub const PR_FP_EXC_PRECISE: u32 = 3;
95pub const PR_GET_TIMING: u32 = 13;
96pub const PR_SET_TIMING: u32 = 14;
97pub const PR_TIMING_STATISTICAL: u32 = 0;
98pub const PR_TIMING_TIMESTAMP: u32 = 1;
99pub const PR_SET_NAME: u32 = 15;
100pub const PR_GET_NAME: u32 = 16;
101pub const PR_GET_ENDIAN: u32 = 19;
102pub const PR_SET_ENDIAN: u32 = 20;
103pub const PR_ENDIAN_BIG: u32 = 0;
104pub const PR_ENDIAN_LITTLE: u32 = 1;
105pub const PR_ENDIAN_PPC_LITTLE: u32 = 2;
106pub const PR_GET_SECCOMP: u32 = 21;
107pub const PR_SET_SECCOMP: u32 = 22;
108pub const PR_CAPBSET_READ: u32 = 23;
109pub const PR_CAPBSET_DROP: u32 = 24;
110pub const PR_GET_TSC: u32 = 25;
111pub const PR_SET_TSC: u32 = 26;
112pub const PR_TSC_ENABLE: u32 = 1;
113pub const PR_TSC_SIGSEGV: u32 = 2;
114pub const PR_GET_SECUREBITS: u32 = 27;
115pub const PR_SET_SECUREBITS: u32 = 28;
116pub const PR_SET_TIMERSLACK: u32 = 29;
117pub const PR_GET_TIMERSLACK: u32 = 30;
118pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31;
119pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32;
120pub const PR_MCE_KILL: u32 = 33;
121pub const PR_MCE_KILL_CLEAR: u32 = 0;
122pub const PR_MCE_KILL_SET: u32 = 1;
123pub const PR_MCE_KILL_LATE: u32 = 0;
124pub const PR_MCE_KILL_EARLY: u32 = 1;
125pub const PR_MCE_KILL_DEFAULT: u32 = 2;
126pub const PR_MCE_KILL_GET: u32 = 34;
127pub const PR_SET_MM: u32 = 35;
128pub const PR_SET_MM_START_CODE: u32 = 1;
129pub const PR_SET_MM_END_CODE: u32 = 2;
130pub const PR_SET_MM_START_DATA: u32 = 3;
131pub const PR_SET_MM_END_DATA: u32 = 4;
132pub const PR_SET_MM_START_STACK: u32 = 5;
133pub const PR_SET_MM_START_BRK: u32 = 6;
134pub const PR_SET_MM_BRK: u32 = 7;
135pub const PR_SET_MM_ARG_START: u32 = 8;
136pub const PR_SET_MM_ARG_END: u32 = 9;
137pub const PR_SET_MM_ENV_START: u32 = 10;
138pub const PR_SET_MM_ENV_END: u32 = 11;
139pub const PR_SET_MM_AUXV: u32 = 12;
140pub const PR_SET_MM_EXE_FILE: u32 = 13;
141pub const PR_SET_MM_MAP: u32 = 14;
142pub const PR_SET_MM_MAP_SIZE: u32 = 15;
143pub const PR_SET_PTRACER: u32 = 1499557217;
144pub const PR_SET_CHILD_SUBREAPER: u32 = 36;
145pub const PR_GET_CHILD_SUBREAPER: u32 = 37;
146pub const PR_SET_NO_NEW_PRIVS: u32 = 38;
147pub const PR_GET_NO_NEW_PRIVS: u32 = 39;
148pub const PR_GET_TID_ADDRESS: u32 = 40;
149pub const PR_SET_THP_DISABLE: u32 = 41;
150pub const PR_GET_THP_DISABLE: u32 = 42;
151pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43;
152pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44;
153pub const PR_SET_FP_MODE: u32 = 45;
154pub const PR_GET_FP_MODE: u32 = 46;
155pub const PR_FP_MODE_FR: u32 = 1;
156pub const PR_FP_MODE_FRE: u32 = 2;
157pub const PR_CAP_AMBIENT: u32 = 47;
158pub const PR_CAP_AMBIENT_IS_SET: u32 = 1;
159pub const PR_CAP_AMBIENT_RAISE: u32 = 2;
160pub const PR_CAP_AMBIENT_LOWER: u32 = 3;
161pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4;
162pub const PR_SVE_SET_VL: u32 = 50;
163pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144;
164pub const PR_SVE_GET_VL: u32 = 51;
165pub const PR_SVE_VL_LEN_MASK: u32 = 65535;
166pub const PR_SVE_VL_INHERIT: u32 = 131072;
167pub const PR_GET_SPECULATION_CTRL: u32 = 52;
168pub const PR_SET_SPECULATION_CTRL: u32 = 53;
169pub const PR_SPEC_STORE_BYPASS: u32 = 0;
170pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1;
171pub const PR_SPEC_L1D_FLUSH: u32 = 2;
172pub const PR_SPEC_NOT_AFFECTED: u32 = 0;
173pub const PR_SPEC_PRCTL: u32 = 1;
174pub const PR_SPEC_ENABLE: u32 = 2;
175pub const PR_SPEC_DISABLE: u32 = 4;
176pub const PR_SPEC_FORCE_DISABLE: u32 = 8;
177pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16;
178pub const PR_PAC_RESET_KEYS: u32 = 54;
179pub const PR_PAC_APIAKEY: u32 = 1;
180pub const PR_PAC_APIBKEY: u32 = 2;
181pub const PR_PAC_APDAKEY: u32 = 4;
182pub const PR_PAC_APDBKEY: u32 = 8;
183pub const PR_PAC_APGAKEY: u32 = 16;
184pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55;
185pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56;
186pub const PR_TAGGED_ADDR_ENABLE: u32 = 1;
187pub const PR_MTE_TCF_NONE: u32 = 0;
188pub const PR_MTE_TCF_SYNC: u32 = 2;
189pub const PR_MTE_TCF_ASYNC: u32 = 4;
190pub const PR_MTE_TCF_MASK: u32 = 6;
191pub const PR_MTE_TAG_SHIFT: u32 = 3;
192pub const PR_MTE_TAG_MASK: u32 = 524280;
193pub const PR_MTE_TCF_SHIFT: u32 = 1;
194pub const PR_SET_IO_FLUSHER: u32 = 57;
195pub const PR_GET_IO_FLUSHER: u32 = 58;
196pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59;
197pub const PR_SYS_DISPATCH_OFF: u32 = 0;
198pub const PR_SYS_DISPATCH_ON: u32 = 1;
199pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0;
200pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1;
201pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60;
202pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61;
203pub const PR_SCHED_CORE: u32 = 62;
204pub const PR_SCHED_CORE_GET: u32 = 0;
205pub const PR_SCHED_CORE_CREATE: u32 = 1;
206pub const PR_SCHED_CORE_SHARE_TO: u32 = 2;
207pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3;
208pub const PR_SCHED_CORE_MAX: u32 = 4;
209pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0;
210pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1;
211pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2;
212pub const PR_SME_SET_VL: u32 = 63;
213pub const PR_SME_SET_VL_ONEXEC: u32 = 262144;
214pub const PR_SME_GET_VL: u32 = 64;
215pub const PR_SME_VL_LEN_MASK: u32 = 65535;
216pub const PR_SME_VL_INHERIT: u32 = 131072;
217pub const PR_SET_MDWE: u32 = 65;
218pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1;
219pub const PR_GET_MDWE: u32 = 66;
220pub const PR_SET_VMA: u32 = 1398164801;
221pub const PR_SET_VMA_ANON_NAME: u32 = 0;
222