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