1 | /* automatically generated by rust-bindgen 0.59.2 */ |
2 | |
3 | #[repr (C)] |
4 | #[derive (Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] |
5 | pub struct __BindgenBitfieldUnit<Storage> { |
6 | storage: Storage, |
7 | } |
8 | impl<Storage> __BindgenBitfieldUnit<Storage> { |
9 | #[inline ] |
10 | pub const fn new(storage: Storage) -> Self { |
11 | Self { storage } |
12 | } |
13 | } |
14 | impl<Storage> __BindgenBitfieldUnit<Storage> |
15 | where |
16 | Storage: AsRef<[u8]> + AsMut<[u8]>, |
17 | { |
18 | #[inline ] |
19 | pub fn get_bit(&self, index: usize) -> bool { |
20 | debug_assert!(index / 8 < self.storage.as_ref().len()); |
21 | let byte_index = index / 8; |
22 | let byte = self.storage.as_ref()[byte_index]; |
23 | let bit_index = if cfg!(target_endian = "big" ) { 7 - (index % 8) } else { index % 8 }; |
24 | let mask = 1 << bit_index; |
25 | byte & mask == mask |
26 | } |
27 | #[inline ] |
28 | pub fn set_bit(&mut self, index: usize, val: bool) { |
29 | debug_assert!(index / 8 < self.storage.as_ref().len()); |
30 | let byte_index = index / 8; |
31 | let byte = &mut self.storage.as_mut()[byte_index]; |
32 | let bit_index = if cfg!(target_endian = "big" ) { 7 - (index % 8) } else { index % 8 }; |
33 | let mask = 1 << bit_index; |
34 | if val { |
35 | *byte |= mask; |
36 | } else { |
37 | *byte &= !mask; |
38 | } |
39 | } |
40 | #[inline ] |
41 | pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { |
42 | debug_assert!(bit_width <= 64); |
43 | debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); |
44 | debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); |
45 | let mut val = 0; |
46 | for i in 0..(bit_width as usize) { |
47 | if self.get_bit(i + bit_offset) { |
48 | let index = if cfg!(target_endian = "big" ) { bit_width as usize - 1 - i } else { i }; |
49 | val |= 1 << index; |
50 | } |
51 | } |
52 | val |
53 | } |
54 | #[inline ] |
55 | pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { |
56 | debug_assert!(bit_width <= 64); |
57 | debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); |
58 | debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); |
59 | for i in 0..(bit_width as usize) { |
60 | let mask = 1 << i; |
61 | let val_bit_is_set = val & mask == mask; |
62 | let index = if cfg!(target_endian = "big" ) { bit_width as usize - 1 - i } else { i }; |
63 | self.set_bit(index + bit_offset, val_bit_is_set); |
64 | } |
65 | } |
66 | } |
67 | #[repr (C)] |
68 | #[derive (Default)] |
69 | pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]); |
70 | impl<T> __IncompleteArrayField<T> { |
71 | #[inline ] |
72 | pub const fn new() -> Self { |
73 | __IncompleteArrayField(::core::marker::PhantomData, []) |
74 | } |
75 | #[inline ] |
76 | pub fn as_ptr(&self) -> *const T { |
77 | self as *const _ as *const T |
78 | } |
79 | #[inline ] |
80 | pub fn as_mut_ptr(&mut self) -> *mut T { |
81 | self as *mut _ as *mut T |
82 | } |
83 | #[inline ] |
84 | pub unsafe fn as_slice(&self, len: usize) -> &[T] { |
85 | ::core::slice::from_raw_parts(self.as_ptr(), len) |
86 | } |
87 | #[inline ] |
88 | pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { |
89 | ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) |
90 | } |
91 | } |
92 | impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> { |
93 | fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
94 | fmt.write_str(data:"__IncompleteArrayField" ) |
95 | } |
96 | } |
97 | #[repr (C)] |
98 | pub struct __BindgenUnionField<T>(::core::marker::PhantomData<T>); |
99 | impl<T> __BindgenUnionField<T> { |
100 | #[inline ] |
101 | pub const fn new() -> Self { |
102 | __BindgenUnionField(::core::marker::PhantomData) |
103 | } |
104 | #[inline ] |
105 | pub unsafe fn as_ref(&self) -> &T { |
106 | ::core::mem::transmute(self) |
107 | } |
108 | #[inline ] |
109 | pub unsafe fn as_mut(&mut self) -> &mut T { |
110 | ::core::mem::transmute(self) |
111 | } |
112 | } |
113 | impl<T> ::core::default::Default for __BindgenUnionField<T> { |
114 | #[inline ] |
115 | fn default() -> Self { |
116 | Self::new() |
117 | } |
118 | } |
119 | impl<T> ::core::clone::Clone for __BindgenUnionField<T> { |
120 | #[inline ] |
121 | fn clone(&self) -> Self { |
122 | Self::new() |
123 | } |
124 | } |
125 | impl<T> ::core::marker::Copy for __BindgenUnionField<T> {} |
126 | impl<T> ::core::fmt::Debug for __BindgenUnionField<T> { |
127 | fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
128 | fmt.write_str(data:"__BindgenUnionField" ) |
129 | } |
130 | } |
131 | impl<T> ::core::hash::Hash for __BindgenUnionField<T> { |
132 | fn hash<H: ::core::hash::Hasher>(&self, _state: &mut H) {} |
133 | } |
134 | impl<T> ::core::cmp::PartialEq for __BindgenUnionField<T> { |
135 | fn eq(&self, _other: &__BindgenUnionField<T>) -> bool { |
136 | true |
137 | } |
138 | } |
139 | impl<T> ::core::cmp::Eq for __BindgenUnionField<T> {} |
140 | pub const LINUX_VERSION_CODE: u32 = 393984; |
141 | pub const LINUX_VERSION_MAJOR: u32 = 6; |
142 | pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; |
143 | pub const LINUX_VERSION_SUBLEVEL: u32 = 0; |
144 | pub const AT_SYSINFO_EHDR: u32 = 33; |
145 | pub const AT_VECTOR_SIZE_ARCH: u32 = 3; |
146 | pub const AT_NULL: u32 = 0; |
147 | pub const AT_IGNORE: u32 = 1; |
148 | pub const AT_EXECFD: u32 = 2; |
149 | pub const AT_PHDR: u32 = 3; |
150 | pub const AT_PHENT: u32 = 4; |
151 | pub const AT_PHNUM: u32 = 5; |
152 | pub const AT_PAGESZ: u32 = 6; |
153 | pub const AT_BASE: u32 = 7; |
154 | pub const AT_FLAGS: u32 = 8; |
155 | pub const AT_ENTRY: u32 = 9; |
156 | pub const AT_NOTELF: u32 = 10; |
157 | pub const AT_UID: u32 = 11; |
158 | pub const AT_EUID: u32 = 12; |
159 | pub const AT_GID: u32 = 13; |
160 | pub const AT_EGID: u32 = 14; |
161 | pub const AT_PLATFORM: u32 = 15; |
162 | pub const AT_HWCAP: u32 = 16; |
163 | pub const AT_CLKTCK: u32 = 17; |
164 | pub const AT_SECURE: u32 = 23; |
165 | pub const AT_BASE_PLATFORM: u32 = 24; |
166 | pub const AT_RANDOM: u32 = 25; |
167 | pub const AT_HWCAP2: u32 = 26; |
168 | pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; |
169 | pub const AT_RSEQ_ALIGN: u32 = 28; |
170 | pub const AT_EXECFN: u32 = 31; |
171 | pub const AT_MINSIGSTKSZ: u32 = 51; |
172 | pub const __BITS_PER_LONG: u32 = 64; |
173 | pub const __FD_SETSIZE: u32 = 1024; |
174 | pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; |
175 | pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; |
176 | pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; |
177 | pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; |
178 | pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; |
179 | pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; |
180 | pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; |
181 | pub const VFS_CAP_REVISION_SHIFT: u32 = 24; |
182 | pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; |
183 | pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; |
184 | pub const VFS_CAP_REVISION_1: u32 = 16777216; |
185 | pub const VFS_CAP_U32_1: u32 = 1; |
186 | pub const VFS_CAP_REVISION_2: u32 = 33554432; |
187 | pub const VFS_CAP_U32_2: u32 = 2; |
188 | pub const VFS_CAP_REVISION_3: u32 = 50331648; |
189 | pub const VFS_CAP_U32_3: u32 = 2; |
190 | pub const VFS_CAP_U32: u32 = 2; |
191 | pub const VFS_CAP_REVISION: u32 = 50331648; |
192 | pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; |
193 | pub const _LINUX_CAPABILITY_U32S: u32 = 1; |
194 | pub const CAP_CHOWN: u32 = 0; |
195 | pub const CAP_DAC_OVERRIDE: u32 = 1; |
196 | pub const CAP_DAC_READ_SEARCH: u32 = 2; |
197 | pub const CAP_FOWNER: u32 = 3; |
198 | pub const CAP_FSETID: u32 = 4; |
199 | pub const CAP_KILL: u32 = 5; |
200 | pub const CAP_SETGID: u32 = 6; |
201 | pub const CAP_SETUID: u32 = 7; |
202 | pub const CAP_SETPCAP: u32 = 8; |
203 | pub const CAP_LINUX_IMMUTABLE: u32 = 9; |
204 | pub const CAP_NET_BIND_SERVICE: u32 = 10; |
205 | pub const CAP_NET_BROADCAST: u32 = 11; |
206 | pub const CAP_NET_ADMIN: u32 = 12; |
207 | pub const CAP_NET_RAW: u32 = 13; |
208 | pub const CAP_IPC_LOCK: u32 = 14; |
209 | pub const CAP_IPC_OWNER: u32 = 15; |
210 | pub const CAP_SYS_MODULE: u32 = 16; |
211 | pub const CAP_SYS_RAWIO: u32 = 17; |
212 | pub const CAP_SYS_CHROOT: u32 = 18; |
213 | pub const CAP_SYS_PTRACE: u32 = 19; |
214 | pub const CAP_SYS_PACCT: u32 = 20; |
215 | pub const CAP_SYS_ADMIN: u32 = 21; |
216 | pub const CAP_SYS_BOOT: u32 = 22; |
217 | pub const CAP_SYS_NICE: u32 = 23; |
218 | pub const CAP_SYS_RESOURCE: u32 = 24; |
219 | pub const CAP_SYS_TIME: u32 = 25; |
220 | pub const CAP_SYS_TTY_CONFIG: u32 = 26; |
221 | pub const CAP_MKNOD: u32 = 27; |
222 | pub const CAP_LEASE: u32 = 28; |
223 | pub const CAP_AUDIT_WRITE: u32 = 29; |
224 | pub const CAP_AUDIT_CONTROL: u32 = 30; |
225 | pub const CAP_SETFCAP: u32 = 31; |
226 | pub const CAP_MAC_OVERRIDE: u32 = 32; |
227 | pub const CAP_MAC_ADMIN: u32 = 33; |
228 | pub const CAP_SYSLOG: u32 = 34; |
229 | pub const CAP_WAKE_ALARM: u32 = 35; |
230 | pub const CAP_BLOCK_SUSPEND: u32 = 36; |
231 | pub const CAP_AUDIT_READ: u32 = 37; |
232 | pub const CAP_PERFMON: u32 = 38; |
233 | pub const CAP_BPF: u32 = 39; |
234 | pub const CAP_CHECKPOINT_RESTORE: u32 = 40; |
235 | pub const CAP_LAST_CAP: u32 = 40; |
236 | pub const O_ACCMODE: u32 = 3; |
237 | pub const O_RDONLY: u32 = 0; |
238 | pub const O_WRONLY: u32 = 1; |
239 | pub const O_RDWR: u32 = 2; |
240 | pub const O_CREAT: u32 = 64; |
241 | pub const O_EXCL: u32 = 128; |
242 | pub const O_NOCTTY: u32 = 256; |
243 | pub const O_TRUNC: u32 = 512; |
244 | pub const O_APPEND: u32 = 1024; |
245 | pub const O_NONBLOCK: u32 = 2048; |
246 | pub const O_DSYNC: u32 = 4096; |
247 | pub const FASYNC: u32 = 8192; |
248 | pub const O_DIRECT: u32 = 16384; |
249 | pub const O_LARGEFILE: u32 = 32768; |
250 | pub const O_DIRECTORY: u32 = 65536; |
251 | pub const O_NOFOLLOW: u32 = 131072; |
252 | pub const O_NOATIME: u32 = 262144; |
253 | pub const O_CLOEXEC: u32 = 524288; |
254 | pub const __O_SYNC: u32 = 1048576; |
255 | pub const O_SYNC: u32 = 1052672; |
256 | pub const O_PATH: u32 = 2097152; |
257 | pub const __O_TMPFILE: u32 = 4194304; |
258 | pub const O_TMPFILE: u32 = 4259840; |
259 | pub const O_TMPFILE_MASK: u32 = 4259904; |
260 | pub const O_NDELAY: u32 = 2048; |
261 | pub const F_DUPFD: u32 = 0; |
262 | pub const F_GETFD: u32 = 1; |
263 | pub const F_SETFD: u32 = 2; |
264 | pub const F_GETFL: u32 = 3; |
265 | pub const F_SETFL: u32 = 4; |
266 | pub const F_GETLK: u32 = 5; |
267 | pub const F_SETLK: u32 = 6; |
268 | pub const F_SETLKW: u32 = 7; |
269 | pub const F_SETOWN: u32 = 8; |
270 | pub const F_GETOWN: u32 = 9; |
271 | pub const F_SETSIG: u32 = 10; |
272 | pub const F_GETSIG: u32 = 11; |
273 | pub const F_SETOWN_EX: u32 = 15; |
274 | pub const F_GETOWN_EX: u32 = 16; |
275 | pub const F_GETOWNER_UIDS: u32 = 17; |
276 | pub const F_OFD_GETLK: u32 = 36; |
277 | pub const F_OFD_SETLK: u32 = 37; |
278 | pub const F_OFD_SETLKW: u32 = 38; |
279 | pub const F_OWNER_TID: u32 = 0; |
280 | pub const F_OWNER_PID: u32 = 1; |
281 | pub const F_OWNER_PGRP: u32 = 2; |
282 | pub const FD_CLOEXEC: u32 = 1; |
283 | pub const F_RDLCK: u32 = 0; |
284 | pub const F_WRLCK: u32 = 1; |
285 | pub const F_UNLCK: u32 = 2; |
286 | pub const F_EXLCK: u32 = 4; |
287 | pub const F_SHLCK: u32 = 8; |
288 | pub const LOCK_SH: u32 = 1; |
289 | pub const LOCK_EX: u32 = 2; |
290 | pub const LOCK_NB: u32 = 4; |
291 | pub const LOCK_UN: u32 = 8; |
292 | pub const LOCK_MAND: u32 = 32; |
293 | pub const LOCK_READ: u32 = 64; |
294 | pub const LOCK_WRITE: u32 = 128; |
295 | pub const LOCK_RW: u32 = 192; |
296 | pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; |
297 | pub const RESOLVE_NO_XDEV: u32 = 1; |
298 | pub const RESOLVE_NO_MAGICLINKS: u32 = 2; |
299 | pub const RESOLVE_NO_SYMLINKS: u32 = 4; |
300 | pub const RESOLVE_BENEATH: u32 = 8; |
301 | pub const RESOLVE_IN_ROOT: u32 = 16; |
302 | pub const RESOLVE_CACHED: u32 = 32; |
303 | pub const F_SETLEASE: u32 = 1024; |
304 | pub const F_GETLEASE: u32 = 1025; |
305 | pub const F_CANCELLK: u32 = 1029; |
306 | pub const F_DUPFD_CLOEXEC: u32 = 1030; |
307 | pub const F_NOTIFY: u32 = 1026; |
308 | pub const F_SETPIPE_SZ: u32 = 1031; |
309 | pub const F_GETPIPE_SZ: u32 = 1032; |
310 | pub const F_ADD_SEALS: u32 = 1033; |
311 | pub const F_GET_SEALS: u32 = 1034; |
312 | pub const F_SEAL_SEAL: u32 = 1; |
313 | pub const F_SEAL_SHRINK: u32 = 2; |
314 | pub const F_SEAL_GROW: u32 = 4; |
315 | pub const F_SEAL_WRITE: u32 = 8; |
316 | pub const F_SEAL_FUTURE_WRITE: u32 = 16; |
317 | pub const F_SEAL_EXEC: u32 = 32; |
318 | pub const F_GET_RW_HINT: u32 = 1035; |
319 | pub const F_SET_RW_HINT: u32 = 1036; |
320 | pub const F_GET_FILE_RW_HINT: u32 = 1037; |
321 | pub const F_SET_FILE_RW_HINT: u32 = 1038; |
322 | pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; |
323 | pub const RWH_WRITE_LIFE_NONE: u32 = 1; |
324 | pub const RWH_WRITE_LIFE_SHORT: u32 = 2; |
325 | pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; |
326 | pub const RWH_WRITE_LIFE_LONG: u32 = 4; |
327 | pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; |
328 | pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; |
329 | pub const DN_ACCESS: u32 = 1; |
330 | pub const DN_MODIFY: u32 = 2; |
331 | pub const DN_CREATE: u32 = 4; |
332 | pub const DN_DELETE: u32 = 8; |
333 | pub const DN_RENAME: u32 = 16; |
334 | pub const DN_ATTRIB: u32 = 32; |
335 | pub const DN_MULTISHOT: u32 = 2147483648; |
336 | pub const AT_FDCWD: i32 = -100; |
337 | pub const AT_SYMLINK_NOFOLLOW: u32 = 256; |
338 | pub const AT_EACCESS: u32 = 512; |
339 | pub const AT_REMOVEDIR: u32 = 512; |
340 | pub const AT_SYMLINK_FOLLOW: u32 = 1024; |
341 | pub const AT_NO_AUTOMOUNT: u32 = 2048; |
342 | pub const AT_EMPTY_PATH: u32 = 4096; |
343 | pub const AT_STATX_SYNC_TYPE: u32 = 24576; |
344 | pub const AT_STATX_SYNC_AS_STAT: u32 = 0; |
345 | pub const AT_STATX_FORCE_SYNC: u32 = 8192; |
346 | pub const AT_STATX_DONT_SYNC: u32 = 16384; |
347 | pub const AT_RECURSIVE: u32 = 32768; |
348 | pub const EPOLL_CLOEXEC: u32 = 524288; |
349 | pub const EPOLL_CTL_ADD: u32 = 1; |
350 | pub const EPOLL_CTL_DEL: u32 = 2; |
351 | pub const EPOLL_CTL_MOD: u32 = 3; |
352 | pub const POSIX_FADV_NORMAL: u32 = 0; |
353 | pub const POSIX_FADV_RANDOM: u32 = 1; |
354 | pub const POSIX_FADV_SEQUENTIAL: u32 = 2; |
355 | pub const POSIX_FADV_WILLNEED: u32 = 3; |
356 | pub const POSIX_FADV_DONTNEED: u32 = 4; |
357 | pub const POSIX_FADV_NOREUSE: u32 = 5; |
358 | pub const FALLOC_FL_KEEP_SIZE: u32 = 1; |
359 | pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; |
360 | pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; |
361 | pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; |
362 | pub const FALLOC_FL_ZERO_RANGE: u32 = 16; |
363 | pub const FALLOC_FL_INSERT_RANGE: u32 = 32; |
364 | pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; |
365 | pub const NR_OPEN: u32 = 1024; |
366 | pub const NGROUPS_MAX: u32 = 65536; |
367 | pub const ARG_MAX: u32 = 131072; |
368 | pub const LINK_MAX: u32 = 127; |
369 | pub const MAX_CANON: u32 = 255; |
370 | pub const MAX_INPUT: u32 = 255; |
371 | pub const NAME_MAX: u32 = 255; |
372 | pub const PATH_MAX: u32 = 4096; |
373 | pub const PIPE_BUF: u32 = 4096; |
374 | pub const XATTR_NAME_MAX: u32 = 255; |
375 | pub const XATTR_SIZE_MAX: u32 = 65536; |
376 | pub const XATTR_LIST_MAX: u32 = 65536; |
377 | pub const RTSIG_MAX: u32 = 32; |
378 | pub const _IOC_NRBITS: u32 = 8; |
379 | pub const _IOC_TYPEBITS: u32 = 8; |
380 | pub const _IOC_SIZEBITS: u32 = 14; |
381 | pub const _IOC_DIRBITS: u32 = 2; |
382 | pub const _IOC_NRMASK: u32 = 255; |
383 | pub const _IOC_TYPEMASK: u32 = 255; |
384 | pub const _IOC_SIZEMASK: u32 = 16383; |
385 | pub const _IOC_DIRMASK: u32 = 3; |
386 | pub const _IOC_NRSHIFT: u32 = 0; |
387 | pub const _IOC_TYPESHIFT: u32 = 8; |
388 | pub const _IOC_SIZESHIFT: u32 = 16; |
389 | pub const _IOC_DIRSHIFT: u32 = 30; |
390 | pub const _IOC_NONE: u32 = 0; |
391 | pub const _IOC_WRITE: u32 = 1; |
392 | pub const _IOC_READ: u32 = 2; |
393 | pub const IOC_IN: u32 = 1073741824; |
394 | pub const IOC_OUT: u32 = 2147483648; |
395 | pub const IOC_INOUT: u32 = 3221225472; |
396 | pub const IOCSIZE_MASK: u32 = 1073676288; |
397 | pub const IOCSIZE_SHIFT: u32 = 16; |
398 | pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; |
399 | pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; |
400 | pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; |
401 | pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; |
402 | pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; |
403 | pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; |
404 | pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; |
405 | pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; |
406 | pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; |
407 | pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; |
408 | pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; |
409 | pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; |
410 | pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; |
411 | pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; |
412 | pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; |
413 | pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; |
414 | pub const FSCRYPT_POLICY_V1: u32 = 0; |
415 | pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; |
416 | pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9usize] = b"fscrypt: \0" ; |
417 | pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; |
418 | pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; |
419 | pub const FSCRYPT_POLICY_V2: u32 = 2; |
420 | pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; |
421 | pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; |
422 | pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; |
423 | pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; |
424 | pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; |
425 | pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; |
426 | pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; |
427 | pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; |
428 | pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; |
429 | pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; |
430 | pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; |
431 | pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; |
432 | pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; |
433 | pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; |
434 | pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; |
435 | pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; |
436 | pub const FS_POLICY_FLAGS_VALID: u32 = 7; |
437 | pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; |
438 | pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; |
439 | pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; |
440 | pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; |
441 | pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; |
442 | pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; |
443 | pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; |
444 | pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; |
445 | pub const FS_KEY_DESC_PREFIX: &[u8; 9usize] = b"fscrypt: \0" ; |
446 | pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; |
447 | pub const FS_MAX_KEY_SIZE: u32 = 64; |
448 | pub const MS_RDONLY: u32 = 1; |
449 | pub const MS_NOSUID: u32 = 2; |
450 | pub const MS_NODEV: u32 = 4; |
451 | pub const MS_NOEXEC: u32 = 8; |
452 | pub const MS_SYNCHRONOUS: u32 = 16; |
453 | pub const MS_REMOUNT: u32 = 32; |
454 | pub const MS_MANDLOCK: u32 = 64; |
455 | pub const MS_DIRSYNC: u32 = 128; |
456 | pub const MS_NOSYMFOLLOW: u32 = 256; |
457 | pub const MS_NOATIME: u32 = 1024; |
458 | pub const MS_NODIRATIME: u32 = 2048; |
459 | pub const MS_BIND: u32 = 4096; |
460 | pub const MS_MOVE: u32 = 8192; |
461 | pub const MS_REC: u32 = 16384; |
462 | pub const MS_VERBOSE: u32 = 32768; |
463 | pub const MS_SILENT: u32 = 32768; |
464 | pub const MS_POSIXACL: u32 = 65536; |
465 | pub const MS_UNBINDABLE: u32 = 131072; |
466 | pub const MS_PRIVATE: u32 = 262144; |
467 | pub const MS_SLAVE: u32 = 524288; |
468 | pub const MS_SHARED: u32 = 1048576; |
469 | pub const MS_RELATIME: u32 = 2097152; |
470 | pub const MS_KERNMOUNT: u32 = 4194304; |
471 | pub const MS_I_VERSION: u32 = 8388608; |
472 | pub const MS_STRICTATIME: u32 = 16777216; |
473 | pub const MS_LAZYTIME: u32 = 33554432; |
474 | pub const MS_SUBMOUNT: u32 = 67108864; |
475 | pub const MS_NOREMOTELOCK: u32 = 134217728; |
476 | pub const MS_NOSEC: u32 = 268435456; |
477 | pub const MS_BORN: u32 = 536870912; |
478 | pub const MS_ACTIVE: u32 = 1073741824; |
479 | pub const MS_NOUSER: u32 = 2147483648; |
480 | pub const MS_RMT_MASK: u32 = 41943121; |
481 | pub const MS_MGC_VAL: u32 = 3236757504; |
482 | pub const MS_MGC_MSK: u32 = 4294901760; |
483 | pub const OPEN_TREE_CLONE: u32 = 1; |
484 | pub const OPEN_TREE_CLOEXEC: u32 = 524288; |
485 | pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; |
486 | pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; |
487 | pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; |
488 | pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; |
489 | pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; |
490 | pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; |
491 | pub const MOVE_MOUNT_SET_GROUP: u32 = 256; |
492 | pub const MOVE_MOUNT__MASK: u32 = 375; |
493 | pub const FSOPEN_CLOEXEC: u32 = 1; |
494 | pub const FSPICK_CLOEXEC: u32 = 1; |
495 | pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; |
496 | pub const FSPICK_NO_AUTOMOUNT: u32 = 4; |
497 | pub const FSPICK_EMPTY_PATH: u32 = 8; |
498 | pub const FSMOUNT_CLOEXEC: u32 = 1; |
499 | pub const MOUNT_ATTR_RDONLY: u32 = 1; |
500 | pub const MOUNT_ATTR_NOSUID: u32 = 2; |
501 | pub const MOUNT_ATTR_NODEV: u32 = 4; |
502 | pub const MOUNT_ATTR_NOEXEC: u32 = 8; |
503 | pub const MOUNT_ATTR__ATIME: u32 = 112; |
504 | pub const MOUNT_ATTR_RELATIME: u32 = 0; |
505 | pub const MOUNT_ATTR_NOATIME: u32 = 16; |
506 | pub const MOUNT_ATTR_STRICTATIME: u32 = 32; |
507 | pub const MOUNT_ATTR_NODIRATIME: u32 = 128; |
508 | pub const MOUNT_ATTR_IDMAP: u32 = 1048576; |
509 | pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; |
510 | pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; |
511 | pub const INR_OPEN_CUR: u32 = 1024; |
512 | pub const INR_OPEN_MAX: u32 = 4096; |
513 | pub const BLOCK_SIZE_BITS: u32 = 10; |
514 | pub const BLOCK_SIZE: u32 = 1024; |
515 | pub const SEEK_SET: u32 = 0; |
516 | pub const SEEK_CUR: u32 = 1; |
517 | pub const SEEK_END: u32 = 2; |
518 | pub const SEEK_DATA: u32 = 3; |
519 | pub const SEEK_HOLE: u32 = 4; |
520 | pub const SEEK_MAX: u32 = 4; |
521 | pub const RENAME_NOREPLACE: u32 = 1; |
522 | pub const RENAME_EXCHANGE: u32 = 2; |
523 | pub const RENAME_WHITEOUT: u32 = 4; |
524 | pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; |
525 | pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; |
526 | pub const NR_FILE: u32 = 8192; |
527 | pub const FS_XFLAG_REALTIME: u32 = 1; |
528 | pub const FS_XFLAG_PREALLOC: u32 = 2; |
529 | pub const FS_XFLAG_IMMUTABLE: u32 = 8; |
530 | pub const FS_XFLAG_APPEND: u32 = 16; |
531 | pub const FS_XFLAG_SYNC: u32 = 32; |
532 | pub const FS_XFLAG_NOATIME: u32 = 64; |
533 | pub const FS_XFLAG_NODUMP: u32 = 128; |
534 | pub const FS_XFLAG_RTINHERIT: u32 = 256; |
535 | pub const FS_XFLAG_PROJINHERIT: u32 = 512; |
536 | pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; |
537 | pub const FS_XFLAG_EXTSIZE: u32 = 2048; |
538 | pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; |
539 | pub const FS_XFLAG_NODEFRAG: u32 = 8192; |
540 | pub const FS_XFLAG_FILESTREAM: u32 = 16384; |
541 | pub const FS_XFLAG_DAX: u32 = 32768; |
542 | pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; |
543 | pub const FS_XFLAG_HASATTR: u32 = 2147483648; |
544 | pub const BMAP_IOCTL: u32 = 1; |
545 | pub const FSLABEL_MAX: u32 = 256; |
546 | pub const FS_SECRM_FL: u32 = 1; |
547 | pub const FS_UNRM_FL: u32 = 2; |
548 | pub const FS_COMPR_FL: u32 = 4; |
549 | pub const FS_SYNC_FL: u32 = 8; |
550 | pub const FS_IMMUTABLE_FL: u32 = 16; |
551 | pub const FS_APPEND_FL: u32 = 32; |
552 | pub const FS_NODUMP_FL: u32 = 64; |
553 | pub const FS_NOATIME_FL: u32 = 128; |
554 | pub const FS_DIRTY_FL: u32 = 256; |
555 | pub const FS_COMPRBLK_FL: u32 = 512; |
556 | pub const FS_NOCOMP_FL: u32 = 1024; |
557 | pub const FS_ENCRYPT_FL: u32 = 2048; |
558 | pub const FS_BTREE_FL: u32 = 4096; |
559 | pub const FS_INDEX_FL: u32 = 4096; |
560 | pub const FS_IMAGIC_FL: u32 = 8192; |
561 | pub const FS_JOURNAL_DATA_FL: u32 = 16384; |
562 | pub const FS_NOTAIL_FL: u32 = 32768; |
563 | pub const FS_DIRSYNC_FL: u32 = 65536; |
564 | pub const FS_TOPDIR_FL: u32 = 131072; |
565 | pub const FS_HUGE_FILE_FL: u32 = 262144; |
566 | pub const FS_EXTENT_FL: u32 = 524288; |
567 | pub const FS_VERITY_FL: u32 = 1048576; |
568 | pub const FS_EA_INODE_FL: u32 = 2097152; |
569 | pub const FS_EOFBLOCKS_FL: u32 = 4194304; |
570 | pub const FS_NOCOW_FL: u32 = 8388608; |
571 | pub const FS_DAX_FL: u32 = 33554432; |
572 | pub const FS_INLINE_DATA_FL: u32 = 268435456; |
573 | pub const FS_PROJINHERIT_FL: u32 = 536870912; |
574 | pub const FS_CASEFOLD_FL: u32 = 1073741824; |
575 | pub const FS_RESERVED_FL: u32 = 2147483648; |
576 | pub const FS_FL_USER_VISIBLE: u32 = 253951; |
577 | pub const FS_FL_USER_MODIFIABLE: u32 = 229631; |
578 | pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; |
579 | pub const SYNC_FILE_RANGE_WRITE: u32 = 2; |
580 | pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; |
581 | pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; |
582 | pub const FUTEX_WAIT: u32 = 0; |
583 | pub const FUTEX_WAKE: u32 = 1; |
584 | pub const FUTEX_FD: u32 = 2; |
585 | pub const FUTEX_REQUEUE: u32 = 3; |
586 | pub const FUTEX_CMP_REQUEUE: u32 = 4; |
587 | pub const FUTEX_WAKE_OP: u32 = 5; |
588 | pub const FUTEX_LOCK_PI: u32 = 6; |
589 | pub const FUTEX_UNLOCK_PI: u32 = 7; |
590 | pub const FUTEX_TRYLOCK_PI: u32 = 8; |
591 | pub const FUTEX_WAIT_BITSET: u32 = 9; |
592 | pub const FUTEX_WAKE_BITSET: u32 = 10; |
593 | pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; |
594 | pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; |
595 | pub const FUTEX_LOCK_PI2: u32 = 13; |
596 | pub const FUTEX_PRIVATE_FLAG: u32 = 128; |
597 | pub const FUTEX_CLOCK_REALTIME: u32 = 256; |
598 | pub const FUTEX_CMD_MASK: i32 = -385; |
599 | pub const FUTEX_WAIT_PRIVATE: u32 = 128; |
600 | pub const FUTEX_WAKE_PRIVATE: u32 = 129; |
601 | pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; |
602 | pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; |
603 | pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; |
604 | pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; |
605 | pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; |
606 | pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; |
607 | pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; |
608 | pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; |
609 | pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; |
610 | pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; |
611 | pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; |
612 | pub const FUTEX_32: u32 = 2; |
613 | pub const FUTEX_WAITV_MAX: u32 = 128; |
614 | pub const FUTEX_WAITERS: u32 = 2147483648; |
615 | pub const FUTEX_OWNER_DIED: u32 = 1073741824; |
616 | pub const FUTEX_TID_MASK: u32 = 1073741823; |
617 | pub const ROBUST_LIST_LIMIT: u32 = 2048; |
618 | pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; |
619 | pub const FUTEX_OP_SET: u32 = 0; |
620 | pub const FUTEX_OP_ADD: u32 = 1; |
621 | pub const FUTEX_OP_OR: u32 = 2; |
622 | pub const FUTEX_OP_ANDN: u32 = 3; |
623 | pub const FUTEX_OP_XOR: u32 = 4; |
624 | pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; |
625 | pub const FUTEX_OP_CMP_EQ: u32 = 0; |
626 | pub const FUTEX_OP_CMP_NE: u32 = 1; |
627 | pub const FUTEX_OP_CMP_LT: u32 = 2; |
628 | pub const FUTEX_OP_CMP_LE: u32 = 3; |
629 | pub const FUTEX_OP_CMP_GT: u32 = 4; |
630 | pub const FUTEX_OP_CMP_GE: u32 = 5; |
631 | pub const __UAPI_DEF_IF_IFCONF: u32 = 1; |
632 | pub const __UAPI_DEF_IF_IFMAP: u32 = 1; |
633 | pub const __UAPI_DEF_IF_IFNAMSIZ: u32 = 1; |
634 | pub const __UAPI_DEF_IF_IFREQ: u32 = 1; |
635 | pub const __UAPI_DEF_IF_NET_DEVICE_FLAGS: u32 = 1; |
636 | pub const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO: u32 = 1; |
637 | pub const __UAPI_DEF_IN_ADDR: u32 = 1; |
638 | pub const __UAPI_DEF_IN_IPPROTO: u32 = 1; |
639 | pub const __UAPI_DEF_IN_PKTINFO: u32 = 1; |
640 | pub const __UAPI_DEF_IP_MREQ: u32 = 1; |
641 | pub const __UAPI_DEF_SOCKADDR_IN: u32 = 1; |
642 | pub const __UAPI_DEF_IN_CLASS: u32 = 1; |
643 | pub const __UAPI_DEF_IN6_ADDR: u32 = 1; |
644 | pub const __UAPI_DEF_IN6_ADDR_ALT: u32 = 1; |
645 | pub const __UAPI_DEF_SOCKADDR_IN6: u32 = 1; |
646 | pub const __UAPI_DEF_IPV6_MREQ: u32 = 1; |
647 | pub const __UAPI_DEF_IPPROTO_V6: u32 = 1; |
648 | pub const __UAPI_DEF_IPV6_OPTIONS: u32 = 1; |
649 | pub const __UAPI_DEF_IN6_PKTINFO: u32 = 1; |
650 | pub const __UAPI_DEF_IP6_MTUINFO: u32 = 1; |
651 | pub const __UAPI_DEF_SOCKADDR_IPX: u32 = 1; |
652 | pub const __UAPI_DEF_IPX_ROUTE_DEFINITION: u32 = 1; |
653 | pub const __UAPI_DEF_IPX_INTERFACE_DEFINITION: u32 = 1; |
654 | pub const __UAPI_DEF_IPX_CONFIG_DATA: u32 = 1; |
655 | pub const __UAPI_DEF_IPX_ROUTE_DEF: u32 = 1; |
656 | pub const __UAPI_DEF_XATTR: u32 = 1; |
657 | pub const _K_SS_MAXSIZE: u32 = 128; |
658 | pub const SOCK_SNDBUF_LOCK: u32 = 1; |
659 | pub const SOCK_RCVBUF_LOCK: u32 = 2; |
660 | pub const SOCK_BUF_LOCK_MASK: u32 = 3; |
661 | pub const SOCK_TXREHASH_DEFAULT: u32 = 255; |
662 | pub const SOCK_TXREHASH_DISABLED: u32 = 0; |
663 | pub const SOCK_TXREHASH_ENABLED: u32 = 1; |
664 | pub const IP_TOS: u32 = 1; |
665 | pub const IP_TTL: u32 = 2; |
666 | pub const IP_HDRINCL: u32 = 3; |
667 | pub const IP_OPTIONS: u32 = 4; |
668 | pub const IP_ROUTER_ALERT: u32 = 5; |
669 | pub const IP_RECVOPTS: u32 = 6; |
670 | pub const IP_RETOPTS: u32 = 7; |
671 | pub const IP_PKTINFO: u32 = 8; |
672 | pub const IP_PKTOPTIONS: u32 = 9; |
673 | pub const IP_MTU_DISCOVER: u32 = 10; |
674 | pub const IP_RECVERR: u32 = 11; |
675 | pub const IP_RECVTTL: u32 = 12; |
676 | pub const IP_RECVTOS: u32 = 13; |
677 | pub const IP_MTU: u32 = 14; |
678 | pub const IP_FREEBIND: u32 = 15; |
679 | pub const IP_IPSEC_POLICY: u32 = 16; |
680 | pub const IP_XFRM_POLICY: u32 = 17; |
681 | pub const IP_PASSSEC: u32 = 18; |
682 | pub const IP_TRANSPARENT: u32 = 19; |
683 | pub const IP_RECVRETOPTS: u32 = 7; |
684 | pub const IP_ORIGDSTADDR: u32 = 20; |
685 | pub const IP_RECVORIGDSTADDR: u32 = 20; |
686 | pub const IP_MINTTL: u32 = 21; |
687 | pub const IP_NODEFRAG: u32 = 22; |
688 | pub const IP_CHECKSUM: u32 = 23; |
689 | pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; |
690 | pub const IP_RECVFRAGSIZE: u32 = 25; |
691 | pub const IP_RECVERR_RFC4884: u32 = 26; |
692 | pub const IP_PMTUDISC_DONT: u32 = 0; |
693 | pub const IP_PMTUDISC_WANT: u32 = 1; |
694 | pub const IP_PMTUDISC_DO: u32 = 2; |
695 | pub const IP_PMTUDISC_PROBE: u32 = 3; |
696 | pub const IP_PMTUDISC_INTERFACE: u32 = 4; |
697 | pub const IP_PMTUDISC_OMIT: u32 = 5; |
698 | pub const IP_MULTICAST_IF: u32 = 32; |
699 | pub const IP_MULTICAST_TTL: u32 = 33; |
700 | pub const IP_MULTICAST_LOOP: u32 = 34; |
701 | pub const IP_ADD_MEMBERSHIP: u32 = 35; |
702 | pub const IP_DROP_MEMBERSHIP: u32 = 36; |
703 | pub const IP_UNBLOCK_SOURCE: u32 = 37; |
704 | pub const IP_BLOCK_SOURCE: u32 = 38; |
705 | pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; |
706 | pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; |
707 | pub const IP_MSFILTER: u32 = 41; |
708 | pub const MCAST_JOIN_GROUP: u32 = 42; |
709 | pub const MCAST_BLOCK_SOURCE: u32 = 43; |
710 | pub const MCAST_UNBLOCK_SOURCE: u32 = 44; |
711 | pub const MCAST_LEAVE_GROUP: u32 = 45; |
712 | pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; |
713 | pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; |
714 | pub const MCAST_MSFILTER: u32 = 48; |
715 | pub const IP_MULTICAST_ALL: u32 = 49; |
716 | pub const IP_UNICAST_IF: u32 = 50; |
717 | pub const IP_LOCAL_PORT_RANGE: u32 = 51; |
718 | pub const MCAST_EXCLUDE: u32 = 0; |
719 | pub const MCAST_INCLUDE: u32 = 1; |
720 | pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; |
721 | pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; |
722 | pub const __SOCK_SIZE__: u32 = 16; |
723 | pub const IN_CLASSA_NET: u32 = 4278190080; |
724 | pub const IN_CLASSA_NSHIFT: u32 = 24; |
725 | pub const IN_CLASSA_HOST: u32 = 16777215; |
726 | pub const IN_CLASSA_MAX: u32 = 128; |
727 | pub const IN_CLASSB_NET: u32 = 4294901760; |
728 | pub const IN_CLASSB_NSHIFT: u32 = 16; |
729 | pub const IN_CLASSB_HOST: u32 = 65535; |
730 | pub const IN_CLASSB_MAX: u32 = 65536; |
731 | pub const IN_CLASSC_NET: u32 = 4294967040; |
732 | pub const IN_CLASSC_NSHIFT: u32 = 8; |
733 | pub const IN_CLASSC_HOST: u32 = 255; |
734 | pub const IN_MULTICAST_NET: u32 = 3758096384; |
735 | pub const IN_CLASSE_NET: u32 = 4294967295; |
736 | pub const IN_CLASSE_NSHIFT: u32 = 0; |
737 | pub const IN_LOOPBACKNET: u32 = 127; |
738 | pub const INADDR_LOOPBACK: u32 = 2130706433; |
739 | pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; |
740 | pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; |
741 | pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; |
742 | pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; |
743 | pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; |
744 | pub const __LITTLE_ENDIAN: u32 = 1234; |
745 | pub const IN_ACCESS: u32 = 1; |
746 | pub const IN_MODIFY: u32 = 2; |
747 | pub const IN_ATTRIB: u32 = 4; |
748 | pub const IN_CLOSE_WRITE: u32 = 8; |
749 | pub const IN_CLOSE_NOWRITE: u32 = 16; |
750 | pub const IN_OPEN: u32 = 32; |
751 | pub const IN_MOVED_FROM: u32 = 64; |
752 | pub const IN_MOVED_TO: u32 = 128; |
753 | pub const IN_CREATE: u32 = 256; |
754 | pub const IN_DELETE: u32 = 512; |
755 | pub const IN_DELETE_SELF: u32 = 1024; |
756 | pub const IN_MOVE_SELF: u32 = 2048; |
757 | pub const IN_UNMOUNT: u32 = 8192; |
758 | pub const IN_Q_OVERFLOW: u32 = 16384; |
759 | pub const IN_IGNORED: u32 = 32768; |
760 | pub const IN_CLOSE: u32 = 24; |
761 | pub const IN_MOVE: u32 = 192; |
762 | pub const IN_ONLYDIR: u32 = 16777216; |
763 | pub const IN_DONT_FOLLOW: u32 = 33554432; |
764 | pub const IN_EXCL_UNLINK: u32 = 67108864; |
765 | pub const IN_MASK_CREATE: u32 = 268435456; |
766 | pub const IN_MASK_ADD: u32 = 536870912; |
767 | pub const IN_ISDIR: u32 = 1073741824; |
768 | pub const IN_ONESHOT: u32 = 2147483648; |
769 | pub const IN_ALL_EVENTS: u32 = 4095; |
770 | pub const IN_CLOEXEC: u32 = 524288; |
771 | pub const IN_NONBLOCK: u32 = 2048; |
772 | pub const IPTOS_TOS_MASK: u32 = 30; |
773 | pub const IPTOS_LOWDELAY: u32 = 16; |
774 | pub const IPTOS_THROUGHPUT: u32 = 8; |
775 | pub const IPTOS_RELIABILITY: u32 = 4; |
776 | pub const IPTOS_MINCOST: u32 = 2; |
777 | pub const IPTOS_PREC_MASK: u32 = 224; |
778 | pub const IPTOS_PREC_NETCONTROL: u32 = 224; |
779 | pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; |
780 | pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; |
781 | pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; |
782 | pub const IPTOS_PREC_FLASH: u32 = 96; |
783 | pub const IPTOS_PREC_IMMEDIATE: u32 = 64; |
784 | pub const IPTOS_PREC_PRIORITY: u32 = 32; |
785 | pub const IPTOS_PREC_ROUTINE: u32 = 0; |
786 | pub const IPOPT_COPY: u32 = 128; |
787 | pub const IPOPT_CLASS_MASK: u32 = 96; |
788 | pub const IPOPT_NUMBER_MASK: u32 = 31; |
789 | pub const IPOPT_CONTROL: u32 = 0; |
790 | pub const IPOPT_RESERVED1: u32 = 32; |
791 | pub const IPOPT_MEASUREMENT: u32 = 64; |
792 | pub const IPOPT_RESERVED2: u32 = 96; |
793 | pub const IPOPT_END: u32 = 0; |
794 | pub const IPOPT_NOOP: u32 = 1; |
795 | pub const IPOPT_SEC: u32 = 130; |
796 | pub const IPOPT_LSRR: u32 = 131; |
797 | pub const IPOPT_TIMESTAMP: u32 = 68; |
798 | pub const IPOPT_CIPSO: u32 = 134; |
799 | pub const IPOPT_RR: u32 = 7; |
800 | pub const IPOPT_SID: u32 = 136; |
801 | pub const IPOPT_SSRR: u32 = 137; |
802 | pub const IPOPT_RA: u32 = 148; |
803 | pub const IPVERSION: u32 = 4; |
804 | pub const MAXTTL: u32 = 255; |
805 | pub const IPDEFTTL: u32 = 64; |
806 | pub const IPOPT_OPTVAL: u32 = 0; |
807 | pub const IPOPT_OLEN: u32 = 1; |
808 | pub const IPOPT_OFFSET: u32 = 2; |
809 | pub const IPOPT_MINOFF: u32 = 4; |
810 | pub const MAX_IPOPTLEN: u32 = 40; |
811 | pub const IPOPT_NOP: u32 = 1; |
812 | pub const IPOPT_EOL: u32 = 0; |
813 | pub const IPOPT_TS: u32 = 68; |
814 | pub const IPOPT_TS_TSONLY: u32 = 0; |
815 | pub const IPOPT_TS_TSANDADDR: u32 = 1; |
816 | pub const IPOPT_TS_PRESPEC: u32 = 3; |
817 | pub const IPV4_BEET_PHMAXLEN: u32 = 8; |
818 | pub const IPV6_FL_A_GET: u32 = 0; |
819 | pub const IPV6_FL_A_PUT: u32 = 1; |
820 | pub const IPV6_FL_A_RENEW: u32 = 2; |
821 | pub const IPV6_FL_F_CREATE: u32 = 1; |
822 | pub const IPV6_FL_F_EXCL: u32 = 2; |
823 | pub const IPV6_FL_F_REFLECT: u32 = 4; |
824 | pub const IPV6_FL_F_REMOTE: u32 = 8; |
825 | pub const IPV6_FL_S_NONE: u32 = 0; |
826 | pub const IPV6_FL_S_EXCL: u32 = 1; |
827 | pub const IPV6_FL_S_PROCESS: u32 = 2; |
828 | pub const IPV6_FL_S_USER: u32 = 3; |
829 | pub const IPV6_FL_S_ANY: u32 = 255; |
830 | pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; |
831 | pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; |
832 | pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; |
833 | pub const IPV6_PRIORITY_FILLER: u32 = 256; |
834 | pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; |
835 | pub const IPV6_PRIORITY_RESERVED1: u32 = 768; |
836 | pub const IPV6_PRIORITY_BULK: u32 = 1024; |
837 | pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; |
838 | pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; |
839 | pub const IPV6_PRIORITY_CONTROL: u32 = 1792; |
840 | pub const IPV6_PRIORITY_8: u32 = 2048; |
841 | pub const IPV6_PRIORITY_9: u32 = 2304; |
842 | pub const IPV6_PRIORITY_10: u32 = 2560; |
843 | pub const IPV6_PRIORITY_11: u32 = 2816; |
844 | pub const IPV6_PRIORITY_12: u32 = 3072; |
845 | pub const IPV6_PRIORITY_13: u32 = 3328; |
846 | pub const IPV6_PRIORITY_14: u32 = 3584; |
847 | pub const IPV6_PRIORITY_15: u32 = 3840; |
848 | pub const IPPROTO_HOPOPTS: u32 = 0; |
849 | pub const IPPROTO_ROUTING: u32 = 43; |
850 | pub const IPPROTO_FRAGMENT: u32 = 44; |
851 | pub const IPPROTO_ICMPV6: u32 = 58; |
852 | pub const IPPROTO_NONE: u32 = 59; |
853 | pub const IPPROTO_DSTOPTS: u32 = 60; |
854 | pub const IPPROTO_MH: u32 = 135; |
855 | pub const IPV6_TLV_PAD1: u32 = 0; |
856 | pub const IPV6_TLV_PADN: u32 = 1; |
857 | pub const IPV6_TLV_ROUTERALERT: u32 = 5; |
858 | pub const IPV6_TLV_CALIPSO: u32 = 7; |
859 | pub const IPV6_TLV_IOAM: u32 = 49; |
860 | pub const IPV6_TLV_JUMBO: u32 = 194; |
861 | pub const IPV6_TLV_HAO: u32 = 201; |
862 | pub const IPV6_ADDRFORM: u32 = 1; |
863 | pub const IPV6_2292PKTINFO: u32 = 2; |
864 | pub const IPV6_2292HOPOPTS: u32 = 3; |
865 | pub const IPV6_2292DSTOPTS: u32 = 4; |
866 | pub const IPV6_2292RTHDR: u32 = 5; |
867 | pub const IPV6_2292PKTOPTIONS: u32 = 6; |
868 | pub const IPV6_CHECKSUM: u32 = 7; |
869 | pub const IPV6_2292HOPLIMIT: u32 = 8; |
870 | pub const IPV6_NEXTHOP: u32 = 9; |
871 | pub const IPV6_AUTHHDR: u32 = 10; |
872 | pub const IPV6_FLOWINFO: u32 = 11; |
873 | pub const IPV6_UNICAST_HOPS: u32 = 16; |
874 | pub const IPV6_MULTICAST_IF: u32 = 17; |
875 | pub const IPV6_MULTICAST_HOPS: u32 = 18; |
876 | pub const IPV6_MULTICAST_LOOP: u32 = 19; |
877 | pub const IPV6_ADD_MEMBERSHIP: u32 = 20; |
878 | pub const IPV6_DROP_MEMBERSHIP: u32 = 21; |
879 | pub const IPV6_ROUTER_ALERT: u32 = 22; |
880 | pub const IPV6_MTU_DISCOVER: u32 = 23; |
881 | pub const IPV6_MTU: u32 = 24; |
882 | pub const IPV6_RECVERR: u32 = 25; |
883 | pub const IPV6_V6ONLY: u32 = 26; |
884 | pub const IPV6_JOIN_ANYCAST: u32 = 27; |
885 | pub const IPV6_LEAVE_ANYCAST: u32 = 28; |
886 | pub const IPV6_MULTICAST_ALL: u32 = 29; |
887 | pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; |
888 | pub const IPV6_RECVERR_RFC4884: u32 = 31; |
889 | pub const IPV6_PMTUDISC_DONT: u32 = 0; |
890 | pub const IPV6_PMTUDISC_WANT: u32 = 1; |
891 | pub const IPV6_PMTUDISC_DO: u32 = 2; |
892 | pub const IPV6_PMTUDISC_PROBE: u32 = 3; |
893 | pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; |
894 | pub const IPV6_PMTUDISC_OMIT: u32 = 5; |
895 | pub const IPV6_FLOWLABEL_MGR: u32 = 32; |
896 | pub const IPV6_FLOWINFO_SEND: u32 = 33; |
897 | pub const IPV6_IPSEC_POLICY: u32 = 34; |
898 | pub const IPV6_XFRM_POLICY: u32 = 35; |
899 | pub const IPV6_HDRINCL: u32 = 36; |
900 | pub const IPV6_RECVPKTINFO: u32 = 49; |
901 | pub const IPV6_PKTINFO: u32 = 50; |
902 | pub const IPV6_RECVHOPLIMIT: u32 = 51; |
903 | pub const IPV6_HOPLIMIT: u32 = 52; |
904 | pub const IPV6_RECVHOPOPTS: u32 = 53; |
905 | pub const IPV6_HOPOPTS: u32 = 54; |
906 | pub const IPV6_RTHDRDSTOPTS: u32 = 55; |
907 | pub const IPV6_RECVRTHDR: u32 = 56; |
908 | pub const IPV6_RTHDR: u32 = 57; |
909 | pub const IPV6_RECVDSTOPTS: u32 = 58; |
910 | pub const IPV6_DSTOPTS: u32 = 59; |
911 | pub const IPV6_RECVPATHMTU: u32 = 60; |
912 | pub const IPV6_PATHMTU: u32 = 61; |
913 | pub const IPV6_DONTFRAG: u32 = 62; |
914 | pub const IPV6_RECVTCLASS: u32 = 66; |
915 | pub const IPV6_TCLASS: u32 = 67; |
916 | pub const IPV6_AUTOFLOWLABEL: u32 = 70; |
917 | pub const IPV6_ADDR_PREFERENCES: u32 = 72; |
918 | pub const IPV6_PREFER_SRC_TMP: u32 = 1; |
919 | pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; |
920 | pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; |
921 | pub const IPV6_PREFER_SRC_COA: u32 = 4; |
922 | pub const IPV6_PREFER_SRC_HOME: u32 = 1024; |
923 | pub const IPV6_PREFER_SRC_CGA: u32 = 8; |
924 | pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; |
925 | pub const IPV6_MINHOPCOUNT: u32 = 73; |
926 | pub const IPV6_ORIGDSTADDR: u32 = 74; |
927 | pub const IPV6_RECVORIGDSTADDR: u32 = 74; |
928 | pub const IPV6_TRANSPARENT: u32 = 75; |
929 | pub const IPV6_UNICAST_IF: u32 = 76; |
930 | pub const IPV6_RECVFRAGSIZE: u32 = 77; |
931 | pub const IPV6_FREEBIND: u32 = 78; |
932 | pub const IPV6_MIN_MTU: u32 = 1280; |
933 | pub const IPV6_SRCRT_STRICT: u32 = 1; |
934 | pub const IPV6_SRCRT_TYPE_0: u32 = 0; |
935 | pub const IPV6_SRCRT_TYPE_2: u32 = 2; |
936 | pub const IPV6_SRCRT_TYPE_3: u32 = 3; |
937 | pub const IPV6_SRCRT_TYPE_4: u32 = 4; |
938 | pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; |
939 | pub const ADFS_SUPER_MAGIC: u32 = 44533; |
940 | pub const AFFS_SUPER_MAGIC: u32 = 44543; |
941 | pub const AFS_SUPER_MAGIC: u32 = 1397113167; |
942 | pub const AUTOFS_SUPER_MAGIC: u32 = 391; |
943 | pub const CEPH_SUPER_MAGIC: u32 = 12805120; |
944 | pub const CODA_SUPER_MAGIC: u32 = 1937076805; |
945 | pub const CRAMFS_MAGIC: u32 = 684539205; |
946 | pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; |
947 | pub const DEBUGFS_MAGIC: u32 = 1684170528; |
948 | pub const SECURITYFS_MAGIC: u32 = 1935894131; |
949 | pub const SELINUX_MAGIC: u32 = 4185718668; |
950 | pub const SMACK_MAGIC: u32 = 1128357203; |
951 | pub const RAMFS_MAGIC: u32 = 2240043254; |
952 | pub const TMPFS_MAGIC: u32 = 16914836; |
953 | pub const HUGETLBFS_MAGIC: u32 = 2508478710; |
954 | pub const SQUASHFS_MAGIC: u32 = 1936814952; |
955 | pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; |
956 | pub const EFS_SUPER_MAGIC: u32 = 4278867; |
957 | pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; |
958 | pub const EXT2_SUPER_MAGIC: u32 = 61267; |
959 | pub const EXT3_SUPER_MAGIC: u32 = 61267; |
960 | pub const XENFS_SUPER_MAGIC: u32 = 2881100148; |
961 | pub const EXT4_SUPER_MAGIC: u32 = 61267; |
962 | pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; |
963 | pub const NILFS_SUPER_MAGIC: u32 = 13364; |
964 | pub const F2FS_SUPER_MAGIC: u32 = 4076150800; |
965 | pub const HPFS_SUPER_MAGIC: u32 = 4187351113; |
966 | pub const ISOFS_SUPER_MAGIC: u32 = 38496; |
967 | pub const JFFS2_SUPER_MAGIC: u32 = 29366; |
968 | pub const XFS_SUPER_MAGIC: u32 = 1481003842; |
969 | pub const PSTOREFS_MAGIC: u32 = 1634035564; |
970 | pub const EFIVARFS_MAGIC: u32 = 3730735588; |
971 | pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; |
972 | pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; |
973 | pub const FUSE_SUPER_MAGIC: u32 = 1702057286; |
974 | pub const MINIX_SUPER_MAGIC: u32 = 4991; |
975 | pub const MINIX_SUPER_MAGIC2: u32 = 5007; |
976 | pub const MINIX2_SUPER_MAGIC: u32 = 9320; |
977 | pub const MINIX2_SUPER_MAGIC2: u32 = 9336; |
978 | pub const MINIX3_SUPER_MAGIC: u32 = 19802; |
979 | pub const MSDOS_SUPER_MAGIC: u32 = 19780; |
980 | pub const EXFAT_SUPER_MAGIC: u32 = 538032816; |
981 | pub const NCP_SUPER_MAGIC: u32 = 22092; |
982 | pub const NFS_SUPER_MAGIC: u32 = 26985; |
983 | pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; |
984 | pub const OPENPROM_SUPER_MAGIC: u32 = 40865; |
985 | pub const QNX4_SUPER_MAGIC: u32 = 47; |
986 | pub const QNX6_SUPER_MAGIC: u32 = 1746473250; |
987 | pub const AFS_FS_MAGIC: u32 = 1799439955; |
988 | pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; |
989 | pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9usize] = b"ReIsErFs \0" ; |
990 | pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10usize] = b"ReIsEr2Fs \0" ; |
991 | pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10usize] = b"ReIsEr3Fs \0" ; |
992 | pub const SMB_SUPER_MAGIC: u32 = 20859; |
993 | pub const CIFS_SUPER_MAGIC: u32 = 4283649346; |
994 | pub const SMB2_SUPER_MAGIC: u32 = 4266872130; |
995 | pub const CGROUP_SUPER_MAGIC: u32 = 2613483; |
996 | pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; |
997 | pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; |
998 | pub const STACK_END_MAGIC: u32 = 1470918301; |
999 | pub const TRACEFS_MAGIC: u32 = 1953653091; |
1000 | pub const V9FS_MAGIC: u32 = 16914839; |
1001 | pub const BDEVFS_MAGIC: u32 = 1650746742; |
1002 | pub const DAXFS_MAGIC: u32 = 1684300152; |
1003 | pub const BINFMTFS_MAGIC: u32 = 1112100429; |
1004 | pub const DEVPTS_SUPER_MAGIC: u32 = 7377; |
1005 | pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; |
1006 | pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; |
1007 | pub const PIPEFS_MAGIC: u32 = 1346981957; |
1008 | pub const PROC_SUPER_MAGIC: u32 = 40864; |
1009 | pub const SOCKFS_MAGIC: u32 = 1397703499; |
1010 | pub const SYSFS_MAGIC: u32 = 1650812274; |
1011 | pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; |
1012 | pub const MTD_INODE_FS_MAGIC: u32 = 288389204; |
1013 | pub const ANON_INODE_FS_MAGIC: u32 = 151263540; |
1014 | pub const BTRFS_TEST_MAGIC: u32 = 1936880249; |
1015 | pub const NSFS_MAGIC: u32 = 1853056627; |
1016 | pub const BPF_FS_MAGIC: u32 = 3405662737; |
1017 | pub const AAFS_MAGIC: u32 = 1513908720; |
1018 | pub const ZONEFS_MAGIC: u32 = 1515144787; |
1019 | pub const UDF_SUPER_MAGIC: u32 = 352400198; |
1020 | pub const DMA_BUF_MAGIC: u32 = 1145913666; |
1021 | pub const DEVMEM_MAGIC: u32 = 1162691661; |
1022 | pub const SECRETMEM_MAGIC: u32 = 1397048141; |
1023 | pub const MAP_32BIT: u32 = 64; |
1024 | pub const PROT_READ: u32 = 1; |
1025 | pub const PROT_WRITE: u32 = 2; |
1026 | pub const PROT_EXEC: u32 = 4; |
1027 | pub const PROT_SEM: u32 = 8; |
1028 | pub const PROT_NONE: u32 = 0; |
1029 | pub const PROT_GROWSDOWN: u32 = 16777216; |
1030 | pub const PROT_GROWSUP: u32 = 33554432; |
1031 | pub const MAP_TYPE: u32 = 15; |
1032 | pub const MAP_FIXED: u32 = 16; |
1033 | pub const MAP_ANONYMOUS: u32 = 32; |
1034 | pub const MAP_POPULATE: u32 = 32768; |
1035 | pub const MAP_NONBLOCK: u32 = 65536; |
1036 | pub const MAP_STACK: u32 = 131072; |
1037 | pub const MAP_HUGETLB: u32 = 262144; |
1038 | pub const MAP_SYNC: u32 = 524288; |
1039 | pub const MAP_FIXED_NOREPLACE: u32 = 1048576; |
1040 | pub const MAP_UNINITIALIZED: u32 = 67108864; |
1041 | pub const MLOCK_ONFAULT: u32 = 1; |
1042 | pub const MS_ASYNC: u32 = 1; |
1043 | pub const MS_INVALIDATE: u32 = 2; |
1044 | pub const MS_SYNC: u32 = 4; |
1045 | pub const MADV_NORMAL: u32 = 0; |
1046 | pub const MADV_RANDOM: u32 = 1; |
1047 | pub const MADV_SEQUENTIAL: u32 = 2; |
1048 | pub const MADV_WILLNEED: u32 = 3; |
1049 | pub const MADV_DONTNEED: u32 = 4; |
1050 | pub const MADV_FREE: u32 = 8; |
1051 | pub const MADV_REMOVE: u32 = 9; |
1052 | pub const MADV_DONTFORK: u32 = 10; |
1053 | pub const MADV_DOFORK: u32 = 11; |
1054 | pub const MADV_HWPOISON: u32 = 100; |
1055 | pub const MADV_SOFT_OFFLINE: u32 = 101; |
1056 | pub const MADV_MERGEABLE: u32 = 12; |
1057 | pub const MADV_UNMERGEABLE: u32 = 13; |
1058 | pub const MADV_HUGEPAGE: u32 = 14; |
1059 | pub const MADV_NOHUGEPAGE: u32 = 15; |
1060 | pub const MADV_DONTDUMP: u32 = 16; |
1061 | pub const MADV_DODUMP: u32 = 17; |
1062 | pub const MADV_WIPEONFORK: u32 = 18; |
1063 | pub const MADV_KEEPONFORK: u32 = 19; |
1064 | pub const MADV_COLD: u32 = 20; |
1065 | pub const MADV_PAGEOUT: u32 = 21; |
1066 | pub const MADV_POPULATE_READ: u32 = 22; |
1067 | pub const MADV_POPULATE_WRITE: u32 = 23; |
1068 | pub const MADV_DONTNEED_LOCKED: u32 = 24; |
1069 | pub const MADV_COLLAPSE: u32 = 25; |
1070 | pub const MAP_FILE: u32 = 0; |
1071 | pub const PKEY_DISABLE_ACCESS: u32 = 1; |
1072 | pub const PKEY_DISABLE_WRITE: u32 = 2; |
1073 | pub const PKEY_ACCESS_MASK: u32 = 3; |
1074 | pub const MAP_GROWSDOWN: u32 = 256; |
1075 | pub const MAP_DENYWRITE: u32 = 2048; |
1076 | pub const MAP_EXECUTABLE: u32 = 4096; |
1077 | pub const MAP_LOCKED: u32 = 8192; |
1078 | pub const MAP_NORESERVE: u32 = 16384; |
1079 | pub const MCL_CURRENT: u32 = 1; |
1080 | pub const MCL_FUTURE: u32 = 2; |
1081 | pub const MCL_ONFAULT: u32 = 4; |
1082 | pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; |
1083 | pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; |
1084 | pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; |
1085 | pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; |
1086 | pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; |
1087 | pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; |
1088 | pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; |
1089 | pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; |
1090 | pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; |
1091 | pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; |
1092 | pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; |
1093 | pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; |
1094 | pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; |
1095 | pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; |
1096 | pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; |
1097 | pub const MREMAP_MAYMOVE: u32 = 1; |
1098 | pub const MREMAP_FIXED: u32 = 2; |
1099 | pub const MREMAP_DONTUNMAP: u32 = 4; |
1100 | pub const OVERCOMMIT_GUESS: u32 = 0; |
1101 | pub const OVERCOMMIT_ALWAYS: u32 = 1; |
1102 | pub const OVERCOMMIT_NEVER: u32 = 2; |
1103 | pub const MAP_SHARED: u32 = 1; |
1104 | pub const MAP_PRIVATE: u32 = 2; |
1105 | pub const MAP_SHARED_VALIDATE: u32 = 3; |
1106 | pub const MAP_HUGE_SHIFT: u32 = 26; |
1107 | pub const MAP_HUGE_MASK: u32 = 63; |
1108 | pub const MAP_HUGE_16KB: u32 = 939524096; |
1109 | pub const MAP_HUGE_64KB: u32 = 1073741824; |
1110 | pub const MAP_HUGE_512KB: u32 = 1275068416; |
1111 | pub const MAP_HUGE_1MB: u32 = 1342177280; |
1112 | pub const MAP_HUGE_2MB: u32 = 1409286144; |
1113 | pub const MAP_HUGE_8MB: u32 = 1543503872; |
1114 | pub const MAP_HUGE_16MB: u32 = 1610612736; |
1115 | pub const MAP_HUGE_32MB: u32 = 1677721600; |
1116 | pub const MAP_HUGE_256MB: u32 = 1879048192; |
1117 | pub const MAP_HUGE_512MB: u32 = 1946157056; |
1118 | pub const MAP_HUGE_1GB: u32 = 2013265920; |
1119 | pub const MAP_HUGE_2GB: u32 = 2080374784; |
1120 | pub const MAP_HUGE_16GB: u32 = 2281701376; |
1121 | pub const SIOCGSTAMP_OLD: u32 = 35078; |
1122 | pub const SIOCGSTAMPNS_OLD: u32 = 35079; |
1123 | pub const SOL_SOCKET: u32 = 1; |
1124 | pub const SO_DEBUG: u32 = 1; |
1125 | pub const SO_REUSEADDR: u32 = 2; |
1126 | pub const SO_TYPE: u32 = 3; |
1127 | pub const SO_ERROR: u32 = 4; |
1128 | pub const SO_DONTROUTE: u32 = 5; |
1129 | pub const SO_BROADCAST: u32 = 6; |
1130 | pub const SO_SNDBUF: u32 = 7; |
1131 | pub const SO_RCVBUF: u32 = 8; |
1132 | pub const SO_SNDBUFFORCE: u32 = 32; |
1133 | pub const SO_RCVBUFFORCE: u32 = 33; |
1134 | pub const SO_KEEPALIVE: u32 = 9; |
1135 | pub const SO_OOBINLINE: u32 = 10; |
1136 | pub const SO_NO_CHECK: u32 = 11; |
1137 | pub const SO_PRIORITY: u32 = 12; |
1138 | pub const SO_LINGER: u32 = 13; |
1139 | pub const SO_BSDCOMPAT: u32 = 14; |
1140 | pub const SO_REUSEPORT: u32 = 15; |
1141 | pub const SO_PASSCRED: u32 = 16; |
1142 | pub const SO_PEERCRED: u32 = 17; |
1143 | pub const SO_RCVLOWAT: u32 = 18; |
1144 | pub const SO_SNDLOWAT: u32 = 19; |
1145 | pub const SO_RCVTIMEO_OLD: u32 = 20; |
1146 | pub const SO_SNDTIMEO_OLD: u32 = 21; |
1147 | pub const SO_SECURITY_AUTHENTICATION: u32 = 22; |
1148 | pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; |
1149 | pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; |
1150 | pub const SO_BINDTODEVICE: u32 = 25; |
1151 | pub const SO_ATTACH_FILTER: u32 = 26; |
1152 | pub const SO_DETACH_FILTER: u32 = 27; |
1153 | pub const SO_GET_FILTER: u32 = 26; |
1154 | pub const SO_PEERNAME: u32 = 28; |
1155 | pub const SO_ACCEPTCONN: u32 = 30; |
1156 | pub const SO_PEERSEC: u32 = 31; |
1157 | pub const SO_PASSSEC: u32 = 34; |
1158 | pub const SO_MARK: u32 = 36; |
1159 | pub const SO_PROTOCOL: u32 = 38; |
1160 | pub const SO_DOMAIN: u32 = 39; |
1161 | pub const SO_RXQ_OVFL: u32 = 40; |
1162 | pub const SO_WIFI_STATUS: u32 = 41; |
1163 | pub const SCM_WIFI_STATUS: u32 = 41; |
1164 | pub const SO_PEEK_OFF: u32 = 42; |
1165 | pub const SO_NOFCS: u32 = 43; |
1166 | pub const SO_LOCK_FILTER: u32 = 44; |
1167 | pub const SO_SELECT_ERR_QUEUE: u32 = 45; |
1168 | pub const SO_BUSY_POLL: u32 = 46; |
1169 | pub const SO_MAX_PACING_RATE: u32 = 47; |
1170 | pub const SO_BPF_EXTENSIONS: u32 = 48; |
1171 | pub const SO_INCOMING_CPU: u32 = 49; |
1172 | pub const SO_ATTACH_BPF: u32 = 50; |
1173 | pub const SO_DETACH_BPF: u32 = 27; |
1174 | pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; |
1175 | pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; |
1176 | pub const SO_CNX_ADVICE: u32 = 53; |
1177 | pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; |
1178 | pub const SO_MEMINFO: u32 = 55; |
1179 | pub const SO_INCOMING_NAPI_ID: u32 = 56; |
1180 | pub const SO_COOKIE: u32 = 57; |
1181 | pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; |
1182 | pub const SO_PEERGROUPS: u32 = 59; |
1183 | pub const SO_ZEROCOPY: u32 = 60; |
1184 | pub const SO_TXTIME: u32 = 61; |
1185 | pub const SCM_TXTIME: u32 = 61; |
1186 | pub const SO_BINDTOIFINDEX: u32 = 62; |
1187 | pub const SO_TIMESTAMP_OLD: u32 = 29; |
1188 | pub const SO_TIMESTAMPNS_OLD: u32 = 35; |
1189 | pub const SO_TIMESTAMPING_OLD: u32 = 37; |
1190 | pub const SO_TIMESTAMP_NEW: u32 = 63; |
1191 | pub const SO_TIMESTAMPNS_NEW: u32 = 64; |
1192 | pub const SO_TIMESTAMPING_NEW: u32 = 65; |
1193 | pub const SO_RCVTIMEO_NEW: u32 = 66; |
1194 | pub const SO_SNDTIMEO_NEW: u32 = 67; |
1195 | pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; |
1196 | pub const SO_PREFER_BUSY_POLL: u32 = 69; |
1197 | pub const SO_BUSY_POLL_BUDGET: u32 = 70; |
1198 | pub const SO_NETNS_COOKIE: u32 = 71; |
1199 | pub const SO_BUF_LOCK: u32 = 72; |
1200 | pub const SO_RESERVE_MEM: u32 = 73; |
1201 | pub const SO_TXREHASH: u32 = 74; |
1202 | pub const SO_RCVMARK: u32 = 75; |
1203 | pub const SO_TIMESTAMP: u32 = 29; |
1204 | pub const SO_TIMESTAMPNS: u32 = 35; |
1205 | pub const SO_TIMESTAMPING: u32 = 37; |
1206 | pub const SO_RCVTIMEO: u32 = 20; |
1207 | pub const SO_SNDTIMEO: u32 = 21; |
1208 | pub const SCM_TIMESTAMP: u32 = 29; |
1209 | pub const SCM_TIMESTAMPNS: u32 = 35; |
1210 | pub const SCM_TIMESTAMPING: u32 = 37; |
1211 | pub const SYS_SOCKET: u32 = 1; |
1212 | pub const SYS_BIND: u32 = 2; |
1213 | pub const SYS_CONNECT: u32 = 3; |
1214 | pub const SYS_LISTEN: u32 = 4; |
1215 | pub const SYS_ACCEPT: u32 = 5; |
1216 | pub const SYS_GETSOCKNAME: u32 = 6; |
1217 | pub const SYS_GETPEERNAME: u32 = 7; |
1218 | pub const SYS_SOCKETPAIR: u32 = 8; |
1219 | pub const SYS_SEND: u32 = 9; |
1220 | pub const SYS_RECV: u32 = 10; |
1221 | pub const SYS_SENDTO: u32 = 11; |
1222 | pub const SYS_RECVFROM: u32 = 12; |
1223 | pub const SYS_SHUTDOWN: u32 = 13; |
1224 | pub const SYS_SETSOCKOPT: u32 = 14; |
1225 | pub const SYS_GETSOCKOPT: u32 = 15; |
1226 | pub const SYS_SENDMSG: u32 = 16; |
1227 | pub const SYS_RECVMSG: u32 = 17; |
1228 | pub const SYS_ACCEPT4: u32 = 18; |
1229 | pub const SYS_RECVMMSG: u32 = 19; |
1230 | pub const SYS_SENDMMSG: u32 = 20; |
1231 | pub const __SO_ACCEPTCON: u32 = 65536; |
1232 | pub const POLLIN: u32 = 1; |
1233 | pub const POLLPRI: u32 = 2; |
1234 | pub const POLLOUT: u32 = 4; |
1235 | pub const POLLERR: u32 = 8; |
1236 | pub const POLLHUP: u32 = 16; |
1237 | pub const POLLNVAL: u32 = 32; |
1238 | pub const POLLRDNORM: u32 = 64; |
1239 | pub const POLLRDBAND: u32 = 128; |
1240 | pub const POLLWRNORM: u32 = 256; |
1241 | pub const POLLWRBAND: u32 = 512; |
1242 | pub const POLLMSG: u32 = 1024; |
1243 | pub const POLLREMOVE: u32 = 4096; |
1244 | pub const POLLRDHUP: u32 = 8192; |
1245 | pub const PR_SET_PDEATHSIG: u32 = 1; |
1246 | pub const PR_GET_PDEATHSIG: u32 = 2; |
1247 | pub const PR_GET_DUMPABLE: u32 = 3; |
1248 | pub const PR_SET_DUMPABLE: u32 = 4; |
1249 | pub const PR_GET_UNALIGN: u32 = 5; |
1250 | pub const PR_SET_UNALIGN: u32 = 6; |
1251 | pub const PR_UNALIGN_NOPRINT: u32 = 1; |
1252 | pub const PR_UNALIGN_SIGBUS: u32 = 2; |
1253 | pub const PR_GET_KEEPCAPS: u32 = 7; |
1254 | pub const PR_SET_KEEPCAPS: u32 = 8; |
1255 | pub const PR_GET_FPEMU: u32 = 9; |
1256 | pub const PR_SET_FPEMU: u32 = 10; |
1257 | pub const PR_FPEMU_NOPRINT: u32 = 1; |
1258 | pub const PR_FPEMU_SIGFPE: u32 = 2; |
1259 | pub const PR_GET_FPEXC: u32 = 11; |
1260 | pub const PR_SET_FPEXC: u32 = 12; |
1261 | pub const PR_FP_EXC_SW_ENABLE: u32 = 128; |
1262 | pub const PR_FP_EXC_DIV: u32 = 65536; |
1263 | pub const PR_FP_EXC_OVF: u32 = 131072; |
1264 | pub const PR_FP_EXC_UND: u32 = 262144; |
1265 | pub const PR_FP_EXC_RES: u32 = 524288; |
1266 | pub const PR_FP_EXC_INV: u32 = 1048576; |
1267 | pub const PR_FP_EXC_DISABLED: u32 = 0; |
1268 | pub const PR_FP_EXC_NONRECOV: u32 = 1; |
1269 | pub const PR_FP_EXC_ASYNC: u32 = 2; |
1270 | pub const PR_FP_EXC_PRECISE: u32 = 3; |
1271 | pub const PR_GET_TIMING: u32 = 13; |
1272 | pub const PR_SET_TIMING: u32 = 14; |
1273 | pub const PR_TIMING_STATISTICAL: u32 = 0; |
1274 | pub const PR_TIMING_TIMESTAMP: u32 = 1; |
1275 | pub const PR_SET_NAME: u32 = 15; |
1276 | pub const PR_GET_NAME: u32 = 16; |
1277 | pub const PR_GET_ENDIAN: u32 = 19; |
1278 | pub const PR_SET_ENDIAN: u32 = 20; |
1279 | pub const PR_ENDIAN_BIG: u32 = 0; |
1280 | pub const PR_ENDIAN_LITTLE: u32 = 1; |
1281 | pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; |
1282 | pub const PR_GET_SECCOMP: u32 = 21; |
1283 | pub const PR_SET_SECCOMP: u32 = 22; |
1284 | pub const PR_CAPBSET_READ: u32 = 23; |
1285 | pub const PR_CAPBSET_DROP: u32 = 24; |
1286 | pub const PR_GET_TSC: u32 = 25; |
1287 | pub const PR_SET_TSC: u32 = 26; |
1288 | pub const PR_TSC_ENABLE: u32 = 1; |
1289 | pub const PR_TSC_SIGSEGV: u32 = 2; |
1290 | pub const PR_GET_SECUREBITS: u32 = 27; |
1291 | pub const PR_SET_SECUREBITS: u32 = 28; |
1292 | pub const PR_SET_TIMERSLACK: u32 = 29; |
1293 | pub const PR_GET_TIMERSLACK: u32 = 30; |
1294 | pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; |
1295 | pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; |
1296 | pub const PR_MCE_KILL: u32 = 33; |
1297 | pub const PR_MCE_KILL_CLEAR: u32 = 0; |
1298 | pub const PR_MCE_KILL_SET: u32 = 1; |
1299 | pub const PR_MCE_KILL_LATE: u32 = 0; |
1300 | pub const PR_MCE_KILL_EARLY: u32 = 1; |
1301 | pub const PR_MCE_KILL_DEFAULT: u32 = 2; |
1302 | pub const PR_MCE_KILL_GET: u32 = 34; |
1303 | pub const PR_SET_MM: u32 = 35; |
1304 | pub const PR_SET_MM_START_CODE: u32 = 1; |
1305 | pub const PR_SET_MM_END_CODE: u32 = 2; |
1306 | pub const PR_SET_MM_START_DATA: u32 = 3; |
1307 | pub const PR_SET_MM_END_DATA: u32 = 4; |
1308 | pub const PR_SET_MM_START_STACK: u32 = 5; |
1309 | pub const PR_SET_MM_START_BRK: u32 = 6; |
1310 | pub const PR_SET_MM_BRK: u32 = 7; |
1311 | pub const PR_SET_MM_ARG_START: u32 = 8; |
1312 | pub const PR_SET_MM_ARG_END: u32 = 9; |
1313 | pub const PR_SET_MM_ENV_START: u32 = 10; |
1314 | pub const PR_SET_MM_ENV_END: u32 = 11; |
1315 | pub const PR_SET_MM_AUXV: u32 = 12; |
1316 | pub const PR_SET_MM_EXE_FILE: u32 = 13; |
1317 | pub const PR_SET_MM_MAP: u32 = 14; |
1318 | pub const PR_SET_MM_MAP_SIZE: u32 = 15; |
1319 | pub const PR_SET_PTRACER: u32 = 1499557217; |
1320 | pub const PR_SET_CHILD_SUBREAPER: u32 = 36; |
1321 | pub const PR_GET_CHILD_SUBREAPER: u32 = 37; |
1322 | pub const PR_SET_NO_NEW_PRIVS: u32 = 38; |
1323 | pub const PR_GET_NO_NEW_PRIVS: u32 = 39; |
1324 | pub const PR_GET_TID_ADDRESS: u32 = 40; |
1325 | pub const PR_SET_THP_DISABLE: u32 = 41; |
1326 | pub const PR_GET_THP_DISABLE: u32 = 42; |
1327 | pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; |
1328 | pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; |
1329 | pub const PR_SET_FP_MODE: u32 = 45; |
1330 | pub const PR_GET_FP_MODE: u32 = 46; |
1331 | pub const PR_FP_MODE_FR: u32 = 1; |
1332 | pub const PR_FP_MODE_FRE: u32 = 2; |
1333 | pub const PR_CAP_AMBIENT: u32 = 47; |
1334 | pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; |
1335 | pub const PR_CAP_AMBIENT_RAISE: u32 = 2; |
1336 | pub const PR_CAP_AMBIENT_LOWER: u32 = 3; |
1337 | pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; |
1338 | pub const PR_SVE_SET_VL: u32 = 50; |
1339 | pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; |
1340 | pub const PR_SVE_GET_VL: u32 = 51; |
1341 | pub const PR_SVE_VL_LEN_MASK: u32 = 65535; |
1342 | pub const PR_SVE_VL_INHERIT: u32 = 131072; |
1343 | pub const PR_GET_SPECULATION_CTRL: u32 = 52; |
1344 | pub const PR_SET_SPECULATION_CTRL: u32 = 53; |
1345 | pub const PR_SPEC_STORE_BYPASS: u32 = 0; |
1346 | pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; |
1347 | pub const PR_SPEC_L1D_FLUSH: u32 = 2; |
1348 | pub const PR_SPEC_NOT_AFFECTED: u32 = 0; |
1349 | pub const PR_SPEC_PRCTL: u32 = 1; |
1350 | pub const PR_SPEC_ENABLE: u32 = 2; |
1351 | pub const PR_SPEC_DISABLE: u32 = 4; |
1352 | pub const PR_SPEC_FORCE_DISABLE: u32 = 8; |
1353 | pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; |
1354 | pub const PR_PAC_RESET_KEYS: u32 = 54; |
1355 | pub const PR_PAC_APIAKEY: u32 = 1; |
1356 | pub const PR_PAC_APIBKEY: u32 = 2; |
1357 | pub const PR_PAC_APDAKEY: u32 = 4; |
1358 | pub const PR_PAC_APDBKEY: u32 = 8; |
1359 | pub const PR_PAC_APGAKEY: u32 = 16; |
1360 | pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; |
1361 | pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; |
1362 | pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; |
1363 | pub const PR_MTE_TCF_NONE: u32 = 0; |
1364 | pub const PR_MTE_TCF_SYNC: u32 = 2; |
1365 | pub const PR_MTE_TCF_ASYNC: u32 = 4; |
1366 | pub const PR_MTE_TCF_MASK: u32 = 6; |
1367 | pub const PR_MTE_TAG_SHIFT: u32 = 3; |
1368 | pub const PR_MTE_TAG_MASK: u32 = 524280; |
1369 | pub const PR_MTE_TCF_SHIFT: u32 = 1; |
1370 | pub const PR_SET_IO_FLUSHER: u32 = 57; |
1371 | pub const PR_GET_IO_FLUSHER: u32 = 58; |
1372 | pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; |
1373 | pub const PR_SYS_DISPATCH_OFF: u32 = 0; |
1374 | pub const PR_SYS_DISPATCH_ON: u32 = 1; |
1375 | pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; |
1376 | pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; |
1377 | pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; |
1378 | pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; |
1379 | pub const PR_SCHED_CORE: u32 = 62; |
1380 | pub const PR_SCHED_CORE_GET: u32 = 0; |
1381 | pub const PR_SCHED_CORE_CREATE: u32 = 1; |
1382 | pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; |
1383 | pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; |
1384 | pub const PR_SCHED_CORE_MAX: u32 = 4; |
1385 | pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; |
1386 | pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; |
1387 | pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; |
1388 | pub const PR_SME_SET_VL: u32 = 63; |
1389 | pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; |
1390 | pub const PR_SME_GET_VL: u32 = 64; |
1391 | pub const PR_SME_VL_LEN_MASK: u32 = 65535; |
1392 | pub const PR_SME_VL_INHERIT: u32 = 131072; |
1393 | pub const PR_SET_MDWE: u32 = 65; |
1394 | pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; |
1395 | pub const PR_GET_MDWE: u32 = 66; |
1396 | pub const PR_SET_VMA: u32 = 1398164801; |
1397 | pub const PR_SET_VMA_ANON_NAME: u32 = 0; |
1398 | pub const GRND_NONBLOCK: u32 = 1; |
1399 | pub const GRND_RANDOM: u32 = 2; |
1400 | pub const GRND_INSECURE: u32 = 4; |
1401 | pub const ITIMER_REAL: u32 = 0; |
1402 | pub const ITIMER_VIRTUAL: u32 = 1; |
1403 | pub const ITIMER_PROF: u32 = 2; |
1404 | pub const CLOCK_REALTIME: u32 = 0; |
1405 | pub const CLOCK_MONOTONIC: u32 = 1; |
1406 | pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; |
1407 | pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; |
1408 | pub const CLOCK_MONOTONIC_RAW: u32 = 4; |
1409 | pub const CLOCK_REALTIME_COARSE: u32 = 5; |
1410 | pub const CLOCK_MONOTONIC_COARSE: u32 = 6; |
1411 | pub const CLOCK_BOOTTIME: u32 = 7; |
1412 | pub const CLOCK_REALTIME_ALARM: u32 = 8; |
1413 | pub const CLOCK_BOOTTIME_ALARM: u32 = 9; |
1414 | pub const CLOCK_SGI_CYCLE: u32 = 10; |
1415 | pub const CLOCK_TAI: u32 = 11; |
1416 | pub const MAX_CLOCKS: u32 = 16; |
1417 | pub const CLOCKS_MASK: u32 = 1; |
1418 | pub const CLOCKS_MONO: u32 = 1; |
1419 | pub const TIMER_ABSTIME: u32 = 1; |
1420 | pub const RUSAGE_SELF: u32 = 0; |
1421 | pub const RUSAGE_CHILDREN: i32 = -1; |
1422 | pub const RUSAGE_BOTH: i32 = -2; |
1423 | pub const RUSAGE_THREAD: u32 = 1; |
1424 | pub const RLIM64_INFINITY: i32 = -1; |
1425 | pub const PRIO_MIN: i32 = -20; |
1426 | pub const PRIO_MAX: u32 = 20; |
1427 | pub const PRIO_PROCESS: u32 = 0; |
1428 | pub const PRIO_PGRP: u32 = 1; |
1429 | pub const PRIO_USER: u32 = 2; |
1430 | pub const _STK_LIM: u32 = 8388608; |
1431 | pub const MLOCK_LIMIT: u32 = 8388608; |
1432 | pub const RLIMIT_CPU: u32 = 0; |
1433 | pub const RLIMIT_FSIZE: u32 = 1; |
1434 | pub const RLIMIT_DATA: u32 = 2; |
1435 | pub const RLIMIT_STACK: u32 = 3; |
1436 | pub const RLIMIT_CORE: u32 = 4; |
1437 | pub const RLIMIT_RSS: u32 = 5; |
1438 | pub const RLIMIT_NPROC: u32 = 6; |
1439 | pub const RLIMIT_NOFILE: u32 = 7; |
1440 | pub const RLIMIT_MEMLOCK: u32 = 8; |
1441 | pub const RLIMIT_AS: u32 = 9; |
1442 | pub const RLIMIT_LOCKS: u32 = 10; |
1443 | pub const RLIMIT_SIGPENDING: u32 = 11; |
1444 | pub const RLIMIT_MSGQUEUE: u32 = 12; |
1445 | pub const RLIMIT_NICE: u32 = 13; |
1446 | pub const RLIMIT_RTPRIO: u32 = 14; |
1447 | pub const RLIMIT_RTTIME: u32 = 15; |
1448 | pub const RLIM_NLIMITS: u32 = 16; |
1449 | pub const RLIM_INFINITY: i32 = -1; |
1450 | pub const CSIGNAL: u32 = 255; |
1451 | pub const CLONE_VM: u32 = 256; |
1452 | pub const CLONE_FS: u32 = 512; |
1453 | pub const CLONE_FILES: u32 = 1024; |
1454 | pub const CLONE_SIGHAND: u32 = 2048; |
1455 | pub const CLONE_PIDFD: u32 = 4096; |
1456 | pub const CLONE_PTRACE: u32 = 8192; |
1457 | pub const CLONE_VFORK: u32 = 16384; |
1458 | pub const CLONE_PARENT: u32 = 32768; |
1459 | pub const CLONE_THREAD: u32 = 65536; |
1460 | pub const CLONE_NEWNS: u32 = 131072; |
1461 | pub const CLONE_SYSVSEM: u32 = 262144; |
1462 | pub const CLONE_SETTLS: u32 = 524288; |
1463 | pub const CLONE_PARENT_SETTID: u32 = 1048576; |
1464 | pub const CLONE_CHILD_CLEARTID: u32 = 2097152; |
1465 | pub const CLONE_DETACHED: u32 = 4194304; |
1466 | pub const CLONE_UNTRACED: u32 = 8388608; |
1467 | pub const CLONE_CHILD_SETTID: u32 = 16777216; |
1468 | pub const CLONE_NEWCGROUP: u32 = 33554432; |
1469 | pub const CLONE_NEWUTS: u32 = 67108864; |
1470 | pub const CLONE_NEWIPC: u32 = 134217728; |
1471 | pub const CLONE_NEWUSER: u32 = 268435456; |
1472 | pub const CLONE_NEWPID: u32 = 536870912; |
1473 | pub const CLONE_NEWNET: u32 = 1073741824; |
1474 | pub const CLONE_IO: u32 = 2147483648; |
1475 | pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; |
1476 | pub const CLONE_INTO_CGROUP: u64 = 8589934592; |
1477 | pub const CLONE_NEWTIME: u32 = 128; |
1478 | pub const CLONE_ARGS_SIZE_VER0: u32 = 64; |
1479 | pub const CLONE_ARGS_SIZE_VER1: u32 = 80; |
1480 | pub const CLONE_ARGS_SIZE_VER2: u32 = 88; |
1481 | pub const SCHED_NORMAL: u32 = 0; |
1482 | pub const SCHED_FIFO: u32 = 1; |
1483 | pub const SCHED_RR: u32 = 2; |
1484 | pub const SCHED_BATCH: u32 = 3; |
1485 | pub const SCHED_IDLE: u32 = 5; |
1486 | pub const SCHED_DEADLINE: u32 = 6; |
1487 | pub const SCHED_RESET_ON_FORK: u32 = 1073741824; |
1488 | pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; |
1489 | pub const SCHED_FLAG_RECLAIM: u32 = 2; |
1490 | pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; |
1491 | pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; |
1492 | pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; |
1493 | pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; |
1494 | pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; |
1495 | pub const SCHED_FLAG_KEEP_ALL: u32 = 24; |
1496 | pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; |
1497 | pub const SCHED_FLAG_ALL: u32 = 127; |
1498 | pub const NSIG: u32 = 32; |
1499 | pub const SIGHUP: u32 = 1; |
1500 | pub const SIGINT: u32 = 2; |
1501 | pub const SIGQUIT: u32 = 3; |
1502 | pub const SIGILL: u32 = 4; |
1503 | pub const SIGTRAP: u32 = 5; |
1504 | pub const SIGABRT: u32 = 6; |
1505 | pub const SIGIOT: u32 = 6; |
1506 | pub const SIGBUS: u32 = 7; |
1507 | pub const SIGFPE: u32 = 8; |
1508 | pub const SIGKILL: u32 = 9; |
1509 | pub const SIGUSR1: u32 = 10; |
1510 | pub const SIGSEGV: u32 = 11; |
1511 | pub const SIGUSR2: u32 = 12; |
1512 | pub const SIGPIPE: u32 = 13; |
1513 | pub const SIGALRM: u32 = 14; |
1514 | pub const SIGTERM: u32 = 15; |
1515 | pub const SIGSTKFLT: u32 = 16; |
1516 | pub const SIGCHLD: u32 = 17; |
1517 | pub const SIGCONT: u32 = 18; |
1518 | pub const SIGSTOP: u32 = 19; |
1519 | pub const SIGTSTP: u32 = 20; |
1520 | pub const SIGTTIN: u32 = 21; |
1521 | pub const SIGTTOU: u32 = 22; |
1522 | pub const SIGURG: u32 = 23; |
1523 | pub const SIGXCPU: u32 = 24; |
1524 | pub const SIGXFSZ: u32 = 25; |
1525 | pub const SIGVTALRM: u32 = 26; |
1526 | pub const SIGPROF: u32 = 27; |
1527 | pub const SIGWINCH: u32 = 28; |
1528 | pub const SIGIO: u32 = 29; |
1529 | pub const SIGPOLL: u32 = 29; |
1530 | pub const SIGPWR: u32 = 30; |
1531 | pub const SIGSYS: u32 = 31; |
1532 | pub const SIGUNUSED: u32 = 31; |
1533 | pub const SIGRTMIN: u32 = 32; |
1534 | pub const SA_RESTORER: u32 = 67108864; |
1535 | pub const MINSIGSTKSZ: u32 = 2048; |
1536 | pub const SIGSTKSZ: u32 = 8192; |
1537 | pub const SA_NOCLDSTOP: u32 = 1; |
1538 | pub const SA_NOCLDWAIT: u32 = 2; |
1539 | pub const SA_SIGINFO: u32 = 4; |
1540 | pub const SA_UNSUPPORTED: u32 = 1024; |
1541 | pub const SA_EXPOSE_TAGBITS: u32 = 2048; |
1542 | pub const SA_ONSTACK: u32 = 134217728; |
1543 | pub const SA_RESTART: u32 = 268435456; |
1544 | pub const SA_NODEFER: u32 = 1073741824; |
1545 | pub const SA_RESETHAND: u32 = 2147483648; |
1546 | pub const SA_NOMASK: u32 = 1073741824; |
1547 | pub const SA_ONESHOT: u32 = 2147483648; |
1548 | pub const SIG_BLOCK: u32 = 0; |
1549 | pub const SIG_UNBLOCK: u32 = 1; |
1550 | pub const SIG_SETMASK: u32 = 2; |
1551 | pub const SI_MAX_SIZE: u32 = 128; |
1552 | pub const SI_USER: u32 = 0; |
1553 | pub const SI_KERNEL: u32 = 128; |
1554 | pub const SI_QUEUE: i32 = -1; |
1555 | pub const SI_TIMER: i32 = -2; |
1556 | pub const SI_MESGQ: i32 = -3; |
1557 | pub const SI_ASYNCIO: i32 = -4; |
1558 | pub const SI_SIGIO: i32 = -5; |
1559 | pub const SI_TKILL: i32 = -6; |
1560 | pub const SI_DETHREAD: i32 = -7; |
1561 | pub const SI_ASYNCNL: i32 = -60; |
1562 | pub const ILL_ILLOPC: u32 = 1; |
1563 | pub const ILL_ILLOPN: u32 = 2; |
1564 | pub const ILL_ILLADR: u32 = 3; |
1565 | pub const ILL_ILLTRP: u32 = 4; |
1566 | pub const ILL_PRVOPC: u32 = 5; |
1567 | pub const ILL_PRVREG: u32 = 6; |
1568 | pub const ILL_COPROC: u32 = 7; |
1569 | pub const ILL_BADSTK: u32 = 8; |
1570 | pub const ILL_BADIADDR: u32 = 9; |
1571 | pub const __ILL_BREAK: u32 = 10; |
1572 | pub const __ILL_BNDMOD: u32 = 11; |
1573 | pub const NSIGILL: u32 = 11; |
1574 | pub const FPE_INTDIV: u32 = 1; |
1575 | pub const FPE_INTOVF: u32 = 2; |
1576 | pub const FPE_FLTDIV: u32 = 3; |
1577 | pub const FPE_FLTOVF: u32 = 4; |
1578 | pub const FPE_FLTUND: u32 = 5; |
1579 | pub const FPE_FLTRES: u32 = 6; |
1580 | pub const FPE_FLTINV: u32 = 7; |
1581 | pub const FPE_FLTSUB: u32 = 8; |
1582 | pub const __FPE_DECOVF: u32 = 9; |
1583 | pub const __FPE_DECDIV: u32 = 10; |
1584 | pub const __FPE_DECERR: u32 = 11; |
1585 | pub const __FPE_INVASC: u32 = 12; |
1586 | pub const __FPE_INVDEC: u32 = 13; |
1587 | pub const FPE_FLTUNK: u32 = 14; |
1588 | pub const FPE_CONDTRAP: u32 = 15; |
1589 | pub const NSIGFPE: u32 = 15; |
1590 | pub const SEGV_MAPERR: u32 = 1; |
1591 | pub const SEGV_ACCERR: u32 = 2; |
1592 | pub const SEGV_BNDERR: u32 = 3; |
1593 | pub const SEGV_PKUERR: u32 = 4; |
1594 | pub const SEGV_ACCADI: u32 = 5; |
1595 | pub const SEGV_ADIDERR: u32 = 6; |
1596 | pub const SEGV_ADIPERR: u32 = 7; |
1597 | pub const SEGV_MTEAERR: u32 = 8; |
1598 | pub const SEGV_MTESERR: u32 = 9; |
1599 | pub const NSIGSEGV: u32 = 9; |
1600 | pub const BUS_ADRALN: u32 = 1; |
1601 | pub const BUS_ADRERR: u32 = 2; |
1602 | pub const BUS_OBJERR: u32 = 3; |
1603 | pub const BUS_MCEERR_AR: u32 = 4; |
1604 | pub const BUS_MCEERR_AO: u32 = 5; |
1605 | pub const NSIGBUS: u32 = 5; |
1606 | pub const TRAP_BRKPT: u32 = 1; |
1607 | pub const TRAP_TRACE: u32 = 2; |
1608 | pub const TRAP_BRANCH: u32 = 3; |
1609 | pub const TRAP_HWBKPT: u32 = 4; |
1610 | pub const TRAP_UNK: u32 = 5; |
1611 | pub const TRAP_PERF: u32 = 6; |
1612 | pub const NSIGTRAP: u32 = 6; |
1613 | pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; |
1614 | pub const CLD_EXITED: u32 = 1; |
1615 | pub const CLD_KILLED: u32 = 2; |
1616 | pub const CLD_DUMPED: u32 = 3; |
1617 | pub const CLD_TRAPPED: u32 = 4; |
1618 | pub const CLD_STOPPED: u32 = 5; |
1619 | pub const CLD_CONTINUED: u32 = 6; |
1620 | pub const NSIGCHLD: u32 = 6; |
1621 | pub const POLL_IN: u32 = 1; |
1622 | pub const POLL_OUT: u32 = 2; |
1623 | pub const POLL_MSG: u32 = 3; |
1624 | pub const POLL_ERR: u32 = 4; |
1625 | pub const POLL_PRI: u32 = 5; |
1626 | pub const POLL_HUP: u32 = 6; |
1627 | pub const NSIGPOLL: u32 = 6; |
1628 | pub const SYS_SECCOMP: u32 = 1; |
1629 | pub const SYS_USER_DISPATCH: u32 = 2; |
1630 | pub const NSIGSYS: u32 = 2; |
1631 | pub const EMT_TAGOVF: u32 = 1; |
1632 | pub const NSIGEMT: u32 = 1; |
1633 | pub const SIGEV_SIGNAL: u32 = 0; |
1634 | pub const SIGEV_NONE: u32 = 1; |
1635 | pub const SIGEV_THREAD: u32 = 2; |
1636 | pub const SIGEV_THREAD_ID: u32 = 4; |
1637 | pub const SIGEV_MAX_SIZE: u32 = 64; |
1638 | pub const SS_ONSTACK: u32 = 1; |
1639 | pub const SS_DISABLE: u32 = 2; |
1640 | pub const SS_AUTODISARM: u32 = 2147483648; |
1641 | pub const SS_FLAG_BITS: u32 = 2147483648; |
1642 | pub const S_IFMT: u32 = 61440; |
1643 | pub const S_IFSOCK: u32 = 49152; |
1644 | pub const S_IFLNK: u32 = 40960; |
1645 | pub const S_IFREG: u32 = 32768; |
1646 | pub const S_IFBLK: u32 = 24576; |
1647 | pub const S_IFDIR: u32 = 16384; |
1648 | pub const S_IFCHR: u32 = 8192; |
1649 | pub const S_IFIFO: u32 = 4096; |
1650 | pub const S_ISUID: u32 = 2048; |
1651 | pub const S_ISGID: u32 = 1024; |
1652 | pub const S_ISVTX: u32 = 512; |
1653 | pub const S_IRWXU: u32 = 448; |
1654 | pub const S_IRUSR: u32 = 256; |
1655 | pub const S_IWUSR: u32 = 128; |
1656 | pub const S_IXUSR: u32 = 64; |
1657 | pub const S_IRWXG: u32 = 56; |
1658 | pub const S_IRGRP: u32 = 32; |
1659 | pub const S_IWGRP: u32 = 16; |
1660 | pub const S_IXGRP: u32 = 8; |
1661 | pub const S_IRWXO: u32 = 7; |
1662 | pub const S_IROTH: u32 = 4; |
1663 | pub const S_IWOTH: u32 = 2; |
1664 | pub const S_IXOTH: u32 = 1; |
1665 | pub const STATX_TYPE: u32 = 1; |
1666 | pub const STATX_MODE: u32 = 2; |
1667 | pub const STATX_NLINK: u32 = 4; |
1668 | pub const STATX_UID: u32 = 8; |
1669 | pub const STATX_GID: u32 = 16; |
1670 | pub const STATX_ATIME: u32 = 32; |
1671 | pub const STATX_MTIME: u32 = 64; |
1672 | pub const STATX_CTIME: u32 = 128; |
1673 | pub const STATX_INO: u32 = 256; |
1674 | pub const STATX_SIZE: u32 = 512; |
1675 | pub const STATX_BLOCKS: u32 = 1024; |
1676 | pub const STATX_BASIC_STATS: u32 = 2047; |
1677 | pub const STATX_BTIME: u32 = 2048; |
1678 | pub const STATX_MNT_ID: u32 = 4096; |
1679 | pub const STATX_DIOALIGN: u32 = 8192; |
1680 | pub const STATX__RESERVED: u32 = 2147483648; |
1681 | pub const STATX_ALL: u32 = 4095; |
1682 | pub const STATX_ATTR_COMPRESSED: u32 = 4; |
1683 | pub const STATX_ATTR_IMMUTABLE: u32 = 16; |
1684 | pub const STATX_ATTR_APPEND: u32 = 32; |
1685 | pub const STATX_ATTR_NODUMP: u32 = 64; |
1686 | pub const STATX_ATTR_ENCRYPTED: u32 = 2048; |
1687 | pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; |
1688 | pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; |
1689 | pub const STATX_ATTR_VERITY: u32 = 1048576; |
1690 | pub const STATX_ATTR_DAX: u32 = 2097152; |
1691 | pub const SI_LOAD_SHIFT: u32 = 16; |
1692 | pub const TCP_MSS_DEFAULT: u32 = 536; |
1693 | pub const TCP_MSS_DESIRED: u32 = 1220; |
1694 | pub const TCP_NODELAY: u32 = 1; |
1695 | pub const TCP_MAXSEG: u32 = 2; |
1696 | pub const TCP_CORK: u32 = 3; |
1697 | pub const TCP_KEEPIDLE: u32 = 4; |
1698 | pub const TCP_KEEPINTVL: u32 = 5; |
1699 | pub const TCP_KEEPCNT: u32 = 6; |
1700 | pub const TCP_SYNCNT: u32 = 7; |
1701 | pub const TCP_LINGER2: u32 = 8; |
1702 | pub const TCP_DEFER_ACCEPT: u32 = 9; |
1703 | pub const TCP_WINDOW_CLAMP: u32 = 10; |
1704 | pub const TCP_INFO: u32 = 11; |
1705 | pub const TCP_QUICKACK: u32 = 12; |
1706 | pub const TCP_CONGESTION: u32 = 13; |
1707 | pub const TCP_MD5SIG: u32 = 14; |
1708 | pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; |
1709 | pub const TCP_THIN_DUPACK: u32 = 17; |
1710 | pub const TCP_USER_TIMEOUT: u32 = 18; |
1711 | pub const TCP_REPAIR: u32 = 19; |
1712 | pub const TCP_REPAIR_QUEUE: u32 = 20; |
1713 | pub const TCP_QUEUE_SEQ: u32 = 21; |
1714 | pub const TCP_REPAIR_OPTIONS: u32 = 22; |
1715 | pub const TCP_FASTOPEN: u32 = 23; |
1716 | pub const TCP_TIMESTAMP: u32 = 24; |
1717 | pub const TCP_NOTSENT_LOWAT: u32 = 25; |
1718 | pub const TCP_CC_INFO: u32 = 26; |
1719 | pub const TCP_SAVE_SYN: u32 = 27; |
1720 | pub const TCP_SAVED_SYN: u32 = 28; |
1721 | pub const TCP_REPAIR_WINDOW: u32 = 29; |
1722 | pub const TCP_FASTOPEN_CONNECT: u32 = 30; |
1723 | pub const TCP_ULP: u32 = 31; |
1724 | pub const TCP_MD5SIG_EXT: u32 = 32; |
1725 | pub const TCP_FASTOPEN_KEY: u32 = 33; |
1726 | pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; |
1727 | pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; |
1728 | pub const TCP_INQ: u32 = 36; |
1729 | pub const TCP_CM_INQ: u32 = 36; |
1730 | pub const TCP_TX_DELAY: u32 = 37; |
1731 | pub const TCP_REPAIR_ON: u32 = 1; |
1732 | pub const TCP_REPAIR_OFF: u32 = 0; |
1733 | pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; |
1734 | pub const TCPI_OPT_TIMESTAMPS: u32 = 1; |
1735 | pub const TCPI_OPT_SACK: u32 = 2; |
1736 | pub const TCPI_OPT_WSCALE: u32 = 4; |
1737 | pub const TCPI_OPT_ECN: u32 = 8; |
1738 | pub const TCPI_OPT_ECN_SEEN: u32 = 16; |
1739 | pub const TCPI_OPT_SYN_DATA: u32 = 32; |
1740 | pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; |
1741 | pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; |
1742 | pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; |
1743 | pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; |
1744 | pub const IGNBRK: u32 = 1; |
1745 | pub const BRKINT: u32 = 2; |
1746 | pub const IGNPAR: u32 = 4; |
1747 | pub const PARMRK: u32 = 8; |
1748 | pub const INPCK: u32 = 16; |
1749 | pub const ISTRIP: u32 = 32; |
1750 | pub const INLCR: u32 = 64; |
1751 | pub const IGNCR: u32 = 128; |
1752 | pub const ICRNL: u32 = 256; |
1753 | pub const IXANY: u32 = 2048; |
1754 | pub const OPOST: u32 = 1; |
1755 | pub const OCRNL: u32 = 8; |
1756 | pub const ONOCR: u32 = 16; |
1757 | pub const ONLRET: u32 = 32; |
1758 | pub const OFILL: u32 = 64; |
1759 | pub const OFDEL: u32 = 128; |
1760 | pub const B0: u32 = 0; |
1761 | pub const B50: u32 = 1; |
1762 | pub const B75: u32 = 2; |
1763 | pub const B110: u32 = 3; |
1764 | pub const B134: u32 = 4; |
1765 | pub const B150: u32 = 5; |
1766 | pub const B200: u32 = 6; |
1767 | pub const B300: u32 = 7; |
1768 | pub const B600: u32 = 8; |
1769 | pub const B1200: u32 = 9; |
1770 | pub const B1800: u32 = 10; |
1771 | pub const B2400: u32 = 11; |
1772 | pub const B4800: u32 = 12; |
1773 | pub const B9600: u32 = 13; |
1774 | pub const B19200: u32 = 14; |
1775 | pub const B38400: u32 = 15; |
1776 | pub const EXTA: u32 = 14; |
1777 | pub const EXTB: u32 = 15; |
1778 | pub const ADDRB: u32 = 536870912; |
1779 | pub const CMSPAR: u32 = 1073741824; |
1780 | pub const CRTSCTS: u32 = 2147483648; |
1781 | pub const IBSHIFT: u32 = 16; |
1782 | pub const TCOOFF: u32 = 0; |
1783 | pub const TCOON: u32 = 1; |
1784 | pub const TCIOFF: u32 = 2; |
1785 | pub const TCION: u32 = 3; |
1786 | pub const TCIFLUSH: u32 = 0; |
1787 | pub const TCOFLUSH: u32 = 1; |
1788 | pub const TCIOFLUSH: u32 = 2; |
1789 | pub const NCCS: u32 = 19; |
1790 | pub const VINTR: u32 = 0; |
1791 | pub const VQUIT: u32 = 1; |
1792 | pub const VERASE: u32 = 2; |
1793 | pub const VKILL: u32 = 3; |
1794 | pub const VEOF: u32 = 4; |
1795 | pub const VTIME: u32 = 5; |
1796 | pub const VMIN: u32 = 6; |
1797 | pub const VSWTC: u32 = 7; |
1798 | pub const VSTART: u32 = 8; |
1799 | pub const VSTOP: u32 = 9; |
1800 | pub const VSUSP: u32 = 10; |
1801 | pub const VEOL: u32 = 11; |
1802 | pub const VREPRINT: u32 = 12; |
1803 | pub const VDISCARD: u32 = 13; |
1804 | pub const VWERASE: u32 = 14; |
1805 | pub const VLNEXT: u32 = 15; |
1806 | pub const VEOL2: u32 = 16; |
1807 | pub const IUCLC: u32 = 512; |
1808 | pub const IXON: u32 = 1024; |
1809 | pub const IXOFF: u32 = 4096; |
1810 | pub const IMAXBEL: u32 = 8192; |
1811 | pub const IUTF8: u32 = 16384; |
1812 | pub const OLCUC: u32 = 2; |
1813 | pub const ONLCR: u32 = 4; |
1814 | pub const NLDLY: u32 = 256; |
1815 | pub const NL0: u32 = 0; |
1816 | pub const NL1: u32 = 256; |
1817 | pub const CRDLY: u32 = 1536; |
1818 | pub const CR0: u32 = 0; |
1819 | pub const CR1: u32 = 512; |
1820 | pub const CR2: u32 = 1024; |
1821 | pub const CR3: u32 = 1536; |
1822 | pub const TABDLY: u32 = 6144; |
1823 | pub const TAB0: u32 = 0; |
1824 | pub const TAB1: u32 = 2048; |
1825 | pub const TAB2: u32 = 4096; |
1826 | pub const TAB3: u32 = 6144; |
1827 | pub const XTABS: u32 = 6144; |
1828 | pub const BSDLY: u32 = 8192; |
1829 | pub const BS0: u32 = 0; |
1830 | pub const BS1: u32 = 8192; |
1831 | pub const VTDLY: u32 = 16384; |
1832 | pub const VT0: u32 = 0; |
1833 | pub const VT1: u32 = 16384; |
1834 | pub const FFDLY: u32 = 32768; |
1835 | pub const FF0: u32 = 0; |
1836 | pub const FF1: u32 = 32768; |
1837 | pub const CBAUD: u32 = 4111; |
1838 | pub const CSIZE: u32 = 48; |
1839 | pub const CS5: u32 = 0; |
1840 | pub const CS6: u32 = 16; |
1841 | pub const CS7: u32 = 32; |
1842 | pub const CS8: u32 = 48; |
1843 | pub const CSTOPB: u32 = 64; |
1844 | pub const CREAD: u32 = 128; |
1845 | pub const PARENB: u32 = 256; |
1846 | pub const PARODD: u32 = 512; |
1847 | pub const HUPCL: u32 = 1024; |
1848 | pub const CLOCAL: u32 = 2048; |
1849 | pub const CBAUDEX: u32 = 4096; |
1850 | pub const BOTHER: u32 = 4096; |
1851 | pub const B57600: u32 = 4097; |
1852 | pub const B115200: u32 = 4098; |
1853 | pub const B230400: u32 = 4099; |
1854 | pub const B460800: u32 = 4100; |
1855 | pub const B500000: u32 = 4101; |
1856 | pub const B576000: u32 = 4102; |
1857 | pub const B921600: u32 = 4103; |
1858 | pub const B1000000: u32 = 4104; |
1859 | pub const B1152000: u32 = 4105; |
1860 | pub const B1500000: u32 = 4106; |
1861 | pub const B2000000: u32 = 4107; |
1862 | pub const B2500000: u32 = 4108; |
1863 | pub const B3000000: u32 = 4109; |
1864 | pub const B3500000: u32 = 4110; |
1865 | pub const B4000000: u32 = 4111; |
1866 | pub const CIBAUD: u32 = 269418496; |
1867 | pub const ISIG: u32 = 1; |
1868 | pub const ICANON: u32 = 2; |
1869 | pub const XCASE: u32 = 4; |
1870 | pub const ECHO: u32 = 8; |
1871 | pub const ECHOE: u32 = 16; |
1872 | pub const ECHOK: u32 = 32; |
1873 | pub const ECHONL: u32 = 64; |
1874 | pub const NOFLSH: u32 = 128; |
1875 | pub const TOSTOP: u32 = 256; |
1876 | pub const ECHOCTL: u32 = 512; |
1877 | pub const ECHOPRT: u32 = 1024; |
1878 | pub const ECHOKE: u32 = 2048; |
1879 | pub const FLUSHO: u32 = 4096; |
1880 | pub const PENDIN: u32 = 16384; |
1881 | pub const IEXTEN: u32 = 32768; |
1882 | pub const EXTPROC: u32 = 65536; |
1883 | pub const TCSANOW: u32 = 0; |
1884 | pub const TCSADRAIN: u32 = 1; |
1885 | pub const TCSAFLUSH: u32 = 2; |
1886 | pub const TIOCPKT_DATA: u32 = 0; |
1887 | pub const TIOCPKT_FLUSHREAD: u32 = 1; |
1888 | pub const TIOCPKT_FLUSHWRITE: u32 = 2; |
1889 | pub const TIOCPKT_STOP: u32 = 4; |
1890 | pub const TIOCPKT_START: u32 = 8; |
1891 | pub const TIOCPKT_NOSTOP: u32 = 16; |
1892 | pub const TIOCPKT_DOSTOP: u32 = 32; |
1893 | pub const TIOCPKT_IOCTL: u32 = 64; |
1894 | pub const TIOCSER_TEMT: u32 = 1; |
1895 | pub const NCC: u32 = 8; |
1896 | pub const TIOCM_LE: u32 = 1; |
1897 | pub const TIOCM_DTR: u32 = 2; |
1898 | pub const TIOCM_RTS: u32 = 4; |
1899 | pub const TIOCM_ST: u32 = 8; |
1900 | pub const TIOCM_SR: u32 = 16; |
1901 | pub const TIOCM_CTS: u32 = 32; |
1902 | pub const TIOCM_CAR: u32 = 64; |
1903 | pub const TIOCM_RNG: u32 = 128; |
1904 | pub const TIOCM_DSR: u32 = 256; |
1905 | pub const TIOCM_CD: u32 = 64; |
1906 | pub const TIOCM_RI: u32 = 128; |
1907 | pub const TIOCM_OUT1: u32 = 8192; |
1908 | pub const TIOCM_OUT2: u32 = 16384; |
1909 | pub const TIOCM_LOOP: u32 = 32768; |
1910 | pub const UIO_FASTIOV: u32 = 8; |
1911 | pub const UIO_MAXIOV: u32 = 1024; |
1912 | pub const UNIX_PATH_MAX: u32 = 108; |
1913 | pub const __X32_SYSCALL_BIT: u32 = 1073741824; |
1914 | pub const __NR_read: u32 = 0; |
1915 | pub const __NR_write: u32 = 1; |
1916 | pub const __NR_open: u32 = 2; |
1917 | pub const __NR_close: u32 = 3; |
1918 | pub const __NR_stat: u32 = 4; |
1919 | pub const __NR_fstat: u32 = 5; |
1920 | pub const __NR_lstat: u32 = 6; |
1921 | pub const __NR_poll: u32 = 7; |
1922 | pub const __NR_lseek: u32 = 8; |
1923 | pub const __NR_mmap: u32 = 9; |
1924 | pub const __NR_mprotect: u32 = 10; |
1925 | pub const __NR_munmap: u32 = 11; |
1926 | pub const __NR_brk: u32 = 12; |
1927 | pub const __NR_rt_sigaction: u32 = 13; |
1928 | pub const __NR_rt_sigprocmask: u32 = 14; |
1929 | pub const __NR_rt_sigreturn: u32 = 15; |
1930 | pub const __NR_ioctl: u32 = 16; |
1931 | pub const __NR_pread64: u32 = 17; |
1932 | pub const __NR_pwrite64: u32 = 18; |
1933 | pub const __NR_readv: u32 = 19; |
1934 | pub const __NR_writev: u32 = 20; |
1935 | pub const __NR_access: u32 = 21; |
1936 | pub const __NR_pipe: u32 = 22; |
1937 | pub const __NR_select: u32 = 23; |
1938 | pub const __NR_sched_yield: u32 = 24; |
1939 | pub const __NR_mremap: u32 = 25; |
1940 | pub const __NR_msync: u32 = 26; |
1941 | pub const __NR_mincore: u32 = 27; |
1942 | pub const __NR_madvise: u32 = 28; |
1943 | pub const __NR_shmget: u32 = 29; |
1944 | pub const __NR_shmat: u32 = 30; |
1945 | pub const __NR_shmctl: u32 = 31; |
1946 | pub const __NR_dup: u32 = 32; |
1947 | pub const __NR_dup2: u32 = 33; |
1948 | pub const __NR_pause: u32 = 34; |
1949 | pub const __NR_nanosleep: u32 = 35; |
1950 | pub const __NR_getitimer: u32 = 36; |
1951 | pub const __NR_alarm: u32 = 37; |
1952 | pub const __NR_setitimer: u32 = 38; |
1953 | pub const __NR_getpid: u32 = 39; |
1954 | pub const __NR_sendfile: u32 = 40; |
1955 | pub const __NR_socket: u32 = 41; |
1956 | pub const __NR_connect: u32 = 42; |
1957 | pub const __NR_accept: u32 = 43; |
1958 | pub const __NR_sendto: u32 = 44; |
1959 | pub const __NR_recvfrom: u32 = 45; |
1960 | pub const __NR_sendmsg: u32 = 46; |
1961 | pub const __NR_recvmsg: u32 = 47; |
1962 | pub const __NR_shutdown: u32 = 48; |
1963 | pub const __NR_bind: u32 = 49; |
1964 | pub const __NR_listen: u32 = 50; |
1965 | pub const __NR_getsockname: u32 = 51; |
1966 | pub const __NR_getpeername: u32 = 52; |
1967 | pub const __NR_socketpair: u32 = 53; |
1968 | pub const __NR_setsockopt: u32 = 54; |
1969 | pub const __NR_getsockopt: u32 = 55; |
1970 | pub const __NR_clone: u32 = 56; |
1971 | pub const __NR_fork: u32 = 57; |
1972 | pub const __NR_vfork: u32 = 58; |
1973 | pub const __NR_execve: u32 = 59; |
1974 | pub const __NR_exit: u32 = 60; |
1975 | pub const __NR_wait4: u32 = 61; |
1976 | pub const __NR_kill: u32 = 62; |
1977 | pub const __NR_uname: u32 = 63; |
1978 | pub const __NR_semget: u32 = 64; |
1979 | pub const __NR_semop: u32 = 65; |
1980 | pub const __NR_semctl: u32 = 66; |
1981 | pub const __NR_shmdt: u32 = 67; |
1982 | pub const __NR_msgget: u32 = 68; |
1983 | pub const __NR_msgsnd: u32 = 69; |
1984 | pub const __NR_msgrcv: u32 = 70; |
1985 | pub const __NR_msgctl: u32 = 71; |
1986 | pub const __NR_fcntl: u32 = 72; |
1987 | pub const __NR_flock: u32 = 73; |
1988 | pub const __NR_fsync: u32 = 74; |
1989 | pub const __NR_fdatasync: u32 = 75; |
1990 | pub const __NR_truncate: u32 = 76; |
1991 | pub const __NR_ftruncate: u32 = 77; |
1992 | pub const __NR_getdents: u32 = 78; |
1993 | pub const __NR_getcwd: u32 = 79; |
1994 | pub const __NR_chdir: u32 = 80; |
1995 | pub const __NR_fchdir: u32 = 81; |
1996 | pub const __NR_rename: u32 = 82; |
1997 | pub const __NR_mkdir: u32 = 83; |
1998 | pub const __NR_rmdir: u32 = 84; |
1999 | pub const __NR_creat: u32 = 85; |
2000 | pub const __NR_link: u32 = 86; |
2001 | pub const __NR_unlink: u32 = 87; |
2002 | pub const __NR_symlink: u32 = 88; |
2003 | pub const __NR_readlink: u32 = 89; |
2004 | pub const __NR_chmod: u32 = 90; |
2005 | pub const __NR_fchmod: u32 = 91; |
2006 | pub const __NR_chown: u32 = 92; |
2007 | pub const __NR_fchown: u32 = 93; |
2008 | pub const __NR_lchown: u32 = 94; |
2009 | pub const __NR_umask: u32 = 95; |
2010 | pub const __NR_gettimeofday: u32 = 96; |
2011 | pub const __NR_getrlimit: u32 = 97; |
2012 | pub const __NR_getrusage: u32 = 98; |
2013 | pub const __NR_sysinfo: u32 = 99; |
2014 | pub const __NR_times: u32 = 100; |
2015 | pub const __NR_ptrace: u32 = 101; |
2016 | pub const __NR_getuid: u32 = 102; |
2017 | pub const __NR_syslog: u32 = 103; |
2018 | pub const __NR_getgid: u32 = 104; |
2019 | pub const __NR_setuid: u32 = 105; |
2020 | pub const __NR_setgid: u32 = 106; |
2021 | pub const __NR_geteuid: u32 = 107; |
2022 | pub const __NR_getegid: u32 = 108; |
2023 | pub const __NR_setpgid: u32 = 109; |
2024 | pub const __NR_getppid: u32 = 110; |
2025 | pub const __NR_getpgrp: u32 = 111; |
2026 | pub const __NR_setsid: u32 = 112; |
2027 | pub const __NR_setreuid: u32 = 113; |
2028 | pub const __NR_setregid: u32 = 114; |
2029 | pub const __NR_getgroups: u32 = 115; |
2030 | pub const __NR_setgroups: u32 = 116; |
2031 | pub const __NR_setresuid: u32 = 117; |
2032 | pub const __NR_getresuid: u32 = 118; |
2033 | pub const __NR_setresgid: u32 = 119; |
2034 | pub const __NR_getresgid: u32 = 120; |
2035 | pub const __NR_getpgid: u32 = 121; |
2036 | pub const __NR_setfsuid: u32 = 122; |
2037 | pub const __NR_setfsgid: u32 = 123; |
2038 | pub const __NR_getsid: u32 = 124; |
2039 | pub const __NR_capget: u32 = 125; |
2040 | pub const __NR_capset: u32 = 126; |
2041 | pub const __NR_rt_sigpending: u32 = 127; |
2042 | pub const __NR_rt_sigtimedwait: u32 = 128; |
2043 | pub const __NR_rt_sigqueueinfo: u32 = 129; |
2044 | pub const __NR_rt_sigsuspend: u32 = 130; |
2045 | pub const __NR_sigaltstack: u32 = 131; |
2046 | pub const __NR_utime: u32 = 132; |
2047 | pub const __NR_mknod: u32 = 133; |
2048 | pub const __NR_uselib: u32 = 134; |
2049 | pub const __NR_personality: u32 = 135; |
2050 | pub const __NR_ustat: u32 = 136; |
2051 | pub const __NR_statfs: u32 = 137; |
2052 | pub const __NR_fstatfs: u32 = 138; |
2053 | pub const __NR_sysfs: u32 = 139; |
2054 | pub const __NR_getpriority: u32 = 140; |
2055 | pub const __NR_setpriority: u32 = 141; |
2056 | pub const __NR_sched_setparam: u32 = 142; |
2057 | pub const __NR_sched_getparam: u32 = 143; |
2058 | pub const __NR_sched_setscheduler: u32 = 144; |
2059 | pub const __NR_sched_getscheduler: u32 = 145; |
2060 | pub const __NR_sched_get_priority_max: u32 = 146; |
2061 | pub const __NR_sched_get_priority_min: u32 = 147; |
2062 | pub const __NR_sched_rr_get_interval: u32 = 148; |
2063 | pub const __NR_mlock: u32 = 149; |
2064 | pub const __NR_munlock: u32 = 150; |
2065 | pub const __NR_mlockall: u32 = 151; |
2066 | pub const __NR_munlockall: u32 = 152; |
2067 | pub const __NR_vhangup: u32 = 153; |
2068 | pub const __NR_modify_ldt: u32 = 154; |
2069 | pub const __NR_pivot_root: u32 = 155; |
2070 | pub const __NR__sysctl: u32 = 156; |
2071 | pub const __NR_prctl: u32 = 157; |
2072 | pub const __NR_arch_prctl: u32 = 158; |
2073 | pub const __NR_adjtimex: u32 = 159; |
2074 | pub const __NR_setrlimit: u32 = 160; |
2075 | pub const __NR_chroot: u32 = 161; |
2076 | pub const __NR_sync: u32 = 162; |
2077 | pub const __NR_acct: u32 = 163; |
2078 | pub const __NR_settimeofday: u32 = 164; |
2079 | pub const __NR_mount: u32 = 165; |
2080 | pub const __NR_umount2: u32 = 166; |
2081 | pub const __NR_swapon: u32 = 167; |
2082 | pub const __NR_swapoff: u32 = 168; |
2083 | pub const __NR_reboot: u32 = 169; |
2084 | pub const __NR_sethostname: u32 = 170; |
2085 | pub const __NR_setdomainname: u32 = 171; |
2086 | pub const __NR_iopl: u32 = 172; |
2087 | pub const __NR_ioperm: u32 = 173; |
2088 | pub const __NR_create_module: u32 = 174; |
2089 | pub const __NR_init_module: u32 = 175; |
2090 | pub const __NR_delete_module: u32 = 176; |
2091 | pub const __NR_get_kernel_syms: u32 = 177; |
2092 | pub const __NR_query_module: u32 = 178; |
2093 | pub const __NR_quotactl: u32 = 179; |
2094 | pub const __NR_nfsservctl: u32 = 180; |
2095 | pub const __NR_getpmsg: u32 = 181; |
2096 | pub const __NR_putpmsg: u32 = 182; |
2097 | pub const __NR_afs_syscall: u32 = 183; |
2098 | pub const __NR_tuxcall: u32 = 184; |
2099 | pub const __NR_security: u32 = 185; |
2100 | pub const __NR_gettid: u32 = 186; |
2101 | pub const __NR_readahead: u32 = 187; |
2102 | pub const __NR_setxattr: u32 = 188; |
2103 | pub const __NR_lsetxattr: u32 = 189; |
2104 | pub const __NR_fsetxattr: u32 = 190; |
2105 | pub const __NR_getxattr: u32 = 191; |
2106 | pub const __NR_lgetxattr: u32 = 192; |
2107 | pub const __NR_fgetxattr: u32 = 193; |
2108 | pub const __NR_listxattr: u32 = 194; |
2109 | pub const __NR_llistxattr: u32 = 195; |
2110 | pub const __NR_flistxattr: u32 = 196; |
2111 | pub const __NR_removexattr: u32 = 197; |
2112 | pub const __NR_lremovexattr: u32 = 198; |
2113 | pub const __NR_fremovexattr: u32 = 199; |
2114 | pub const __NR_tkill: u32 = 200; |
2115 | pub const __NR_time: u32 = 201; |
2116 | pub const __NR_futex: u32 = 202; |
2117 | pub const __NR_sched_setaffinity: u32 = 203; |
2118 | pub const __NR_sched_getaffinity: u32 = 204; |
2119 | pub const __NR_set_thread_area: u32 = 205; |
2120 | pub const __NR_io_setup: u32 = 206; |
2121 | pub const __NR_io_destroy: u32 = 207; |
2122 | pub const __NR_io_getevents: u32 = 208; |
2123 | pub const __NR_io_submit: u32 = 209; |
2124 | pub const __NR_io_cancel: u32 = 210; |
2125 | pub const __NR_get_thread_area: u32 = 211; |
2126 | pub const __NR_lookup_dcookie: u32 = 212; |
2127 | pub const __NR_epoll_create: u32 = 213; |
2128 | pub const __NR_epoll_ctl_old: u32 = 214; |
2129 | pub const __NR_epoll_wait_old: u32 = 215; |
2130 | pub const __NR_remap_file_pages: u32 = 216; |
2131 | pub const __NR_getdents64: u32 = 217; |
2132 | pub const __NR_set_tid_address: u32 = 218; |
2133 | pub const __NR_restart_syscall: u32 = 219; |
2134 | pub const __NR_semtimedop: u32 = 220; |
2135 | pub const __NR_fadvise64: u32 = 221; |
2136 | pub const __NR_timer_create: u32 = 222; |
2137 | pub const __NR_timer_settime: u32 = 223; |
2138 | pub const __NR_timer_gettime: u32 = 224; |
2139 | pub const __NR_timer_getoverrun: u32 = 225; |
2140 | pub const __NR_timer_delete: u32 = 226; |
2141 | pub const __NR_clock_settime: u32 = 227; |
2142 | pub const __NR_clock_gettime: u32 = 228; |
2143 | pub const __NR_clock_getres: u32 = 229; |
2144 | pub const __NR_clock_nanosleep: u32 = 230; |
2145 | pub const __NR_exit_group: u32 = 231; |
2146 | pub const __NR_epoll_wait: u32 = 232; |
2147 | pub const __NR_epoll_ctl: u32 = 233; |
2148 | pub const __NR_tgkill: u32 = 234; |
2149 | pub const __NR_utimes: u32 = 235; |
2150 | pub const __NR_vserver: u32 = 236; |
2151 | pub const __NR_mbind: u32 = 237; |
2152 | pub const __NR_set_mempolicy: u32 = 238; |
2153 | pub const __NR_get_mempolicy: u32 = 239; |
2154 | pub const __NR_mq_open: u32 = 240; |
2155 | pub const __NR_mq_unlink: u32 = 241; |
2156 | pub const __NR_mq_timedsend: u32 = 242; |
2157 | pub const __NR_mq_timedreceive: u32 = 243; |
2158 | pub const __NR_mq_notify: u32 = 244; |
2159 | pub const __NR_mq_getsetattr: u32 = 245; |
2160 | pub const __NR_kexec_load: u32 = 246; |
2161 | pub const __NR_waitid: u32 = 247; |
2162 | pub const __NR_add_key: u32 = 248; |
2163 | pub const __NR_request_key: u32 = 249; |
2164 | pub const __NR_keyctl: u32 = 250; |
2165 | pub const __NR_ioprio_set: u32 = 251; |
2166 | pub const __NR_ioprio_get: u32 = 252; |
2167 | pub const __NR_inotify_init: u32 = 253; |
2168 | pub const __NR_inotify_add_watch: u32 = 254; |
2169 | pub const __NR_inotify_rm_watch: u32 = 255; |
2170 | pub const __NR_migrate_pages: u32 = 256; |
2171 | pub const __NR_openat: u32 = 257; |
2172 | pub const __NR_mkdirat: u32 = 258; |
2173 | pub const __NR_mknodat: u32 = 259; |
2174 | pub const __NR_fchownat: u32 = 260; |
2175 | pub const __NR_futimesat: u32 = 261; |
2176 | pub const __NR_newfstatat: u32 = 262; |
2177 | pub const __NR_unlinkat: u32 = 263; |
2178 | pub const __NR_renameat: u32 = 264; |
2179 | pub const __NR_linkat: u32 = 265; |
2180 | pub const __NR_symlinkat: u32 = 266; |
2181 | pub const __NR_readlinkat: u32 = 267; |
2182 | pub const __NR_fchmodat: u32 = 268; |
2183 | pub const __NR_faccessat: u32 = 269; |
2184 | pub const __NR_pselect6: u32 = 270; |
2185 | pub const __NR_ppoll: u32 = 271; |
2186 | pub const __NR_unshare: u32 = 272; |
2187 | pub const __NR_set_robust_list: u32 = 273; |
2188 | pub const __NR_get_robust_list: u32 = 274; |
2189 | pub const __NR_splice: u32 = 275; |
2190 | pub const __NR_tee: u32 = 276; |
2191 | pub const __NR_sync_file_range: u32 = 277; |
2192 | pub const __NR_vmsplice: u32 = 278; |
2193 | pub const __NR_move_pages: u32 = 279; |
2194 | pub const __NR_utimensat: u32 = 280; |
2195 | pub const __NR_epoll_pwait: u32 = 281; |
2196 | pub const __NR_signalfd: u32 = 282; |
2197 | pub const __NR_timerfd_create: u32 = 283; |
2198 | pub const __NR_eventfd: u32 = 284; |
2199 | pub const __NR_fallocate: u32 = 285; |
2200 | pub const __NR_timerfd_settime: u32 = 286; |
2201 | pub const __NR_timerfd_gettime: u32 = 287; |
2202 | pub const __NR_accept4: u32 = 288; |
2203 | pub const __NR_signalfd4: u32 = 289; |
2204 | pub const __NR_eventfd2: u32 = 290; |
2205 | pub const __NR_epoll_create1: u32 = 291; |
2206 | pub const __NR_dup3: u32 = 292; |
2207 | pub const __NR_pipe2: u32 = 293; |
2208 | pub const __NR_inotify_init1: u32 = 294; |
2209 | pub const __NR_preadv: u32 = 295; |
2210 | pub const __NR_pwritev: u32 = 296; |
2211 | pub const __NR_rt_tgsigqueueinfo: u32 = 297; |
2212 | pub const __NR_perf_event_open: u32 = 298; |
2213 | pub const __NR_recvmmsg: u32 = 299; |
2214 | pub const __NR_fanotify_init: u32 = 300; |
2215 | pub const __NR_fanotify_mark: u32 = 301; |
2216 | pub const __NR_prlimit64: u32 = 302; |
2217 | pub const __NR_name_to_handle_at: u32 = 303; |
2218 | pub const __NR_open_by_handle_at: u32 = 304; |
2219 | pub const __NR_clock_adjtime: u32 = 305; |
2220 | pub const __NR_syncfs: u32 = 306; |
2221 | pub const __NR_sendmmsg: u32 = 307; |
2222 | pub const __NR_setns: u32 = 308; |
2223 | pub const __NR_getcpu: u32 = 309; |
2224 | pub const __NR_process_vm_readv: u32 = 310; |
2225 | pub const __NR_process_vm_writev: u32 = 311; |
2226 | pub const __NR_kcmp: u32 = 312; |
2227 | pub const __NR_finit_module: u32 = 313; |
2228 | pub const __NR_sched_setattr: u32 = 314; |
2229 | pub const __NR_sched_getattr: u32 = 315; |
2230 | pub const __NR_renameat2: u32 = 316; |
2231 | pub const __NR_seccomp: u32 = 317; |
2232 | pub const __NR_getrandom: u32 = 318; |
2233 | pub const __NR_memfd_create: u32 = 319; |
2234 | pub const __NR_kexec_file_load: u32 = 320; |
2235 | pub const __NR_bpf: u32 = 321; |
2236 | pub const __NR_execveat: u32 = 322; |
2237 | pub const __NR_userfaultfd: u32 = 323; |
2238 | pub const __NR_membarrier: u32 = 324; |
2239 | pub const __NR_mlock2: u32 = 325; |
2240 | pub const __NR_copy_file_range: u32 = 326; |
2241 | pub const __NR_preadv2: u32 = 327; |
2242 | pub const __NR_pwritev2: u32 = 328; |
2243 | pub const __NR_pkey_mprotect: u32 = 329; |
2244 | pub const __NR_pkey_alloc: u32 = 330; |
2245 | pub const __NR_pkey_free: u32 = 331; |
2246 | pub const __NR_statx: u32 = 332; |
2247 | pub const __NR_io_pgetevents: u32 = 333; |
2248 | pub const __NR_rseq: u32 = 334; |
2249 | pub const __NR_pidfd_send_signal: u32 = 424; |
2250 | pub const __NR_io_uring_setup: u32 = 425; |
2251 | pub const __NR_io_uring_enter: u32 = 426; |
2252 | pub const __NR_io_uring_register: u32 = 427; |
2253 | pub const __NR_open_tree: u32 = 428; |
2254 | pub const __NR_move_mount: u32 = 429; |
2255 | pub const __NR_fsopen: u32 = 430; |
2256 | pub const __NR_fsconfig: u32 = 431; |
2257 | pub const __NR_fsmount: u32 = 432; |
2258 | pub const __NR_fspick: u32 = 433; |
2259 | pub const __NR_pidfd_open: u32 = 434; |
2260 | pub const __NR_clone3: u32 = 435; |
2261 | pub const __NR_close_range: u32 = 436; |
2262 | pub const __NR_openat2: u32 = 437; |
2263 | pub const __NR_pidfd_getfd: u32 = 438; |
2264 | pub const __NR_faccessat2: u32 = 439; |
2265 | pub const __NR_process_madvise: u32 = 440; |
2266 | pub const __NR_epoll_pwait2: u32 = 441; |
2267 | pub const __NR_mount_setattr: u32 = 442; |
2268 | pub const __NR_quotactl_fd: u32 = 443; |
2269 | pub const __NR_landlock_create_ruleset: u32 = 444; |
2270 | pub const __NR_landlock_add_rule: u32 = 445; |
2271 | pub const __NR_landlock_restrict_self: u32 = 446; |
2272 | pub const __NR_memfd_secret: u32 = 447; |
2273 | pub const __NR_process_mrelease: u32 = 448; |
2274 | pub const __NR_futex_waitv: u32 = 449; |
2275 | pub const __NR_set_mempolicy_home_node: u32 = 450; |
2276 | pub const __OLD_UTS_LEN: u32 = 8; |
2277 | pub const __NEW_UTS_LEN: u32 = 64; |
2278 | pub const WNOHANG: u32 = 1; |
2279 | pub const WUNTRACED: u32 = 2; |
2280 | pub const WSTOPPED: u32 = 2; |
2281 | pub const WEXITED: u32 = 4; |
2282 | pub const WCONTINUED: u32 = 8; |
2283 | pub const WNOWAIT: u32 = 16777216; |
2284 | pub const __WNOTHREAD: u32 = 536870912; |
2285 | pub const __WALL: u32 = 1073741824; |
2286 | pub const __WCLONE: u32 = 2147483648; |
2287 | pub const P_ALL: u32 = 0; |
2288 | pub const P_PID: u32 = 1; |
2289 | pub const P_PGID: u32 = 2; |
2290 | pub const P_PIDFD: u32 = 3; |
2291 | pub const XATTR_CREATE: u32 = 1; |
2292 | pub const XATTR_REPLACE: u32 = 2; |
2293 | pub const XATTR_OS2_PREFIX: &[u8; 5usize] = b"os2. \0" ; |
2294 | pub const XATTR_MAC_OSX_PREFIX: &[u8; 5usize] = b"osx. \0" ; |
2295 | pub const XATTR_BTRFS_PREFIX: &[u8; 7usize] = b"btrfs. \0" ; |
2296 | pub const XATTR_HURD_PREFIX: &[u8; 5usize] = b"gnu. \0" ; |
2297 | pub const XATTR_SECURITY_PREFIX: &[u8; 10usize] = b"security. \0" ; |
2298 | pub const XATTR_SYSTEM_PREFIX: &[u8; 8usize] = b"system. \0" ; |
2299 | pub const XATTR_TRUSTED_PREFIX: &[u8; 9usize] = b"trusted. \0" ; |
2300 | pub const XATTR_USER_PREFIX: &[u8; 6usize] = b"user. \0" ; |
2301 | pub const XATTR_EVM_SUFFIX: &[u8; 4usize] = b"evm \0" ; |
2302 | pub const XATTR_NAME_EVM: &[u8; 13usize] = b"security.evm \0" ; |
2303 | pub const XATTR_IMA_SUFFIX: &[u8; 4usize] = b"ima \0" ; |
2304 | pub const XATTR_NAME_IMA: &[u8; 13usize] = b"security.ima \0" ; |
2305 | pub const XATTR_SELINUX_SUFFIX: &[u8; 8usize] = b"selinux \0" ; |
2306 | pub const XATTR_NAME_SELINUX: &[u8; 17usize] = b"security.selinux \0" ; |
2307 | pub const XATTR_SMACK_SUFFIX: &[u8; 8usize] = b"SMACK64 \0" ; |
2308 | pub const XATTR_SMACK_IPIN: &[u8; 12usize] = b"SMACK64IPIN \0" ; |
2309 | pub const XATTR_SMACK_IPOUT: &[u8; 13usize] = b"SMACK64IPOUT \0" ; |
2310 | pub const XATTR_SMACK_EXEC: &[u8; 12usize] = b"SMACK64EXEC \0" ; |
2311 | pub const XATTR_SMACK_TRANSMUTE: &[u8; 17usize] = b"SMACK64TRANSMUTE \0" ; |
2312 | pub const XATTR_SMACK_MMAP: &[u8; 12usize] = b"SMACK64MMAP \0" ; |
2313 | pub const XATTR_NAME_SMACK: &[u8; 17usize] = b"security.SMACK64 \0" ; |
2314 | pub const XATTR_NAME_SMACKIPIN: &[u8; 21usize] = b"security.SMACK64IPIN \0" ; |
2315 | pub const XATTR_NAME_SMACKIPOUT: &[u8; 22usize] = b"security.SMACK64IPOUT \0" ; |
2316 | pub const XATTR_NAME_SMACKEXEC: &[u8; 21usize] = b"security.SMACK64EXEC \0" ; |
2317 | pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26usize] = b"security.SMACK64TRANSMUTE \0" ; |
2318 | pub const XATTR_NAME_SMACKMMAP: &[u8; 21usize] = b"security.SMACK64MMAP \0" ; |
2319 | pub const XATTR_APPARMOR_SUFFIX: &[u8; 9usize] = b"apparmor \0" ; |
2320 | pub const XATTR_NAME_APPARMOR: &[u8; 18usize] = b"security.apparmor \0" ; |
2321 | pub const XATTR_CAPS_SUFFIX: &[u8; 11usize] = b"capability \0" ; |
2322 | pub const XATTR_NAME_CAPS: &[u8; 20usize] = b"security.capability \0" ; |
2323 | pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17usize] = b"posix_acl_access \0" ; |
2324 | pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24usize] = b"system.posix_acl_access \0" ; |
2325 | pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18usize] = b"posix_acl_default \0" ; |
2326 | pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25usize] = b"system.posix_acl_default \0" ; |
2327 | pub const MFD_CLOEXEC: u32 = 1; |
2328 | pub const MFD_ALLOW_SEALING: u32 = 2; |
2329 | pub const MFD_HUGETLB: u32 = 4; |
2330 | pub const MFD_NOEXEC_SEAL: u32 = 8; |
2331 | pub const MFD_EXEC: u32 = 16; |
2332 | pub const MFD_HUGE_SHIFT: u32 = 26; |
2333 | pub const MFD_HUGE_MASK: u32 = 63; |
2334 | pub const MFD_HUGE_64KB: u32 = 1073741824; |
2335 | pub const MFD_HUGE_512KB: u32 = 1275068416; |
2336 | pub const MFD_HUGE_1MB: u32 = 1342177280; |
2337 | pub const MFD_HUGE_2MB: u32 = 1409286144; |
2338 | pub const MFD_HUGE_8MB: u32 = 1543503872; |
2339 | pub const MFD_HUGE_16MB: u32 = 1610612736; |
2340 | pub const MFD_HUGE_32MB: u32 = 1677721600; |
2341 | pub const MFD_HUGE_256MB: u32 = 1879048192; |
2342 | pub const MFD_HUGE_512MB: u32 = 1946157056; |
2343 | pub const MFD_HUGE_1GB: u32 = 2013265920; |
2344 | pub const MFD_HUGE_2GB: u32 = 2080374784; |
2345 | pub const MFD_HUGE_16GB: u32 = 2281701376; |
2346 | pub const TFD_TIMER_ABSTIME: u32 = 1; |
2347 | pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; |
2348 | pub const TFD_CLOEXEC: u32 = 524288; |
2349 | pub const TFD_NONBLOCK: u32 = 2048; |
2350 | pub const USERFAULTFD_IOC: u32 = 170; |
2351 | pub const _UFFDIO_REGISTER: u32 = 0; |
2352 | pub const _UFFDIO_UNREGISTER: u32 = 1; |
2353 | pub const _UFFDIO_WAKE: u32 = 2; |
2354 | pub const _UFFDIO_COPY: u32 = 3; |
2355 | pub const _UFFDIO_ZEROPAGE: u32 = 4; |
2356 | pub const _UFFDIO_WRITEPROTECT: u32 = 6; |
2357 | pub const _UFFDIO_CONTINUE: u32 = 7; |
2358 | pub const _UFFDIO_API: u32 = 63; |
2359 | pub const UFFDIO: u32 = 170; |
2360 | pub const UFFD_EVENT_PAGEFAULT: u32 = 18; |
2361 | pub const UFFD_EVENT_FORK: u32 = 19; |
2362 | pub const UFFD_EVENT_REMAP: u32 = 20; |
2363 | pub const UFFD_EVENT_REMOVE: u32 = 21; |
2364 | pub const UFFD_EVENT_UNMAP: u32 = 22; |
2365 | pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; |
2366 | pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; |
2367 | pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; |
2368 | pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; |
2369 | pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; |
2370 | pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; |
2371 | pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; |
2372 | pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; |
2373 | pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; |
2374 | pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; |
2375 | pub const UFFD_FEATURE_SIGBUS: u32 = 128; |
2376 | pub const UFFD_FEATURE_THREAD_ID: u32 = 256; |
2377 | pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; |
2378 | pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; |
2379 | pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; |
2380 | pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; |
2381 | pub const UFFD_USER_MODE_ONLY: u32 = 1; |
2382 | pub const IORING_FILE_INDEX_ALLOC: i32 = -1; |
2383 | pub const IORING_SETUP_IOPOLL: u32 = 1; |
2384 | pub const IORING_SETUP_SQPOLL: u32 = 2; |
2385 | pub const IORING_SETUP_SQ_AFF: u32 = 4; |
2386 | pub const IORING_SETUP_CQSIZE: u32 = 8; |
2387 | pub const IORING_SETUP_CLAMP: u32 = 16; |
2388 | pub const IORING_SETUP_ATTACH_WQ: u32 = 32; |
2389 | pub const IORING_SETUP_R_DISABLED: u32 = 64; |
2390 | pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; |
2391 | pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; |
2392 | pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; |
2393 | pub const IORING_SETUP_SQE128: u32 = 1024; |
2394 | pub const IORING_SETUP_CQE32: u32 = 2048; |
2395 | pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; |
2396 | pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; |
2397 | pub const IORING_URING_CMD_FIXED: u32 = 1; |
2398 | pub const IORING_FSYNC_DATASYNC: u32 = 1; |
2399 | pub const IORING_TIMEOUT_ABS: u32 = 1; |
2400 | pub const IORING_TIMEOUT_UPDATE: u32 = 2; |
2401 | pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; |
2402 | pub const IORING_TIMEOUT_REALTIME: u32 = 8; |
2403 | pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; |
2404 | pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; |
2405 | pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; |
2406 | pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; |
2407 | pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; |
2408 | pub const IORING_POLL_ADD_MULTI: u32 = 1; |
2409 | pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; |
2410 | pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; |
2411 | pub const IORING_POLL_ADD_LEVEL: u32 = 8; |
2412 | pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; |
2413 | pub const IORING_ASYNC_CANCEL_FD: u32 = 2; |
2414 | pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; |
2415 | pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; |
2416 | pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; |
2417 | pub const IORING_RECV_MULTISHOT: u32 = 2; |
2418 | pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; |
2419 | pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; |
2420 | pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; |
2421 | pub const IORING_ACCEPT_MULTISHOT: u32 = 1; |
2422 | pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; |
2423 | pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; |
2424 | pub const IORING_CQE_F_BUFFER: u32 = 1; |
2425 | pub const IORING_CQE_F_MORE: u32 = 2; |
2426 | pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; |
2427 | pub const IORING_CQE_F_NOTIF: u32 = 8; |
2428 | pub const IORING_OFF_SQ_RING: u32 = 0; |
2429 | pub const IORING_OFF_CQ_RING: u32 = 134217728; |
2430 | pub const IORING_OFF_SQES: u32 = 268435456; |
2431 | pub const IORING_SQ_NEED_WAKEUP: u32 = 1; |
2432 | pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; |
2433 | pub const IORING_SQ_TASKRUN: u32 = 4; |
2434 | pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; |
2435 | pub const IORING_ENTER_GETEVENTS: u32 = 1; |
2436 | pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; |
2437 | pub const IORING_ENTER_SQ_WAIT: u32 = 4; |
2438 | pub const IORING_ENTER_EXT_ARG: u32 = 8; |
2439 | pub const IORING_ENTER_REGISTERED_RING: u32 = 16; |
2440 | pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; |
2441 | pub const IORING_FEAT_NODROP: u32 = 2; |
2442 | pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; |
2443 | pub const IORING_FEAT_RW_CUR_POS: u32 = 8; |
2444 | pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; |
2445 | pub const IORING_FEAT_FAST_POLL: u32 = 32; |
2446 | pub const IORING_FEAT_POLL_32BITS: u32 = 64; |
2447 | pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; |
2448 | pub const IORING_FEAT_EXT_ARG: u32 = 256; |
2449 | pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; |
2450 | pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; |
2451 | pub const IORING_FEAT_CQE_SKIP: u32 = 2048; |
2452 | pub const IORING_FEAT_LINKED_FILE: u32 = 4096; |
2453 | pub const IORING_FEAT_REG_REG_RING: u32 = 8192; |
2454 | pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; |
2455 | pub const IORING_REGISTER_FILES_SKIP: i32 = -2; |
2456 | pub const IO_URING_OP_SUPPORTED: u32 = 1; |
2457 | pub const DT_UNKNOWN: u32 = 0; |
2458 | pub const DT_FIFO: u32 = 1; |
2459 | pub const DT_CHR: u32 = 2; |
2460 | pub const DT_DIR: u32 = 4; |
2461 | pub const DT_BLK: u32 = 6; |
2462 | pub const DT_REG: u32 = 8; |
2463 | pub const DT_LNK: u32 = 10; |
2464 | pub const DT_SOCK: u32 = 12; |
2465 | pub const SHUT_RD: u32 = 0; |
2466 | pub const SHUT_WR: u32 = 1; |
2467 | pub const SHUT_RDWR: u32 = 2; |
2468 | pub const STAT_HAVE_NSEC: u32 = 1; |
2469 | pub const SOCK_STREAM: u32 = 1; |
2470 | pub const SOCK_DGRAM: u32 = 2; |
2471 | pub const SOCK_RAW: u32 = 3; |
2472 | pub const SOCK_RDM: u32 = 4; |
2473 | pub const SOCK_SEQPACKET: u32 = 5; |
2474 | pub const F_OK: u32 = 0; |
2475 | pub const R_OK: u32 = 4; |
2476 | pub const W_OK: u32 = 2; |
2477 | pub const X_OK: u32 = 1; |
2478 | pub const UTIME_NOW: u32 = 1073741823; |
2479 | pub const UTIME_OMIT: u32 = 1073741822; |
2480 | pub const MSG_DONTWAIT: u32 = 64; |
2481 | pub const AF_UNSPEC: u32 = 0; |
2482 | pub const AF_UNIX: u32 = 1; |
2483 | pub const AF_INET: u32 = 2; |
2484 | pub const AF_AX25: u32 = 3; |
2485 | pub const AF_IPX: u32 = 4; |
2486 | pub const AF_APPLETALK: u32 = 5; |
2487 | pub const AF_NETROM: u32 = 6; |
2488 | pub const AF_BRIDGE: u32 = 7; |
2489 | pub const AF_ATMPVC: u32 = 8; |
2490 | pub const AF_X25: u32 = 9; |
2491 | pub const AF_INET6: u32 = 10; |
2492 | pub const AF_ROSE: u32 = 11; |
2493 | pub const AF_DECnet: u32 = 12; |
2494 | pub const AF_NETBEUI: u32 = 13; |
2495 | pub const AF_SECURITY: u32 = 14; |
2496 | pub const AF_KEY: u32 = 15; |
2497 | pub const AF_NETLINK: u32 = 16; |
2498 | pub const AF_PACKET: u32 = 17; |
2499 | pub const AF_ASH: u32 = 18; |
2500 | pub const AF_ECONET: u32 = 19; |
2501 | pub const AF_ATMSVC: u32 = 20; |
2502 | pub const AF_RDS: u32 = 21; |
2503 | pub const AF_SNA: u32 = 22; |
2504 | pub const AF_IRDA: u32 = 23; |
2505 | pub const AF_PPPOX: u32 = 24; |
2506 | pub const AF_WANPIPE: u32 = 25; |
2507 | pub const AF_LLC: u32 = 26; |
2508 | pub const AF_CAN: u32 = 29; |
2509 | pub const AF_TIPC: u32 = 30; |
2510 | pub const AF_BLUETOOTH: u32 = 31; |
2511 | pub const AF_IUCV: u32 = 32; |
2512 | pub const AF_RXRPC: u32 = 33; |
2513 | pub const AF_ISDN: u32 = 34; |
2514 | pub const AF_PHONET: u32 = 35; |
2515 | pub const AF_IEEE802154: u32 = 36; |
2516 | pub const AF_MAX: u32 = 37; |
2517 | pub const MSG_OOB: u32 = 1; |
2518 | pub const MSG_PEEK: u32 = 2; |
2519 | pub const MSG_DONTROUTE: u32 = 4; |
2520 | pub const MSG_CTRUNC: u32 = 8; |
2521 | pub const MSG_PROBE: u32 = 16; |
2522 | pub const MSG_TRUNC: u32 = 32; |
2523 | pub const MSG_EOR: u32 = 128; |
2524 | pub const MSG_WAITALL: u32 = 256; |
2525 | pub const MSG_FIN: u32 = 512; |
2526 | pub const MSG_SYN: u32 = 1024; |
2527 | pub const MSG_CONFIRM: u32 = 2048; |
2528 | pub const MSG_RST: u32 = 4096; |
2529 | pub const MSG_ERRQUEUE: u32 = 8192; |
2530 | pub const MSG_NOSIGNAL: u32 = 16384; |
2531 | pub const MSG_MORE: u32 = 32768; |
2532 | pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; |
2533 | pub const STDIN_FILENO: u32 = 0; |
2534 | pub const STDOUT_FILENO: u32 = 1; |
2535 | pub const STDERR_FILENO: u32 = 2; |
2536 | pub const RWF_HIPRI: u32 = 1; |
2537 | pub const RWF_DSYNC: u32 = 2; |
2538 | pub const RWF_SYNC: u32 = 4; |
2539 | pub const RWF_NOWAIT: u32 = 8; |
2540 | pub const RWF_APPEND: u32 = 16; |
2541 | pub const EFD_SEMAPHORE: u32 = 1; |
2542 | pub const EFD_CLOEXEC: u32 = 524288; |
2543 | pub const EFD_NONBLOCK: u32 = 2048; |
2544 | pub const EPOLLIN: u32 = 1; |
2545 | pub const EPOLLPRI: u32 = 2; |
2546 | pub const EPOLLOUT: u32 = 4; |
2547 | pub const EPOLLERR: u32 = 8; |
2548 | pub const EPOLLHUP: u32 = 16; |
2549 | pub const EPOLLNVAL: u32 = 32; |
2550 | pub const EPOLLRDNORM: u32 = 64; |
2551 | pub const EPOLLRDBAND: u32 = 128; |
2552 | pub const EPOLLWRNORM: u32 = 256; |
2553 | pub const EPOLLWRBAND: u32 = 512; |
2554 | pub const EPOLLMSG: u32 = 1024; |
2555 | pub const EPOLLRDHUP: u32 = 8192; |
2556 | pub const EPOLLEXCLUSIVE: u32 = 268435456; |
2557 | pub const EPOLLWAKEUP: u32 = 536870912; |
2558 | pub const EPOLLONESHOT: u32 = 1073741824; |
2559 | pub const EPOLLET: u32 = 2147483648; |
2560 | pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; |
2561 | pub const TFD_CREATE_FLAGS: u32 = 526336; |
2562 | pub const TFD_SETTIME_FLAGS: u32 = 1; |
2563 | pub const ARCH_SET_FS: u32 = 4098; |
2564 | pub const SCM_RIGHTS: u32 = 1; |
2565 | pub const SCM_CREDENTIALS: u32 = 2; |
2566 | pub const SCM_SECURITY: u32 = 3; |
2567 | pub const UFFD_API: u32 = 170; |
2568 | pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; |
2569 | pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; |
2570 | pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; |
2571 | pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; |
2572 | pub const UFFDIO_COPY_MODE_WP: u32 = 2; |
2573 | pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; |
2574 | pub const SPLICE_F_MOVE: u32 = 1; |
2575 | pub const SPLICE_F_NONBLOCK: u32 = 2; |
2576 | pub const SPLICE_F_MORE: u32 = 4; |
2577 | pub const SPLICE_F_GIFT: u32 = 8; |
2578 | pub const MNT_FORCE: u32 = 1; |
2579 | pub const MNT_DETACH: u32 = 2; |
2580 | pub const MNT_EXPIRE: u32 = 4; |
2581 | pub const UMOUNT_NOFOLLOW: u32 = 8; |
2582 | pub const UMOUNT_UNUSED: u32 = 2147483648; |
2583 | pub const _NSIG: u32 = 64; |
2584 | pub type size_t = crate::ctypes::c_ulong; |
2585 | pub type ssize_t = crate::ctypes::c_long; |
2586 | pub type __s8 = crate::ctypes::c_schar; |
2587 | pub type __u8 = crate::ctypes::c_uchar; |
2588 | pub type __s16 = crate::ctypes::c_short; |
2589 | pub type __u16 = crate::ctypes::c_ushort; |
2590 | pub type __s32 = crate::ctypes::c_int; |
2591 | pub type __u32 = crate::ctypes::c_uint; |
2592 | pub type __s64 = crate::ctypes::c_longlong; |
2593 | pub type __u64 = crate::ctypes::c_ulonglong; |
2594 | #[repr (C)] |
2595 | #[derive (Debug, Copy, Clone)] |
2596 | pub struct __kernel_fd_set { |
2597 | pub fds_bits: [crate::ctypes::c_ulong; 16usize], |
2598 | } |
2599 | pub type __kernel_sighandler_t = ::core::option::Option<unsafe extern "C" fn(arg1: crate::ctypes::c_int)>; |
2600 | pub type __kernel_key_t = crate::ctypes::c_int; |
2601 | pub type __kernel_mqd_t = crate::ctypes::c_int; |
2602 | pub type __kernel_old_uid_t = crate::ctypes::c_ushort; |
2603 | pub type __kernel_old_gid_t = crate::ctypes::c_ushort; |
2604 | pub type __kernel_old_dev_t = crate::ctypes::c_ulong; |
2605 | pub type __kernel_long_t = crate::ctypes::c_long; |
2606 | pub type __kernel_ulong_t = crate::ctypes::c_ulong; |
2607 | pub type __kernel_ino_t = __kernel_ulong_t; |
2608 | pub type __kernel_mode_t = crate::ctypes::c_uint; |
2609 | pub type __kernel_pid_t = crate::ctypes::c_int; |
2610 | pub type __kernel_ipc_pid_t = crate::ctypes::c_int; |
2611 | pub type __kernel_uid_t = crate::ctypes::c_uint; |
2612 | pub type __kernel_gid_t = crate::ctypes::c_uint; |
2613 | pub type __kernel_suseconds_t = __kernel_long_t; |
2614 | pub type __kernel_daddr_t = crate::ctypes::c_int; |
2615 | pub type __kernel_uid32_t = crate::ctypes::c_uint; |
2616 | pub type __kernel_gid32_t = crate::ctypes::c_uint; |
2617 | pub type __kernel_size_t = __kernel_ulong_t; |
2618 | pub type __kernel_ssize_t = __kernel_long_t; |
2619 | pub type __kernel_ptrdiff_t = __kernel_long_t; |
2620 | #[repr (C)] |
2621 | #[derive (Debug, Copy, Clone)] |
2622 | pub struct __kernel_fsid_t { |
2623 | pub val: [crate::ctypes::c_int; 2usize], |
2624 | } |
2625 | pub type __kernel_off_t = __kernel_long_t; |
2626 | pub type __kernel_loff_t = crate::ctypes::c_longlong; |
2627 | pub type __kernel_old_time_t = __kernel_long_t; |
2628 | pub type __kernel_time_t = __kernel_long_t; |
2629 | pub type __kernel_time64_t = crate::ctypes::c_longlong; |
2630 | pub type __kernel_clock_t = __kernel_long_t; |
2631 | pub type __kernel_timer_t = crate::ctypes::c_int; |
2632 | pub type __kernel_clockid_t = crate::ctypes::c_int; |
2633 | pub type __kernel_caddr_t = *mut crate::ctypes::c_char; |
2634 | pub type __kernel_uid16_t = crate::ctypes::c_ushort; |
2635 | pub type __kernel_gid16_t = crate::ctypes::c_ushort; |
2636 | pub type __le16 = __u16; |
2637 | pub type __be16 = __u16; |
2638 | pub type __le32 = __u32; |
2639 | pub type __be32 = __u32; |
2640 | pub type __le64 = __u64; |
2641 | pub type __be64 = __u64; |
2642 | pub type __sum16 = __u16; |
2643 | pub type __wsum = __u32; |
2644 | pub type __poll_t = crate::ctypes::c_uint; |
2645 | #[repr (C)] |
2646 | #[derive (Debug, Copy, Clone)] |
2647 | pub struct __user_cap_header_struct { |
2648 | pub version: __u32, |
2649 | pub pid: crate::ctypes::c_int, |
2650 | } |
2651 | pub type cap_user_header_t = *mut __user_cap_header_struct; |
2652 | #[repr (C)] |
2653 | #[derive (Debug, Copy, Clone)] |
2654 | pub struct __user_cap_data_struct { |
2655 | pub effective: __u32, |
2656 | pub permitted: __u32, |
2657 | pub inheritable: __u32, |
2658 | } |
2659 | pub type cap_user_data_t = *mut __user_cap_data_struct; |
2660 | #[repr (C)] |
2661 | #[derive (Debug, Copy, Clone)] |
2662 | pub struct vfs_cap_data { |
2663 | pub magic_etc: __le32, |
2664 | pub data: [vfs_cap_data__bindgen_ty_1; 2usize], |
2665 | } |
2666 | #[repr (C)] |
2667 | #[derive (Debug, Copy, Clone)] |
2668 | pub struct vfs_cap_data__bindgen_ty_1 { |
2669 | pub permitted: __le32, |
2670 | pub inheritable: __le32, |
2671 | } |
2672 | #[repr (C)] |
2673 | #[derive (Debug, Copy, Clone)] |
2674 | pub struct vfs_ns_cap_data { |
2675 | pub magic_etc: __le32, |
2676 | pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], |
2677 | pub rootid: __le32, |
2678 | } |
2679 | #[repr (C)] |
2680 | #[derive (Debug, Copy, Clone)] |
2681 | pub struct vfs_ns_cap_data__bindgen_ty_1 { |
2682 | pub permitted: __le32, |
2683 | pub inheritable: __le32, |
2684 | } |
2685 | #[repr (C)] |
2686 | #[derive (Debug, Copy, Clone)] |
2687 | pub struct f_owner_ex { |
2688 | pub type_: crate::ctypes::c_int, |
2689 | pub pid: __kernel_pid_t, |
2690 | } |
2691 | #[repr (C)] |
2692 | #[derive (Debug, Copy, Clone)] |
2693 | pub struct flock { |
2694 | pub l_type: crate::ctypes::c_short, |
2695 | pub l_whence: crate::ctypes::c_short, |
2696 | pub l_start: __kernel_off_t, |
2697 | pub l_len: __kernel_off_t, |
2698 | pub l_pid: __kernel_pid_t, |
2699 | } |
2700 | #[repr (C)] |
2701 | #[derive (Debug, Copy, Clone)] |
2702 | pub struct flock64 { |
2703 | pub l_type: crate::ctypes::c_short, |
2704 | pub l_whence: crate::ctypes::c_short, |
2705 | pub l_start: __kernel_loff_t, |
2706 | pub l_len: __kernel_loff_t, |
2707 | pub l_pid: __kernel_pid_t, |
2708 | } |
2709 | #[repr (C)] |
2710 | #[derive (Debug, Copy, Clone)] |
2711 | pub struct open_how { |
2712 | pub flags: __u64, |
2713 | pub mode: __u64, |
2714 | pub resolve: __u64, |
2715 | } |
2716 | #[repr (C, packed)] |
2717 | #[derive (Debug, Copy, Clone)] |
2718 | pub struct epoll_event { |
2719 | pub events: __poll_t, |
2720 | pub data: __u64, |
2721 | } |
2722 | #[repr (C)] |
2723 | #[derive (Debug, Copy, Clone)] |
2724 | pub struct fscrypt_policy_v1 { |
2725 | pub version: __u8, |
2726 | pub contents_encryption_mode: __u8, |
2727 | pub filenames_encryption_mode: __u8, |
2728 | pub flags: __u8, |
2729 | pub master_key_descriptor: [__u8; 8usize], |
2730 | } |
2731 | #[repr (C)] |
2732 | #[derive (Debug, Copy, Clone)] |
2733 | pub struct fscrypt_key { |
2734 | pub mode: __u32, |
2735 | pub raw: [__u8; 64usize], |
2736 | pub size: __u32, |
2737 | } |
2738 | #[repr (C)] |
2739 | #[derive (Debug, Copy, Clone)] |
2740 | pub struct fscrypt_policy_v2 { |
2741 | pub version: __u8, |
2742 | pub contents_encryption_mode: __u8, |
2743 | pub filenames_encryption_mode: __u8, |
2744 | pub flags: __u8, |
2745 | pub __reserved: [__u8; 4usize], |
2746 | pub master_key_identifier: [__u8; 16usize], |
2747 | } |
2748 | #[repr (C)] |
2749 | #[derive (Copy, Clone)] |
2750 | pub struct fscrypt_get_policy_ex_arg { |
2751 | pub policy_size: __u64, |
2752 | pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, |
2753 | } |
2754 | #[repr (C)] |
2755 | #[derive (Copy, Clone)] |
2756 | pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { |
2757 | pub version: __u8, |
2758 | pub v1: fscrypt_policy_v1, |
2759 | pub v2: fscrypt_policy_v2, |
2760 | } |
2761 | #[repr (C)] |
2762 | #[derive (Copy, Clone)] |
2763 | pub struct fscrypt_key_specifier { |
2764 | pub type_: __u32, |
2765 | pub __reserved: __u32, |
2766 | pub u: fscrypt_key_specifier__bindgen_ty_1, |
2767 | } |
2768 | #[repr (C)] |
2769 | #[derive (Copy, Clone)] |
2770 | pub union fscrypt_key_specifier__bindgen_ty_1 { |
2771 | pub __reserved: [__u8; 32usize], |
2772 | pub descriptor: [__u8; 8usize], |
2773 | pub identifier: [__u8; 16usize], |
2774 | } |
2775 | #[repr (C)] |
2776 | #[derive (Debug)] |
2777 | pub struct fscrypt_provisioning_key_payload { |
2778 | pub type_: __u32, |
2779 | pub __reserved: __u32, |
2780 | pub raw: __IncompleteArrayField<__u8>, |
2781 | } |
2782 | #[repr (C)] |
2783 | pub struct fscrypt_add_key_arg { |
2784 | pub key_spec: fscrypt_key_specifier, |
2785 | pub raw_size: __u32, |
2786 | pub key_id: __u32, |
2787 | pub __reserved: [__u32; 8usize], |
2788 | pub raw: __IncompleteArrayField<__u8>, |
2789 | } |
2790 | #[repr (C)] |
2791 | #[derive (Copy, Clone)] |
2792 | pub struct fscrypt_remove_key_arg { |
2793 | pub key_spec: fscrypt_key_specifier, |
2794 | pub removal_status_flags: __u32, |
2795 | pub __reserved: [__u32; 5usize], |
2796 | } |
2797 | #[repr (C)] |
2798 | #[derive (Copy, Clone)] |
2799 | pub struct fscrypt_get_key_status_arg { |
2800 | pub key_spec: fscrypt_key_specifier, |
2801 | pub __reserved: [__u32; 6usize], |
2802 | pub status: __u32, |
2803 | pub status_flags: __u32, |
2804 | pub user_count: __u32, |
2805 | pub __out_reserved: [__u32; 13usize], |
2806 | } |
2807 | #[repr (u32)] |
2808 | #[non_exhaustive ] |
2809 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
2810 | pub enum fsconfig_command { |
2811 | FSCONFIG_SET_FLAG = 0, |
2812 | FSCONFIG_SET_STRING = 1, |
2813 | FSCONFIG_SET_BINARY = 2, |
2814 | FSCONFIG_SET_PATH = 3, |
2815 | FSCONFIG_SET_PATH_EMPTY = 4, |
2816 | FSCONFIG_SET_FD = 5, |
2817 | FSCONFIG_CMD_CREATE = 6, |
2818 | FSCONFIG_CMD_RECONFIGURE = 7, |
2819 | } |
2820 | #[repr (C)] |
2821 | #[derive (Debug, Copy, Clone)] |
2822 | pub struct mount_attr { |
2823 | pub attr_set: __u64, |
2824 | pub attr_clr: __u64, |
2825 | pub propagation: __u64, |
2826 | pub userns_fd: __u64, |
2827 | } |
2828 | #[repr (C)] |
2829 | #[derive (Debug, Copy, Clone)] |
2830 | pub struct file_clone_range { |
2831 | pub src_fd: __s64, |
2832 | pub src_offset: __u64, |
2833 | pub src_length: __u64, |
2834 | pub dest_offset: __u64, |
2835 | } |
2836 | #[repr (C)] |
2837 | #[derive (Debug, Copy, Clone)] |
2838 | pub struct fstrim_range { |
2839 | pub start: __u64, |
2840 | pub len: __u64, |
2841 | pub minlen: __u64, |
2842 | } |
2843 | #[repr (C)] |
2844 | #[derive (Debug, Copy, Clone)] |
2845 | pub struct file_dedupe_range_info { |
2846 | pub dest_fd: __s64, |
2847 | pub dest_offset: __u64, |
2848 | pub bytes_deduped: __u64, |
2849 | pub status: __s32, |
2850 | pub reserved: __u32, |
2851 | } |
2852 | #[repr (C)] |
2853 | #[derive (Debug)] |
2854 | pub struct file_dedupe_range { |
2855 | pub src_offset: __u64, |
2856 | pub src_length: __u64, |
2857 | pub dest_count: __u16, |
2858 | pub reserved1: __u16, |
2859 | pub reserved2: __u32, |
2860 | pub info: __IncompleteArrayField<file_dedupe_range_info>, |
2861 | } |
2862 | #[repr (C)] |
2863 | #[derive (Debug, Copy, Clone)] |
2864 | pub struct files_stat_struct { |
2865 | pub nr_files: crate::ctypes::c_ulong, |
2866 | pub nr_free_files: crate::ctypes::c_ulong, |
2867 | pub max_files: crate::ctypes::c_ulong, |
2868 | } |
2869 | #[repr (C)] |
2870 | #[derive (Debug, Copy, Clone)] |
2871 | pub struct inodes_stat_t { |
2872 | pub nr_inodes: crate::ctypes::c_long, |
2873 | pub nr_unused: crate::ctypes::c_long, |
2874 | pub dummy: [crate::ctypes::c_long; 5usize], |
2875 | } |
2876 | #[repr (C)] |
2877 | #[derive (Debug, Copy, Clone)] |
2878 | pub struct fsxattr { |
2879 | pub fsx_xflags: __u32, |
2880 | pub fsx_extsize: __u32, |
2881 | pub fsx_nextents: __u32, |
2882 | pub fsx_projid: __u32, |
2883 | pub fsx_cowextsize: __u32, |
2884 | pub fsx_pad: [crate::ctypes::c_uchar; 8usize], |
2885 | } |
2886 | pub type __kernel_rwf_t = crate::ctypes::c_int; |
2887 | #[repr (C)] |
2888 | #[derive (Debug, Copy, Clone)] |
2889 | pub struct futex_waitv { |
2890 | pub val: __u64, |
2891 | pub uaddr: __u64, |
2892 | pub flags: __u32, |
2893 | pub __reserved: __u32, |
2894 | } |
2895 | #[repr (C)] |
2896 | #[derive (Debug, Copy, Clone)] |
2897 | pub struct robust_list { |
2898 | pub next: *mut robust_list, |
2899 | } |
2900 | #[repr (C)] |
2901 | #[derive (Debug, Copy, Clone)] |
2902 | pub struct robust_list_head { |
2903 | pub list: robust_list, |
2904 | pub futex_offset: crate::ctypes::c_long, |
2905 | pub list_op_pending: *mut robust_list, |
2906 | } |
2907 | pub type __kernel_sa_family_t = crate::ctypes::c_ushort; |
2908 | #[repr (C)] |
2909 | #[derive (Copy, Clone)] |
2910 | pub struct __kernel_sockaddr_storage { |
2911 | pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, |
2912 | } |
2913 | #[repr (C)] |
2914 | #[derive (Copy, Clone)] |
2915 | pub union __kernel_sockaddr_storage__bindgen_ty_1 { |
2916 | pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, |
2917 | pub __align: *mut crate::ctypes::c_void, |
2918 | } |
2919 | #[repr (C)] |
2920 | #[derive (Debug, Copy, Clone)] |
2921 | pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { |
2922 | pub ss_family: __kernel_sa_family_t, |
2923 | pub __data: [crate::ctypes::c_char; 126usize], |
2924 | } |
2925 | pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; |
2926 | pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; |
2927 | pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; |
2928 | pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; |
2929 | pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; |
2930 | pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; |
2931 | pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; |
2932 | pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; |
2933 | pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; |
2934 | pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; |
2935 | pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; |
2936 | pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; |
2937 | pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; |
2938 | pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; |
2939 | pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; |
2940 | pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; |
2941 | pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; |
2942 | pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; |
2943 | pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; |
2944 | pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; |
2945 | pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; |
2946 | pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; |
2947 | pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; |
2948 | pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; |
2949 | pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; |
2950 | pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; |
2951 | pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; |
2952 | pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; |
2953 | pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; |
2954 | #[repr (u32)] |
2955 | #[non_exhaustive ] |
2956 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
2957 | pub enum _bindgen_ty_1 { |
2958 | IPPROTO_IP = 0, |
2959 | IPPROTO_ICMP = 1, |
2960 | IPPROTO_IGMP = 2, |
2961 | IPPROTO_IPIP = 4, |
2962 | IPPROTO_TCP = 6, |
2963 | IPPROTO_EGP = 8, |
2964 | IPPROTO_PUP = 12, |
2965 | IPPROTO_UDP = 17, |
2966 | IPPROTO_IDP = 22, |
2967 | IPPROTO_TP = 29, |
2968 | IPPROTO_DCCP = 33, |
2969 | IPPROTO_IPV6 = 41, |
2970 | IPPROTO_RSVP = 46, |
2971 | IPPROTO_GRE = 47, |
2972 | IPPROTO_ESP = 50, |
2973 | IPPROTO_AH = 51, |
2974 | IPPROTO_MTP = 92, |
2975 | IPPROTO_BEETPH = 94, |
2976 | IPPROTO_ENCAP = 98, |
2977 | IPPROTO_PIM = 103, |
2978 | IPPROTO_COMP = 108, |
2979 | IPPROTO_L2TP = 115, |
2980 | IPPROTO_SCTP = 132, |
2981 | IPPROTO_UDPLITE = 136, |
2982 | IPPROTO_MPLS = 137, |
2983 | IPPROTO_ETHERNET = 143, |
2984 | IPPROTO_RAW = 255, |
2985 | IPPROTO_MPTCP = 262, |
2986 | IPPROTO_MAX = 263, |
2987 | } |
2988 | #[repr (C)] |
2989 | #[derive (Debug, Copy, Clone)] |
2990 | pub struct in_addr { |
2991 | pub s_addr: __be32, |
2992 | } |
2993 | #[repr (C)] |
2994 | #[derive (Debug, Copy, Clone)] |
2995 | pub struct ip_mreq { |
2996 | pub imr_multiaddr: in_addr, |
2997 | pub imr_interface: in_addr, |
2998 | } |
2999 | #[repr (C)] |
3000 | #[derive (Debug, Copy, Clone)] |
3001 | pub struct ip_mreqn { |
3002 | pub imr_multiaddr: in_addr, |
3003 | pub imr_address: in_addr, |
3004 | pub imr_ifindex: crate::ctypes::c_int, |
3005 | } |
3006 | #[repr (C)] |
3007 | #[derive (Debug, Copy, Clone)] |
3008 | pub struct ip_mreq_source { |
3009 | pub imr_multiaddr: __be32, |
3010 | pub imr_interface: __be32, |
3011 | pub imr_sourceaddr: __be32, |
3012 | } |
3013 | #[repr (C)] |
3014 | pub struct ip_msfilter { |
3015 | pub imsf_multiaddr: __be32, |
3016 | pub imsf_interface: __be32, |
3017 | pub imsf_fmode: __u32, |
3018 | pub imsf_numsrc: __u32, |
3019 | pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, |
3020 | } |
3021 | #[repr (C)] |
3022 | pub struct ip_msfilter__bindgen_ty_1 { |
3023 | pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, |
3024 | pub __bindgen_anon_1: __BindgenUnionField<ip_msfilter__bindgen_ty_1__bindgen_ty_1>, |
3025 | pub bindgen_union_field: u32, |
3026 | } |
3027 | #[repr (C)] |
3028 | #[derive (Debug)] |
3029 | pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { |
3030 | pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, |
3031 | pub imsf_slist_flex: __IncompleteArrayField<__be32>, |
3032 | } |
3033 | #[repr (C)] |
3034 | #[derive (Debug, Copy, Clone)] |
3035 | pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} |
3036 | #[repr (C)] |
3037 | #[derive (Copy, Clone)] |
3038 | pub struct group_req { |
3039 | pub gr_interface: __u32, |
3040 | pub gr_group: __kernel_sockaddr_storage, |
3041 | } |
3042 | #[repr (C)] |
3043 | #[derive (Copy, Clone)] |
3044 | pub struct group_source_req { |
3045 | pub gsr_interface: __u32, |
3046 | pub gsr_group: __kernel_sockaddr_storage, |
3047 | pub gsr_source: __kernel_sockaddr_storage, |
3048 | } |
3049 | #[repr (C)] |
3050 | pub struct group_filter { |
3051 | pub __bindgen_anon_1: group_filter__bindgen_ty_1, |
3052 | } |
3053 | #[repr (C)] |
3054 | pub struct group_filter__bindgen_ty_1 { |
3055 | pub __bindgen_anon_1: __BindgenUnionField<group_filter__bindgen_ty_1__bindgen_ty_1>, |
3056 | pub __bindgen_anon_2: __BindgenUnionField<group_filter__bindgen_ty_1__bindgen_ty_2>, |
3057 | pub bindgen_union_field: [u64; 34usize], |
3058 | } |
3059 | #[repr (C)] |
3060 | #[derive (Copy, Clone)] |
3061 | pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { |
3062 | pub gf_interface_aux: __u32, |
3063 | pub gf_group_aux: __kernel_sockaddr_storage, |
3064 | pub gf_fmode_aux: __u32, |
3065 | pub gf_numsrc_aux: __u32, |
3066 | pub gf_slist: [__kernel_sockaddr_storage; 1usize], |
3067 | } |
3068 | #[repr (C)] |
3069 | pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { |
3070 | pub gf_interface: __u32, |
3071 | pub gf_group: __kernel_sockaddr_storage, |
3072 | pub gf_fmode: __u32, |
3073 | pub gf_numsrc: __u32, |
3074 | pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, |
3075 | } |
3076 | #[repr (C)] |
3077 | #[derive (Debug, Copy, Clone)] |
3078 | pub struct in_pktinfo { |
3079 | pub ipi_ifindex: crate::ctypes::c_int, |
3080 | pub ipi_spec_dst: in_addr, |
3081 | pub ipi_addr: in_addr, |
3082 | } |
3083 | #[repr (C)] |
3084 | #[derive (Debug, Copy, Clone)] |
3085 | pub struct sockaddr_in { |
3086 | pub sin_family: __kernel_sa_family_t, |
3087 | pub sin_port: __be16, |
3088 | pub sin_addr: in_addr, |
3089 | pub __pad: [crate::ctypes::c_uchar; 8usize], |
3090 | } |
3091 | #[repr (C)] |
3092 | #[derive (Debug)] |
3093 | pub struct inotify_event { |
3094 | pub wd: __s32, |
3095 | pub mask: __u32, |
3096 | pub cookie: __u32, |
3097 | pub len: __u32, |
3098 | pub name: __IncompleteArrayField<crate::ctypes::c_char>, |
3099 | } |
3100 | #[repr (C)] |
3101 | #[derive (Copy, Clone)] |
3102 | pub struct iphdr { |
3103 | pub _bitfield_align_1: [u8; 0], |
3104 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, |
3105 | pub tos: __u8, |
3106 | pub tot_len: __be16, |
3107 | pub id: __be16, |
3108 | pub frag_off: __be16, |
3109 | pub ttl: __u8, |
3110 | pub protocol: __u8, |
3111 | pub check: __sum16, |
3112 | pub __bindgen_anon_1: iphdr__bindgen_ty_1, |
3113 | } |
3114 | #[repr (C)] |
3115 | #[derive (Copy, Clone)] |
3116 | pub union iphdr__bindgen_ty_1 { |
3117 | pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, |
3118 | pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, |
3119 | } |
3120 | #[repr (C)] |
3121 | #[derive (Debug, Copy, Clone)] |
3122 | pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { |
3123 | pub saddr: __be32, |
3124 | pub daddr: __be32, |
3125 | } |
3126 | #[repr (C)] |
3127 | #[derive (Debug, Copy, Clone)] |
3128 | pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { |
3129 | pub saddr: __be32, |
3130 | pub daddr: __be32, |
3131 | } |
3132 | impl iphdr { |
3133 | #[inline ] |
3134 | pub fn ihl(&self) -> __u8 { |
3135 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } |
3136 | } |
3137 | #[inline ] |
3138 | pub fn set_ihl(&mut self, val: __u8) { |
3139 | unsafe { |
3140 | let val: u8 = ::core::mem::transmute(val); |
3141 | self._bitfield_1.set(0usize, 4u8, val as u64) |
3142 | } |
3143 | } |
3144 | #[inline ] |
3145 | pub fn version(&self) -> __u8 { |
3146 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } |
3147 | } |
3148 | #[inline ] |
3149 | pub fn set_version(&mut self, val: __u8) { |
3150 | unsafe { |
3151 | let val: u8 = ::core::mem::transmute(val); |
3152 | self._bitfield_1.set(4usize, 4u8, val as u64) |
3153 | } |
3154 | } |
3155 | #[inline ] |
3156 | pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { |
3157 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); |
3158 | __bindgen_bitfield_unit.set(0usize, 4u8, { |
3159 | let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; |
3160 | ihl as u64 |
3161 | }); |
3162 | __bindgen_bitfield_unit.set(4usize, 4u8, { |
3163 | let version: u8 = unsafe { ::core::mem::transmute(version) }; |
3164 | version as u64 |
3165 | }); |
3166 | __bindgen_bitfield_unit |
3167 | } |
3168 | } |
3169 | #[repr (C)] |
3170 | #[derive (Debug)] |
3171 | pub struct ip_auth_hdr { |
3172 | pub nexthdr: __u8, |
3173 | pub hdrlen: __u8, |
3174 | pub reserved: __be16, |
3175 | pub spi: __be32, |
3176 | pub seq_no: __be32, |
3177 | pub auth_data: __IncompleteArrayField<__u8>, |
3178 | } |
3179 | #[repr (C)] |
3180 | #[derive (Debug)] |
3181 | pub struct ip_esp_hdr { |
3182 | pub spi: __be32, |
3183 | pub seq_no: __be32, |
3184 | pub enc_data: __IncompleteArrayField<__u8>, |
3185 | } |
3186 | #[repr (C)] |
3187 | #[derive (Debug, Copy, Clone)] |
3188 | pub struct ip_comp_hdr { |
3189 | pub nexthdr: __u8, |
3190 | pub flags: __u8, |
3191 | pub cpi: __be16, |
3192 | } |
3193 | #[repr (C)] |
3194 | #[derive (Debug, Copy, Clone)] |
3195 | pub struct ip_beet_phdr { |
3196 | pub nexthdr: __u8, |
3197 | pub hdrlen: __u8, |
3198 | pub padlen: __u8, |
3199 | pub reserved: __u8, |
3200 | } |
3201 | pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; |
3202 | pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; |
3203 | pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; |
3204 | pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; |
3205 | pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; |
3206 | pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; |
3207 | pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; |
3208 | pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; |
3209 | pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; |
3210 | pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; |
3211 | pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; |
3212 | pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; |
3213 | pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; |
3214 | pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; |
3215 | pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; |
3216 | pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; |
3217 | pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; |
3218 | pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; |
3219 | pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; |
3220 | pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; |
3221 | pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; |
3222 | pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; |
3223 | pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; |
3224 | pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; |
3225 | pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; |
3226 | pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; |
3227 | pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; |
3228 | pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; |
3229 | pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; |
3230 | pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; |
3231 | pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; |
3232 | pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; |
3233 | pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; |
3234 | pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; |
3235 | #[repr (u32)] |
3236 | #[non_exhaustive ] |
3237 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
3238 | pub enum _bindgen_ty_2 { |
3239 | IPV4_DEVCONF_FORWARDING = 1, |
3240 | IPV4_DEVCONF_MC_FORWARDING = 2, |
3241 | IPV4_DEVCONF_PROXY_ARP = 3, |
3242 | IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, |
3243 | IPV4_DEVCONF_SECURE_REDIRECTS = 5, |
3244 | IPV4_DEVCONF_SEND_REDIRECTS = 6, |
3245 | IPV4_DEVCONF_SHARED_MEDIA = 7, |
3246 | IPV4_DEVCONF_RP_FILTER = 8, |
3247 | IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, |
3248 | IPV4_DEVCONF_BOOTP_RELAY = 10, |
3249 | IPV4_DEVCONF_LOG_MARTIANS = 11, |
3250 | IPV4_DEVCONF_TAG = 12, |
3251 | IPV4_DEVCONF_ARPFILTER = 13, |
3252 | IPV4_DEVCONF_MEDIUM_ID = 14, |
3253 | IPV4_DEVCONF_NOXFRM = 15, |
3254 | IPV4_DEVCONF_NOPOLICY = 16, |
3255 | IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, |
3256 | IPV4_DEVCONF_ARP_ANNOUNCE = 18, |
3257 | IPV4_DEVCONF_ARP_IGNORE = 19, |
3258 | IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, |
3259 | IPV4_DEVCONF_ARP_ACCEPT = 21, |
3260 | IPV4_DEVCONF_ARP_NOTIFY = 22, |
3261 | IPV4_DEVCONF_ACCEPT_LOCAL = 23, |
3262 | IPV4_DEVCONF_SRC_VMARK = 24, |
3263 | IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, |
3264 | IPV4_DEVCONF_ROUTE_LOCALNET = 26, |
3265 | IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, |
3266 | IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, |
3267 | IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, |
3268 | IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, |
3269 | IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, |
3270 | IPV4_DEVCONF_BC_FORWARDING = 32, |
3271 | IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, |
3272 | __IPV4_DEVCONF_MAX = 34, |
3273 | } |
3274 | #[repr (C)] |
3275 | #[derive (Copy, Clone)] |
3276 | pub struct in6_addr { |
3277 | pub in6_u: in6_addr__bindgen_ty_1, |
3278 | } |
3279 | #[repr (C)] |
3280 | #[derive (Copy, Clone)] |
3281 | pub union in6_addr__bindgen_ty_1 { |
3282 | pub u6_addr8: [__u8; 16usize], |
3283 | pub u6_addr16: [__be16; 8usize], |
3284 | pub u6_addr32: [__be32; 4usize], |
3285 | } |
3286 | #[repr (C)] |
3287 | #[derive (Copy, Clone)] |
3288 | pub struct sockaddr_in6 { |
3289 | pub sin6_family: crate::ctypes::c_ushort, |
3290 | pub sin6_port: __be16, |
3291 | pub sin6_flowinfo: __be32, |
3292 | pub sin6_addr: in6_addr, |
3293 | pub sin6_scope_id: __u32, |
3294 | } |
3295 | #[repr (C)] |
3296 | #[derive (Copy, Clone)] |
3297 | pub struct ipv6_mreq { |
3298 | pub ipv6mr_multiaddr: in6_addr, |
3299 | pub ipv6mr_ifindex: crate::ctypes::c_int, |
3300 | } |
3301 | #[repr (C)] |
3302 | #[derive (Copy, Clone)] |
3303 | pub struct in6_flowlabel_req { |
3304 | pub flr_dst: in6_addr, |
3305 | pub flr_label: __be32, |
3306 | pub flr_action: __u8, |
3307 | pub flr_share: __u8, |
3308 | pub flr_flags: __u16, |
3309 | pub flr_expires: __u16, |
3310 | pub flr_linger: __u16, |
3311 | pub __flr_pad: __u32, |
3312 | } |
3313 | #[repr (C)] |
3314 | #[derive (Copy, Clone)] |
3315 | pub struct in6_pktinfo { |
3316 | pub ipi6_addr: in6_addr, |
3317 | pub ipi6_ifindex: crate::ctypes::c_int, |
3318 | } |
3319 | #[repr (C)] |
3320 | #[derive (Copy, Clone)] |
3321 | pub struct ip6_mtuinfo { |
3322 | pub ip6m_addr: sockaddr_in6, |
3323 | pub ip6m_mtu: __u32, |
3324 | } |
3325 | #[repr (C)] |
3326 | #[derive (Copy, Clone)] |
3327 | pub struct in6_ifreq { |
3328 | pub ifr6_addr: in6_addr, |
3329 | pub ifr6_prefixlen: __u32, |
3330 | pub ifr6_ifindex: crate::ctypes::c_int, |
3331 | } |
3332 | #[repr (C)] |
3333 | #[derive (Debug, Copy, Clone)] |
3334 | pub struct ipv6_rt_hdr { |
3335 | pub nexthdr: __u8, |
3336 | pub hdrlen: __u8, |
3337 | pub type_: __u8, |
3338 | pub segments_left: __u8, |
3339 | } |
3340 | #[repr (C, packed)] |
3341 | #[derive (Debug, Copy, Clone)] |
3342 | pub struct ipv6_opt_hdr { |
3343 | pub nexthdr: __u8, |
3344 | pub hdrlen: __u8, |
3345 | } |
3346 | #[repr (C)] |
3347 | pub struct rt0_hdr { |
3348 | pub rt_hdr: ipv6_rt_hdr, |
3349 | pub reserved: __u32, |
3350 | pub addr: __IncompleteArrayField<in6_addr>, |
3351 | } |
3352 | #[repr (C)] |
3353 | #[derive (Copy, Clone)] |
3354 | pub struct rt2_hdr { |
3355 | pub rt_hdr: ipv6_rt_hdr, |
3356 | pub reserved: __u32, |
3357 | pub addr: in6_addr, |
3358 | } |
3359 | #[repr (C, packed)] |
3360 | #[derive (Copy, Clone)] |
3361 | pub struct ipv6_destopt_hao { |
3362 | pub type_: __u8, |
3363 | pub length: __u8, |
3364 | pub addr: in6_addr, |
3365 | } |
3366 | #[repr (C)] |
3367 | #[derive (Copy, Clone)] |
3368 | pub struct ipv6hdr { |
3369 | pub _bitfield_align_1: [u8; 0], |
3370 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, |
3371 | pub flow_lbl: [__u8; 3usize], |
3372 | pub payload_len: __be16, |
3373 | pub nexthdr: __u8, |
3374 | pub hop_limit: __u8, |
3375 | pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, |
3376 | } |
3377 | #[repr (C)] |
3378 | #[derive (Copy, Clone)] |
3379 | pub union ipv6hdr__bindgen_ty_1 { |
3380 | pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, |
3381 | pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, |
3382 | } |
3383 | #[repr (C)] |
3384 | #[derive (Copy, Clone)] |
3385 | pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { |
3386 | pub saddr: in6_addr, |
3387 | pub daddr: in6_addr, |
3388 | } |
3389 | #[repr (C)] |
3390 | #[derive (Copy, Clone)] |
3391 | pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { |
3392 | pub saddr: in6_addr, |
3393 | pub daddr: in6_addr, |
3394 | } |
3395 | impl ipv6hdr { |
3396 | #[inline ] |
3397 | pub fn priority(&self) -> __u8 { |
3398 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } |
3399 | } |
3400 | #[inline ] |
3401 | pub fn set_priority(&mut self, val: __u8) { |
3402 | unsafe { |
3403 | let val: u8 = ::core::mem::transmute(val); |
3404 | self._bitfield_1.set(0usize, 4u8, val as u64) |
3405 | } |
3406 | } |
3407 | #[inline ] |
3408 | pub fn version(&self) -> __u8 { |
3409 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } |
3410 | } |
3411 | #[inline ] |
3412 | pub fn set_version(&mut self, val: __u8) { |
3413 | unsafe { |
3414 | let val: u8 = ::core::mem::transmute(val); |
3415 | self._bitfield_1.set(4usize, 4u8, val as u64) |
3416 | } |
3417 | } |
3418 | #[inline ] |
3419 | pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { |
3420 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); |
3421 | __bindgen_bitfield_unit.set(0usize, 4u8, { |
3422 | let priority: u8 = unsafe { ::core::mem::transmute(priority) }; |
3423 | priority as u64 |
3424 | }); |
3425 | __bindgen_bitfield_unit.set(4usize, 4u8, { |
3426 | let version: u8 = unsafe { ::core::mem::transmute(version) }; |
3427 | version as u64 |
3428 | }); |
3429 | __bindgen_bitfield_unit |
3430 | } |
3431 | } |
3432 | pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; |
3433 | pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; |
3434 | pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; |
3435 | pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; |
3436 | pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; |
3437 | pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; |
3438 | pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; |
3439 | pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; |
3440 | pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; |
3441 | pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; |
3442 | pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; |
3443 | pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; |
3444 | pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; |
3445 | pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; |
3446 | pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; |
3447 | pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; |
3448 | pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; |
3449 | pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; |
3450 | pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; |
3451 | pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; |
3452 | pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; |
3453 | pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; |
3454 | pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; |
3455 | pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; |
3456 | pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; |
3457 | pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; |
3458 | pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; |
3459 | pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; |
3460 | pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; |
3461 | pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; |
3462 | pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; |
3463 | pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; |
3464 | pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; |
3465 | pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; |
3466 | pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; |
3467 | pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; |
3468 | pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; |
3469 | pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; |
3470 | pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; |
3471 | pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; |
3472 | pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; |
3473 | pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; |
3474 | pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; |
3475 | pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; |
3476 | pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; |
3477 | pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; |
3478 | pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; |
3479 | pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; |
3480 | pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; |
3481 | pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; |
3482 | pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; |
3483 | pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; |
3484 | pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; |
3485 | pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; |
3486 | pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; |
3487 | pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; |
3488 | pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; |
3489 | pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; |
3490 | pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; |
3491 | #[repr (u32)] |
3492 | #[non_exhaustive ] |
3493 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
3494 | pub enum _bindgen_ty_3 { |
3495 | DEVCONF_FORWARDING = 0, |
3496 | DEVCONF_HOPLIMIT = 1, |
3497 | DEVCONF_MTU6 = 2, |
3498 | DEVCONF_ACCEPT_RA = 3, |
3499 | DEVCONF_ACCEPT_REDIRECTS = 4, |
3500 | DEVCONF_AUTOCONF = 5, |
3501 | DEVCONF_DAD_TRANSMITS = 6, |
3502 | DEVCONF_RTR_SOLICITS = 7, |
3503 | DEVCONF_RTR_SOLICIT_INTERVAL = 8, |
3504 | DEVCONF_RTR_SOLICIT_DELAY = 9, |
3505 | DEVCONF_USE_TEMPADDR = 10, |
3506 | DEVCONF_TEMP_VALID_LFT = 11, |
3507 | DEVCONF_TEMP_PREFERED_LFT = 12, |
3508 | DEVCONF_REGEN_MAX_RETRY = 13, |
3509 | DEVCONF_MAX_DESYNC_FACTOR = 14, |
3510 | DEVCONF_MAX_ADDRESSES = 15, |
3511 | DEVCONF_FORCE_MLD_VERSION = 16, |
3512 | DEVCONF_ACCEPT_RA_DEFRTR = 17, |
3513 | DEVCONF_ACCEPT_RA_PINFO = 18, |
3514 | DEVCONF_ACCEPT_RA_RTR_PREF = 19, |
3515 | DEVCONF_RTR_PROBE_INTERVAL = 20, |
3516 | DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, |
3517 | DEVCONF_PROXY_NDP = 22, |
3518 | DEVCONF_OPTIMISTIC_DAD = 23, |
3519 | DEVCONF_ACCEPT_SOURCE_ROUTE = 24, |
3520 | DEVCONF_MC_FORWARDING = 25, |
3521 | DEVCONF_DISABLE_IPV6 = 26, |
3522 | DEVCONF_ACCEPT_DAD = 27, |
3523 | DEVCONF_FORCE_TLLAO = 28, |
3524 | DEVCONF_NDISC_NOTIFY = 29, |
3525 | DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, |
3526 | DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, |
3527 | DEVCONF_SUPPRESS_FRAG_NDISC = 32, |
3528 | DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, |
3529 | DEVCONF_USE_OPTIMISTIC = 34, |
3530 | DEVCONF_ACCEPT_RA_MTU = 35, |
3531 | DEVCONF_STABLE_SECRET = 36, |
3532 | DEVCONF_USE_OIF_ADDRS_ONLY = 37, |
3533 | DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, |
3534 | DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, |
3535 | DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, |
3536 | DEVCONF_DROP_UNSOLICITED_NA = 41, |
3537 | DEVCONF_KEEP_ADDR_ON_DOWN = 42, |
3538 | DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, |
3539 | DEVCONF_SEG6_ENABLED = 44, |
3540 | DEVCONF_SEG6_REQUIRE_HMAC = 45, |
3541 | DEVCONF_ENHANCED_DAD = 46, |
3542 | DEVCONF_ADDR_GEN_MODE = 47, |
3543 | DEVCONF_DISABLE_POLICY = 48, |
3544 | DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, |
3545 | DEVCONF_NDISC_TCLASS = 50, |
3546 | DEVCONF_RPL_SEG_ENABLED = 51, |
3547 | DEVCONF_RA_DEFRTR_METRIC = 52, |
3548 | DEVCONF_IOAM6_ENABLED = 53, |
3549 | DEVCONF_IOAM6_ID = 54, |
3550 | DEVCONF_IOAM6_ID_WIDE = 55, |
3551 | DEVCONF_NDISC_EVICT_NOCARRIER = 56, |
3552 | DEVCONF_ACCEPT_UNTRACKED_NA = 57, |
3553 | DEVCONF_MAX = 58, |
3554 | } |
3555 | #[repr (u32)] |
3556 | #[non_exhaustive ] |
3557 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
3558 | pub enum socket_state { |
3559 | SS_FREE = 0, |
3560 | SS_UNCONNECTED = 1, |
3561 | SS_CONNECTING = 2, |
3562 | SS_CONNECTED = 3, |
3563 | SS_DISCONNECTING = 4, |
3564 | } |
3565 | #[repr (C)] |
3566 | #[derive (Debug, Copy, Clone)] |
3567 | pub struct pollfd { |
3568 | pub fd: crate::ctypes::c_int, |
3569 | pub events: crate::ctypes::c_short, |
3570 | pub revents: crate::ctypes::c_short, |
3571 | } |
3572 | #[repr (C)] |
3573 | #[derive (Debug, Copy, Clone)] |
3574 | pub struct prctl_mm_map { |
3575 | pub start_code: __u64, |
3576 | pub end_code: __u64, |
3577 | pub start_data: __u64, |
3578 | pub end_data: __u64, |
3579 | pub start_brk: __u64, |
3580 | pub brk: __u64, |
3581 | pub start_stack: __u64, |
3582 | pub arg_start: __u64, |
3583 | pub arg_end: __u64, |
3584 | pub env_start: __u64, |
3585 | pub env_end: __u64, |
3586 | pub auxv: *mut __u64, |
3587 | pub auxv_size: __u32, |
3588 | pub exe_fd: __u32, |
3589 | } |
3590 | #[repr (C)] |
3591 | #[derive (Debug)] |
3592 | pub struct rand_pool_info { |
3593 | pub entropy_count: crate::ctypes::c_int, |
3594 | pub buf_size: crate::ctypes::c_int, |
3595 | pub buf: __IncompleteArrayField<__u32>, |
3596 | } |
3597 | #[repr (C)] |
3598 | #[derive (Debug, Copy, Clone)] |
3599 | pub struct __kernel_timespec { |
3600 | pub tv_sec: __kernel_time64_t, |
3601 | pub tv_nsec: crate::ctypes::c_longlong, |
3602 | } |
3603 | #[repr (C)] |
3604 | #[derive (Debug, Copy, Clone)] |
3605 | pub struct __kernel_itimerspec { |
3606 | pub it_interval: __kernel_timespec, |
3607 | pub it_value: __kernel_timespec, |
3608 | } |
3609 | #[repr (C)] |
3610 | #[derive (Debug, Copy, Clone)] |
3611 | pub struct __kernel_old_timeval { |
3612 | pub tv_sec: __kernel_long_t, |
3613 | pub tv_usec: __kernel_long_t, |
3614 | } |
3615 | #[repr (C)] |
3616 | #[derive (Debug, Copy, Clone)] |
3617 | pub struct __kernel_old_timespec { |
3618 | pub tv_sec: __kernel_old_time_t, |
3619 | pub tv_nsec: crate::ctypes::c_long, |
3620 | } |
3621 | #[repr (C)] |
3622 | #[derive (Debug, Copy, Clone)] |
3623 | pub struct __kernel_old_itimerval { |
3624 | pub it_interval: __kernel_old_timeval, |
3625 | pub it_value: __kernel_old_timeval, |
3626 | } |
3627 | #[repr (C)] |
3628 | #[derive (Debug, Copy, Clone)] |
3629 | pub struct __kernel_sock_timeval { |
3630 | pub tv_sec: __s64, |
3631 | pub tv_usec: __s64, |
3632 | } |
3633 | #[repr (C)] |
3634 | #[derive (Debug, Copy, Clone)] |
3635 | pub struct timespec { |
3636 | pub tv_sec: __kernel_old_time_t, |
3637 | pub tv_nsec: crate::ctypes::c_long, |
3638 | } |
3639 | #[repr (C)] |
3640 | #[derive (Debug, Copy, Clone)] |
3641 | pub struct timeval { |
3642 | pub tv_sec: __kernel_old_time_t, |
3643 | pub tv_usec: __kernel_suseconds_t, |
3644 | } |
3645 | #[repr (C)] |
3646 | #[derive (Debug, Copy, Clone)] |
3647 | pub struct itimerspec { |
3648 | pub it_interval: timespec, |
3649 | pub it_value: timespec, |
3650 | } |
3651 | #[repr (C)] |
3652 | #[derive (Debug, Copy, Clone)] |
3653 | pub struct itimerval { |
3654 | pub it_interval: timeval, |
3655 | pub it_value: timeval, |
3656 | } |
3657 | #[repr (C)] |
3658 | #[derive (Debug, Copy, Clone)] |
3659 | pub struct timezone { |
3660 | pub tz_minuteswest: crate::ctypes::c_int, |
3661 | pub tz_dsttime: crate::ctypes::c_int, |
3662 | } |
3663 | #[repr (C)] |
3664 | #[derive (Debug, Copy, Clone)] |
3665 | pub struct rusage { |
3666 | pub ru_utime: __kernel_old_timeval, |
3667 | pub ru_stime: __kernel_old_timeval, |
3668 | pub ru_maxrss: __kernel_long_t, |
3669 | pub ru_ixrss: __kernel_long_t, |
3670 | pub ru_idrss: __kernel_long_t, |
3671 | pub ru_isrss: __kernel_long_t, |
3672 | pub ru_minflt: __kernel_long_t, |
3673 | pub ru_majflt: __kernel_long_t, |
3674 | pub ru_nswap: __kernel_long_t, |
3675 | pub ru_inblock: __kernel_long_t, |
3676 | pub ru_oublock: __kernel_long_t, |
3677 | pub ru_msgsnd: __kernel_long_t, |
3678 | pub ru_msgrcv: __kernel_long_t, |
3679 | pub ru_nsignals: __kernel_long_t, |
3680 | pub ru_nvcsw: __kernel_long_t, |
3681 | pub ru_nivcsw: __kernel_long_t, |
3682 | } |
3683 | #[repr (C)] |
3684 | #[derive (Debug, Copy, Clone)] |
3685 | pub struct rlimit { |
3686 | pub rlim_cur: __kernel_ulong_t, |
3687 | pub rlim_max: __kernel_ulong_t, |
3688 | } |
3689 | #[repr (C)] |
3690 | #[derive (Debug, Copy, Clone)] |
3691 | pub struct rlimit64 { |
3692 | pub rlim_cur: __u64, |
3693 | pub rlim_max: __u64, |
3694 | } |
3695 | #[repr (C)] |
3696 | #[derive (Debug, Copy, Clone)] |
3697 | pub struct clone_args { |
3698 | pub flags: __u64, |
3699 | pub pidfd: __u64, |
3700 | pub child_tid: __u64, |
3701 | pub parent_tid: __u64, |
3702 | pub exit_signal: __u64, |
3703 | pub stack: __u64, |
3704 | pub stack_size: __u64, |
3705 | pub tls: __u64, |
3706 | pub set_tid: __u64, |
3707 | pub set_tid_size: __u64, |
3708 | pub cgroup: __u64, |
3709 | } |
3710 | pub type sigset_t = crate::ctypes::c_ulong; |
3711 | pub type __signalfn_t = ::core::option::Option<unsafe extern "C" fn(arg1: crate::ctypes::c_int)>; |
3712 | pub type __sighandler_t = __signalfn_t; |
3713 | pub type __restorefn_t = ::core::option::Option<unsafe extern "C" fn()>; |
3714 | pub type __sigrestore_t = __restorefn_t; |
3715 | #[repr (C)] |
3716 | #[derive (Debug, Copy, Clone)] |
3717 | pub struct sigaction { |
3718 | pub sa_handler: __sighandler_t, |
3719 | pub sa_flags: crate::ctypes::c_ulong, |
3720 | pub sa_restorer: __sigrestore_t, |
3721 | pub sa_mask: sigset_t, |
3722 | } |
3723 | #[repr (C)] |
3724 | #[derive (Debug, Copy, Clone)] |
3725 | pub struct sigaltstack { |
3726 | pub ss_sp: *mut crate::ctypes::c_void, |
3727 | pub ss_flags: crate::ctypes::c_int, |
3728 | pub ss_size: __kernel_size_t, |
3729 | } |
3730 | pub type stack_t = sigaltstack; |
3731 | #[repr (C)] |
3732 | #[derive (Copy, Clone)] |
3733 | pub union sigval { |
3734 | pub sival_int: crate::ctypes::c_int, |
3735 | pub sival_ptr: *mut crate::ctypes::c_void, |
3736 | } |
3737 | pub type sigval_t = sigval; |
3738 | #[repr (C)] |
3739 | #[derive (Copy, Clone)] |
3740 | pub union __sifields { |
3741 | pub _kill: __sifields__bindgen_ty_1, |
3742 | pub _timer: __sifields__bindgen_ty_2, |
3743 | pub _rt: __sifields__bindgen_ty_3, |
3744 | pub _sigchld: __sifields__bindgen_ty_4, |
3745 | pub _sigfault: __sifields__bindgen_ty_5, |
3746 | pub _sigpoll: __sifields__bindgen_ty_6, |
3747 | pub _sigsys: __sifields__bindgen_ty_7, |
3748 | } |
3749 | #[repr (C)] |
3750 | #[derive (Debug, Copy, Clone)] |
3751 | pub struct __sifields__bindgen_ty_1 { |
3752 | pub _pid: __kernel_pid_t, |
3753 | pub _uid: __kernel_uid32_t, |
3754 | } |
3755 | #[repr (C)] |
3756 | #[derive (Copy, Clone)] |
3757 | pub struct __sifields__bindgen_ty_2 { |
3758 | pub _tid: __kernel_timer_t, |
3759 | pub _overrun: crate::ctypes::c_int, |
3760 | pub _sigval: sigval_t, |
3761 | pub _sys_private: crate::ctypes::c_int, |
3762 | } |
3763 | #[repr (C)] |
3764 | #[derive (Copy, Clone)] |
3765 | pub struct __sifields__bindgen_ty_3 { |
3766 | pub _pid: __kernel_pid_t, |
3767 | pub _uid: __kernel_uid32_t, |
3768 | pub _sigval: sigval_t, |
3769 | } |
3770 | #[repr (C)] |
3771 | #[derive (Debug, Copy, Clone)] |
3772 | pub struct __sifields__bindgen_ty_4 { |
3773 | pub _pid: __kernel_pid_t, |
3774 | pub _uid: __kernel_uid32_t, |
3775 | pub _status: crate::ctypes::c_int, |
3776 | pub _utime: __kernel_clock_t, |
3777 | pub _stime: __kernel_clock_t, |
3778 | } |
3779 | #[repr (C)] |
3780 | #[derive (Copy, Clone)] |
3781 | pub struct __sifields__bindgen_ty_5 { |
3782 | pub _addr: *mut crate::ctypes::c_void, |
3783 | pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, |
3784 | } |
3785 | #[repr (C)] |
3786 | #[derive (Copy, Clone)] |
3787 | pub union __sifields__bindgen_ty_5__bindgen_ty_1 { |
3788 | pub _trapno: crate::ctypes::c_int, |
3789 | pub _addr_lsb: crate::ctypes::c_short, |
3790 | pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, |
3791 | pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, |
3792 | pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, |
3793 | } |
3794 | #[repr (C)] |
3795 | #[derive (Debug, Copy, Clone)] |
3796 | pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { |
3797 | pub _dummy_bnd: [crate::ctypes::c_char; 8usize], |
3798 | pub _lower: *mut crate::ctypes::c_void, |
3799 | pub _upper: *mut crate::ctypes::c_void, |
3800 | } |
3801 | #[repr (C)] |
3802 | #[derive (Debug, Copy, Clone)] |
3803 | pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { |
3804 | pub _dummy_pkey: [crate::ctypes::c_char; 8usize], |
3805 | pub _pkey: __u32, |
3806 | } |
3807 | #[repr (C)] |
3808 | #[derive (Debug, Copy, Clone)] |
3809 | pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { |
3810 | pub _data: crate::ctypes::c_ulong, |
3811 | pub _type: __u32, |
3812 | pub _flags: __u32, |
3813 | } |
3814 | #[repr (C)] |
3815 | #[derive (Debug, Copy, Clone)] |
3816 | pub struct __sifields__bindgen_ty_6 { |
3817 | pub _band: crate::ctypes::c_long, |
3818 | pub _fd: crate::ctypes::c_int, |
3819 | } |
3820 | #[repr (C)] |
3821 | #[derive (Debug, Copy, Clone)] |
3822 | pub struct __sifields__bindgen_ty_7 { |
3823 | pub _call_addr: *mut crate::ctypes::c_void, |
3824 | pub _syscall: crate::ctypes::c_int, |
3825 | pub _arch: crate::ctypes::c_uint, |
3826 | } |
3827 | #[repr (C)] |
3828 | #[derive (Copy, Clone)] |
3829 | pub struct siginfo { |
3830 | pub __bindgen_anon_1: siginfo__bindgen_ty_1, |
3831 | } |
3832 | #[repr (C)] |
3833 | #[derive (Copy, Clone)] |
3834 | pub union siginfo__bindgen_ty_1 { |
3835 | pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, |
3836 | pub _si_pad: [crate::ctypes::c_int; 32usize], |
3837 | } |
3838 | #[repr (C)] |
3839 | #[derive (Copy, Clone)] |
3840 | pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { |
3841 | pub si_signo: crate::ctypes::c_int, |
3842 | pub si_errno: crate::ctypes::c_int, |
3843 | pub si_code: crate::ctypes::c_int, |
3844 | pub _sifields: __sifields, |
3845 | } |
3846 | pub type siginfo_t = siginfo; |
3847 | #[repr (C)] |
3848 | #[derive (Copy, Clone)] |
3849 | pub struct sigevent { |
3850 | pub sigev_value: sigval_t, |
3851 | pub sigev_signo: crate::ctypes::c_int, |
3852 | pub sigev_notify: crate::ctypes::c_int, |
3853 | pub _sigev_un: sigevent__bindgen_ty_1, |
3854 | } |
3855 | #[repr (C)] |
3856 | #[derive (Copy, Clone)] |
3857 | pub union sigevent__bindgen_ty_1 { |
3858 | pub _pad: [crate::ctypes::c_int; 12usize], |
3859 | pub _tid: crate::ctypes::c_int, |
3860 | pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, |
3861 | } |
3862 | #[repr (C)] |
3863 | #[derive (Debug, Copy, Clone)] |
3864 | pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { |
3865 | pub _function: ::core::option::Option<unsafe extern "C" fn(arg1: sigval_t)>, |
3866 | pub _attribute: *mut crate::ctypes::c_void, |
3867 | } |
3868 | pub type sigevent_t = sigevent; |
3869 | #[repr (C)] |
3870 | #[derive (Debug, Copy, Clone)] |
3871 | pub struct statx_timestamp { |
3872 | pub tv_sec: __s64, |
3873 | pub tv_nsec: __u32, |
3874 | pub __reserved: __s32, |
3875 | } |
3876 | #[repr (C)] |
3877 | #[derive (Debug, Copy, Clone)] |
3878 | pub struct statx { |
3879 | pub stx_mask: __u32, |
3880 | pub stx_blksize: __u32, |
3881 | pub stx_attributes: __u64, |
3882 | pub stx_nlink: __u32, |
3883 | pub stx_uid: __u32, |
3884 | pub stx_gid: __u32, |
3885 | pub stx_mode: __u16, |
3886 | pub __spare0: [__u16; 1usize], |
3887 | pub stx_ino: __u64, |
3888 | pub stx_size: __u64, |
3889 | pub stx_blocks: __u64, |
3890 | pub stx_attributes_mask: __u64, |
3891 | pub stx_atime: statx_timestamp, |
3892 | pub stx_btime: statx_timestamp, |
3893 | pub stx_ctime: statx_timestamp, |
3894 | pub stx_mtime: statx_timestamp, |
3895 | pub stx_rdev_major: __u32, |
3896 | pub stx_rdev_minor: __u32, |
3897 | pub stx_dev_major: __u32, |
3898 | pub stx_dev_minor: __u32, |
3899 | pub stx_mnt_id: __u64, |
3900 | pub stx_dio_mem_align: __u32, |
3901 | pub stx_dio_offset_align: __u32, |
3902 | pub __spare3: [__u64; 12usize], |
3903 | } |
3904 | #[repr (C)] |
3905 | #[derive (Debug)] |
3906 | pub struct sysinfo { |
3907 | pub uptime: __kernel_long_t, |
3908 | pub loads: [__kernel_ulong_t; 3usize], |
3909 | pub totalram: __kernel_ulong_t, |
3910 | pub freeram: __kernel_ulong_t, |
3911 | pub sharedram: __kernel_ulong_t, |
3912 | pub bufferram: __kernel_ulong_t, |
3913 | pub totalswap: __kernel_ulong_t, |
3914 | pub freeswap: __kernel_ulong_t, |
3915 | pub procs: __u16, |
3916 | pub pad: __u16, |
3917 | pub totalhigh: __kernel_ulong_t, |
3918 | pub freehigh: __kernel_ulong_t, |
3919 | pub mem_unit: __u32, |
3920 | pub _f: __IncompleteArrayField<crate::ctypes::c_char>, |
3921 | } |
3922 | #[repr (C)] |
3923 | #[derive (Debug, Copy, Clone)] |
3924 | pub struct tcphdr { |
3925 | pub source: __be16, |
3926 | pub dest: __be16, |
3927 | pub seq: __be32, |
3928 | pub ack_seq: __be32, |
3929 | pub _bitfield_align_1: [u8; 0], |
3930 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, |
3931 | pub window: __be16, |
3932 | pub check: __sum16, |
3933 | pub urg_ptr: __be16, |
3934 | } |
3935 | impl tcphdr { |
3936 | #[inline ] |
3937 | pub fn res1(&self) -> __u16 { |
3938 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } |
3939 | } |
3940 | #[inline ] |
3941 | pub fn set_res1(&mut self, val: __u16) { |
3942 | unsafe { |
3943 | let val: u16 = ::core::mem::transmute(val); |
3944 | self._bitfield_1.set(0usize, 4u8, val as u64) |
3945 | } |
3946 | } |
3947 | #[inline ] |
3948 | pub fn doff(&self) -> __u16 { |
3949 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } |
3950 | } |
3951 | #[inline ] |
3952 | pub fn set_doff(&mut self, val: __u16) { |
3953 | unsafe { |
3954 | let val: u16 = ::core::mem::transmute(val); |
3955 | self._bitfield_1.set(4usize, 4u8, val as u64) |
3956 | } |
3957 | } |
3958 | #[inline ] |
3959 | pub fn fin(&self) -> __u16 { |
3960 | unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } |
3961 | } |
3962 | #[inline ] |
3963 | pub fn set_fin(&mut self, val: __u16) { |
3964 | unsafe { |
3965 | let val: u16 = ::core::mem::transmute(val); |
3966 | self._bitfield_1.set(8usize, 1u8, val as u64) |
3967 | } |
3968 | } |
3969 | #[inline ] |
3970 | pub fn syn(&self) -> __u16 { |
3971 | unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } |
3972 | } |
3973 | #[inline ] |
3974 | pub fn set_syn(&mut self, val: __u16) { |
3975 | unsafe { |
3976 | let val: u16 = ::core::mem::transmute(val); |
3977 | self._bitfield_1.set(9usize, 1u8, val as u64) |
3978 | } |
3979 | } |
3980 | #[inline ] |
3981 | pub fn rst(&self) -> __u16 { |
3982 | unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } |
3983 | } |
3984 | #[inline ] |
3985 | pub fn set_rst(&mut self, val: __u16) { |
3986 | unsafe { |
3987 | let val: u16 = ::core::mem::transmute(val); |
3988 | self._bitfield_1.set(10usize, 1u8, val as u64) |
3989 | } |
3990 | } |
3991 | #[inline ] |
3992 | pub fn psh(&self) -> __u16 { |
3993 | unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } |
3994 | } |
3995 | #[inline ] |
3996 | pub fn set_psh(&mut self, val: __u16) { |
3997 | unsafe { |
3998 | let val: u16 = ::core::mem::transmute(val); |
3999 | self._bitfield_1.set(11usize, 1u8, val as u64) |
4000 | } |
4001 | } |
4002 | #[inline ] |
4003 | pub fn ack(&self) -> __u16 { |
4004 | unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } |
4005 | } |
4006 | #[inline ] |
4007 | pub fn set_ack(&mut self, val: __u16) { |
4008 | unsafe { |
4009 | let val: u16 = ::core::mem::transmute(val); |
4010 | self._bitfield_1.set(12usize, 1u8, val as u64) |
4011 | } |
4012 | } |
4013 | #[inline ] |
4014 | pub fn urg(&self) -> __u16 { |
4015 | unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } |
4016 | } |
4017 | #[inline ] |
4018 | pub fn set_urg(&mut self, val: __u16) { |
4019 | unsafe { |
4020 | let val: u16 = ::core::mem::transmute(val); |
4021 | self._bitfield_1.set(13usize, 1u8, val as u64) |
4022 | } |
4023 | } |
4024 | #[inline ] |
4025 | pub fn ece(&self) -> __u16 { |
4026 | unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } |
4027 | } |
4028 | #[inline ] |
4029 | pub fn set_ece(&mut self, val: __u16) { |
4030 | unsafe { |
4031 | let val: u16 = ::core::mem::transmute(val); |
4032 | self._bitfield_1.set(14usize, 1u8, val as u64) |
4033 | } |
4034 | } |
4035 | #[inline ] |
4036 | pub fn cwr(&self) -> __u16 { |
4037 | unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } |
4038 | } |
4039 | #[inline ] |
4040 | pub fn set_cwr(&mut self, val: __u16) { |
4041 | unsafe { |
4042 | let val: u16 = ::core::mem::transmute(val); |
4043 | self._bitfield_1.set(15usize, 1u8, val as u64) |
4044 | } |
4045 | } |
4046 | #[inline ] |
4047 | pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { |
4048 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); |
4049 | __bindgen_bitfield_unit.set(0usize, 4u8, { |
4050 | let res1: u16 = unsafe { ::core::mem::transmute(res1) }; |
4051 | res1 as u64 |
4052 | }); |
4053 | __bindgen_bitfield_unit.set(4usize, 4u8, { |
4054 | let doff: u16 = unsafe { ::core::mem::transmute(doff) }; |
4055 | doff as u64 |
4056 | }); |
4057 | __bindgen_bitfield_unit.set(8usize, 1u8, { |
4058 | let fin: u16 = unsafe { ::core::mem::transmute(fin) }; |
4059 | fin as u64 |
4060 | }); |
4061 | __bindgen_bitfield_unit.set(9usize, 1u8, { |
4062 | let syn: u16 = unsafe { ::core::mem::transmute(syn) }; |
4063 | syn as u64 |
4064 | }); |
4065 | __bindgen_bitfield_unit.set(10usize, 1u8, { |
4066 | let rst: u16 = unsafe { ::core::mem::transmute(rst) }; |
4067 | rst as u64 |
4068 | }); |
4069 | __bindgen_bitfield_unit.set(11usize, 1u8, { |
4070 | let psh: u16 = unsafe { ::core::mem::transmute(psh) }; |
4071 | psh as u64 |
4072 | }); |
4073 | __bindgen_bitfield_unit.set(12usize, 1u8, { |
4074 | let ack: u16 = unsafe { ::core::mem::transmute(ack) }; |
4075 | ack as u64 |
4076 | }); |
4077 | __bindgen_bitfield_unit.set(13usize, 1u8, { |
4078 | let urg: u16 = unsafe { ::core::mem::transmute(urg) }; |
4079 | urg as u64 |
4080 | }); |
4081 | __bindgen_bitfield_unit.set(14usize, 1u8, { |
4082 | let ece: u16 = unsafe { ::core::mem::transmute(ece) }; |
4083 | ece as u64 |
4084 | }); |
4085 | __bindgen_bitfield_unit.set(15usize, 1u8, { |
4086 | let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; |
4087 | cwr as u64 |
4088 | }); |
4089 | __bindgen_bitfield_unit |
4090 | } |
4091 | } |
4092 | #[repr (C)] |
4093 | #[derive (Copy, Clone)] |
4094 | pub union tcp_word_hdr { |
4095 | pub hdr: tcphdr, |
4096 | pub words: [__be32; 5usize], |
4097 | } |
4098 | pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; |
4099 | pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; |
4100 | pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; |
4101 | pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; |
4102 | pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; |
4103 | pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; |
4104 | pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; |
4105 | pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; |
4106 | pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; |
4107 | pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; |
4108 | #[repr (u32)] |
4109 | #[non_exhaustive ] |
4110 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4111 | pub enum _bindgen_ty_4 { |
4112 | TCP_FLAG_CWR = 32768, |
4113 | TCP_FLAG_ECE = 16384, |
4114 | TCP_FLAG_URG = 8192, |
4115 | TCP_FLAG_ACK = 4096, |
4116 | TCP_FLAG_PSH = 2048, |
4117 | TCP_FLAG_RST = 1024, |
4118 | TCP_FLAG_SYN = 512, |
4119 | TCP_FLAG_FIN = 256, |
4120 | TCP_RESERVED_BITS = 15, |
4121 | TCP_DATA_OFFSET = 240, |
4122 | } |
4123 | #[repr (C)] |
4124 | #[derive (Debug, Copy, Clone)] |
4125 | pub struct tcp_repair_opt { |
4126 | pub opt_code: __u32, |
4127 | pub opt_val: __u32, |
4128 | } |
4129 | #[repr (C)] |
4130 | #[derive (Debug, Copy, Clone)] |
4131 | pub struct tcp_repair_window { |
4132 | pub snd_wl1: __u32, |
4133 | pub snd_wnd: __u32, |
4134 | pub max_window: __u32, |
4135 | pub rcv_wnd: __u32, |
4136 | pub rcv_wup: __u32, |
4137 | } |
4138 | pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; |
4139 | pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; |
4140 | pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; |
4141 | pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; |
4142 | #[repr (u32)] |
4143 | #[non_exhaustive ] |
4144 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4145 | pub enum _bindgen_ty_5 { |
4146 | TCP_NO_QUEUE = 0, |
4147 | TCP_RECV_QUEUE = 1, |
4148 | TCP_SEND_QUEUE = 2, |
4149 | TCP_QUEUES_NR = 3, |
4150 | } |
4151 | #[repr (u32)] |
4152 | #[non_exhaustive ] |
4153 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4154 | pub enum tcp_fastopen_client_fail { |
4155 | TFO_STATUS_UNSPEC = 0, |
4156 | TFO_COOKIE_UNAVAILABLE = 1, |
4157 | TFO_DATA_NOT_ACKED = 2, |
4158 | TFO_SYN_RETRANSMITTED = 3, |
4159 | } |
4160 | #[repr (u32)] |
4161 | #[non_exhaustive ] |
4162 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4163 | pub enum tcp_ca_state { |
4164 | TCP_CA_Open = 0, |
4165 | TCP_CA_Disorder = 1, |
4166 | TCP_CA_CWR = 2, |
4167 | TCP_CA_Recovery = 3, |
4168 | TCP_CA_Loss = 4, |
4169 | } |
4170 | #[repr (C)] |
4171 | #[derive (Debug, Copy, Clone)] |
4172 | pub struct tcp_info { |
4173 | pub tcpi_state: __u8, |
4174 | pub tcpi_ca_state: __u8, |
4175 | pub tcpi_retransmits: __u8, |
4176 | pub tcpi_probes: __u8, |
4177 | pub tcpi_backoff: __u8, |
4178 | pub tcpi_options: __u8, |
4179 | pub _bitfield_align_1: [u8; 0], |
4180 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, |
4181 | pub tcpi_rto: __u32, |
4182 | pub tcpi_ato: __u32, |
4183 | pub tcpi_snd_mss: __u32, |
4184 | pub tcpi_rcv_mss: __u32, |
4185 | pub tcpi_unacked: __u32, |
4186 | pub tcpi_sacked: __u32, |
4187 | pub tcpi_lost: __u32, |
4188 | pub tcpi_retrans: __u32, |
4189 | pub tcpi_fackets: __u32, |
4190 | pub tcpi_last_data_sent: __u32, |
4191 | pub tcpi_last_ack_sent: __u32, |
4192 | pub tcpi_last_data_recv: __u32, |
4193 | pub tcpi_last_ack_recv: __u32, |
4194 | pub tcpi_pmtu: __u32, |
4195 | pub tcpi_rcv_ssthresh: __u32, |
4196 | pub tcpi_rtt: __u32, |
4197 | pub tcpi_rttvar: __u32, |
4198 | pub tcpi_snd_ssthresh: __u32, |
4199 | pub tcpi_snd_cwnd: __u32, |
4200 | pub tcpi_advmss: __u32, |
4201 | pub tcpi_reordering: __u32, |
4202 | pub tcpi_rcv_rtt: __u32, |
4203 | pub tcpi_rcv_space: __u32, |
4204 | pub tcpi_total_retrans: __u32, |
4205 | pub tcpi_pacing_rate: __u64, |
4206 | pub tcpi_max_pacing_rate: __u64, |
4207 | pub tcpi_bytes_acked: __u64, |
4208 | pub tcpi_bytes_received: __u64, |
4209 | pub tcpi_segs_out: __u32, |
4210 | pub tcpi_segs_in: __u32, |
4211 | pub tcpi_notsent_bytes: __u32, |
4212 | pub tcpi_min_rtt: __u32, |
4213 | pub tcpi_data_segs_in: __u32, |
4214 | pub tcpi_data_segs_out: __u32, |
4215 | pub tcpi_delivery_rate: __u64, |
4216 | pub tcpi_busy_time: __u64, |
4217 | pub tcpi_rwnd_limited: __u64, |
4218 | pub tcpi_sndbuf_limited: __u64, |
4219 | pub tcpi_delivered: __u32, |
4220 | pub tcpi_delivered_ce: __u32, |
4221 | pub tcpi_bytes_sent: __u64, |
4222 | pub tcpi_bytes_retrans: __u64, |
4223 | pub tcpi_dsack_dups: __u32, |
4224 | pub tcpi_reord_seen: __u32, |
4225 | pub tcpi_rcv_ooopack: __u32, |
4226 | pub tcpi_snd_wnd: __u32, |
4227 | pub tcpi_rcv_wnd: __u32, |
4228 | pub tcpi_rehash: __u32, |
4229 | } |
4230 | impl tcp_info { |
4231 | #[inline ] |
4232 | pub fn tcpi_snd_wscale(&self) -> __u8 { |
4233 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } |
4234 | } |
4235 | #[inline ] |
4236 | pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { |
4237 | unsafe { |
4238 | let val: u8 = ::core::mem::transmute(val); |
4239 | self._bitfield_1.set(0usize, 4u8, val as u64) |
4240 | } |
4241 | } |
4242 | #[inline ] |
4243 | pub fn tcpi_rcv_wscale(&self) -> __u8 { |
4244 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } |
4245 | } |
4246 | #[inline ] |
4247 | pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { |
4248 | unsafe { |
4249 | let val: u8 = ::core::mem::transmute(val); |
4250 | self._bitfield_1.set(4usize, 4u8, val as u64) |
4251 | } |
4252 | } |
4253 | #[inline ] |
4254 | pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { |
4255 | unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } |
4256 | } |
4257 | #[inline ] |
4258 | pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { |
4259 | unsafe { |
4260 | let val: u8 = ::core::mem::transmute(val); |
4261 | self._bitfield_1.set(8usize, 1u8, val as u64) |
4262 | } |
4263 | } |
4264 | #[inline ] |
4265 | pub fn tcpi_fastopen_client_fail(&self) -> __u8 { |
4266 | unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } |
4267 | } |
4268 | #[inline ] |
4269 | pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { |
4270 | unsafe { |
4271 | let val: u8 = ::core::mem::transmute(val); |
4272 | self._bitfield_1.set(9usize, 2u8, val as u64) |
4273 | } |
4274 | } |
4275 | #[inline ] |
4276 | pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { |
4277 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); |
4278 | __bindgen_bitfield_unit.set(0usize, 4u8, { |
4279 | let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; |
4280 | tcpi_snd_wscale as u64 |
4281 | }); |
4282 | __bindgen_bitfield_unit.set(4usize, 4u8, { |
4283 | let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; |
4284 | tcpi_rcv_wscale as u64 |
4285 | }); |
4286 | __bindgen_bitfield_unit.set(8usize, 1u8, { |
4287 | let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; |
4288 | tcpi_delivery_rate_app_limited as u64 |
4289 | }); |
4290 | __bindgen_bitfield_unit.set(9usize, 2u8, { |
4291 | let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; |
4292 | tcpi_fastopen_client_fail as u64 |
4293 | }); |
4294 | __bindgen_bitfield_unit |
4295 | } |
4296 | } |
4297 | pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; |
4298 | pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; |
4299 | pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; |
4300 | pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; |
4301 | pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; |
4302 | pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; |
4303 | pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; |
4304 | pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; |
4305 | pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; |
4306 | pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; |
4307 | pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; |
4308 | pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; |
4309 | pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; |
4310 | pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; |
4311 | pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; |
4312 | pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; |
4313 | pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; |
4314 | pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; |
4315 | pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; |
4316 | pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; |
4317 | pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; |
4318 | pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; |
4319 | pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; |
4320 | pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; |
4321 | pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; |
4322 | pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; |
4323 | pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; |
4324 | pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; |
4325 | #[repr (u32)] |
4326 | #[non_exhaustive ] |
4327 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4328 | pub enum _bindgen_ty_6 { |
4329 | TCP_NLA_PAD = 0, |
4330 | TCP_NLA_BUSY = 1, |
4331 | TCP_NLA_RWND_LIMITED = 2, |
4332 | TCP_NLA_SNDBUF_LIMITED = 3, |
4333 | TCP_NLA_DATA_SEGS_OUT = 4, |
4334 | TCP_NLA_TOTAL_RETRANS = 5, |
4335 | TCP_NLA_PACING_RATE = 6, |
4336 | TCP_NLA_DELIVERY_RATE = 7, |
4337 | TCP_NLA_SND_CWND = 8, |
4338 | TCP_NLA_REORDERING = 9, |
4339 | TCP_NLA_MIN_RTT = 10, |
4340 | TCP_NLA_RECUR_RETRANS = 11, |
4341 | TCP_NLA_DELIVERY_RATE_APP_LMT = 12, |
4342 | TCP_NLA_SNDQ_SIZE = 13, |
4343 | TCP_NLA_CA_STATE = 14, |
4344 | TCP_NLA_SND_SSTHRESH = 15, |
4345 | TCP_NLA_DELIVERED = 16, |
4346 | TCP_NLA_DELIVERED_CE = 17, |
4347 | TCP_NLA_BYTES_SENT = 18, |
4348 | TCP_NLA_BYTES_RETRANS = 19, |
4349 | TCP_NLA_DSACK_DUPS = 20, |
4350 | TCP_NLA_REORD_SEEN = 21, |
4351 | TCP_NLA_SRTT = 22, |
4352 | TCP_NLA_TIMEOUT_REHASH = 23, |
4353 | TCP_NLA_BYTES_NOTSENT = 24, |
4354 | TCP_NLA_EDT = 25, |
4355 | TCP_NLA_TTL = 26, |
4356 | TCP_NLA_REHASH = 27, |
4357 | } |
4358 | #[repr (C)] |
4359 | #[derive (Copy, Clone)] |
4360 | pub struct tcp_md5sig { |
4361 | pub tcpm_addr: __kernel_sockaddr_storage, |
4362 | pub tcpm_flags: __u8, |
4363 | pub tcpm_prefixlen: __u8, |
4364 | pub tcpm_keylen: __u16, |
4365 | pub tcpm_ifindex: crate::ctypes::c_int, |
4366 | pub tcpm_key: [__u8; 80usize], |
4367 | } |
4368 | #[repr (C)] |
4369 | #[derive (Debug, Copy, Clone)] |
4370 | pub struct tcp_diag_md5sig { |
4371 | pub tcpm_family: __u8, |
4372 | pub tcpm_prefixlen: __u8, |
4373 | pub tcpm_keylen: __u16, |
4374 | pub tcpm_addr: [__be32; 4usize], |
4375 | pub tcpm_key: [__u8; 80usize], |
4376 | } |
4377 | #[repr (C)] |
4378 | #[derive (Debug, Copy, Clone)] |
4379 | pub struct tcp_zerocopy_receive { |
4380 | pub address: __u64, |
4381 | pub length: __u32, |
4382 | pub recv_skip_hint: __u32, |
4383 | pub inq: __u32, |
4384 | pub err: __s32, |
4385 | pub copybuf_address: __u64, |
4386 | pub copybuf_len: __s32, |
4387 | pub flags: __u32, |
4388 | pub msg_control: __u64, |
4389 | pub msg_controllen: __u64, |
4390 | pub msg_flags: __u32, |
4391 | pub reserved: __u32, |
4392 | } |
4393 | pub type cc_t = crate::ctypes::c_uchar; |
4394 | pub type speed_t = crate::ctypes::c_uint; |
4395 | pub type tcflag_t = crate::ctypes::c_uint; |
4396 | #[repr (C)] |
4397 | #[derive (Debug, Copy, Clone)] |
4398 | pub struct termios { |
4399 | pub c_iflag: tcflag_t, |
4400 | pub c_oflag: tcflag_t, |
4401 | pub c_cflag: tcflag_t, |
4402 | pub c_lflag: tcflag_t, |
4403 | pub c_line: cc_t, |
4404 | pub c_cc: [cc_t; 19usize], |
4405 | } |
4406 | #[repr (C)] |
4407 | #[derive (Debug, Copy, Clone)] |
4408 | pub struct termios2 { |
4409 | pub c_iflag: tcflag_t, |
4410 | pub c_oflag: tcflag_t, |
4411 | pub c_cflag: tcflag_t, |
4412 | pub c_lflag: tcflag_t, |
4413 | pub c_line: cc_t, |
4414 | pub c_cc: [cc_t; 19usize], |
4415 | pub c_ispeed: speed_t, |
4416 | pub c_ospeed: speed_t, |
4417 | } |
4418 | #[repr (C)] |
4419 | #[derive (Debug, Copy, Clone)] |
4420 | pub struct ktermios { |
4421 | pub c_iflag: tcflag_t, |
4422 | pub c_oflag: tcflag_t, |
4423 | pub c_cflag: tcflag_t, |
4424 | pub c_lflag: tcflag_t, |
4425 | pub c_line: cc_t, |
4426 | pub c_cc: [cc_t; 19usize], |
4427 | pub c_ispeed: speed_t, |
4428 | pub c_ospeed: speed_t, |
4429 | } |
4430 | #[repr (C)] |
4431 | #[derive (Debug, Copy, Clone)] |
4432 | pub struct winsize { |
4433 | pub ws_row: crate::ctypes::c_ushort, |
4434 | pub ws_col: crate::ctypes::c_ushort, |
4435 | pub ws_xpixel: crate::ctypes::c_ushort, |
4436 | pub ws_ypixel: crate::ctypes::c_ushort, |
4437 | } |
4438 | #[repr (C)] |
4439 | #[derive (Debug, Copy, Clone)] |
4440 | pub struct termio { |
4441 | pub c_iflag: crate::ctypes::c_ushort, |
4442 | pub c_oflag: crate::ctypes::c_ushort, |
4443 | pub c_cflag: crate::ctypes::c_ushort, |
4444 | pub c_lflag: crate::ctypes::c_ushort, |
4445 | pub c_line: crate::ctypes::c_uchar, |
4446 | pub c_cc: [crate::ctypes::c_uchar; 8usize], |
4447 | } |
4448 | #[repr (C)] |
4449 | #[derive (Debug, Copy, Clone)] |
4450 | pub struct iovec { |
4451 | pub iov_base: *mut crate::ctypes::c_void, |
4452 | pub iov_len: __kernel_size_t, |
4453 | } |
4454 | #[repr (C)] |
4455 | #[derive (Debug, Copy, Clone)] |
4456 | pub struct sockaddr_un { |
4457 | pub sun_family: __kernel_sa_family_t, |
4458 | pub sun_path: [crate::ctypes::c_char; 108usize], |
4459 | } |
4460 | #[repr (C)] |
4461 | #[derive (Debug, Copy, Clone)] |
4462 | pub struct oldold_utsname { |
4463 | pub sysname: [crate::ctypes::c_char; 9usize], |
4464 | pub nodename: [crate::ctypes::c_char; 9usize], |
4465 | pub release: [crate::ctypes::c_char; 9usize], |
4466 | pub version: [crate::ctypes::c_char; 9usize], |
4467 | pub machine: [crate::ctypes::c_char; 9usize], |
4468 | } |
4469 | #[repr (C)] |
4470 | #[derive (Debug, Copy, Clone)] |
4471 | pub struct old_utsname { |
4472 | pub sysname: [crate::ctypes::c_char; 65usize], |
4473 | pub nodename: [crate::ctypes::c_char; 65usize], |
4474 | pub release: [crate::ctypes::c_char; 65usize], |
4475 | pub version: [crate::ctypes::c_char; 65usize], |
4476 | pub machine: [crate::ctypes::c_char; 65usize], |
4477 | } |
4478 | #[repr (C)] |
4479 | #[derive (Debug, Copy, Clone)] |
4480 | pub struct new_utsname { |
4481 | pub sysname: [crate::ctypes::c_char; 65usize], |
4482 | pub nodename: [crate::ctypes::c_char; 65usize], |
4483 | pub release: [crate::ctypes::c_char; 65usize], |
4484 | pub version: [crate::ctypes::c_char; 65usize], |
4485 | pub machine: [crate::ctypes::c_char; 65usize], |
4486 | pub domainname: [crate::ctypes::c_char; 65usize], |
4487 | } |
4488 | impl membarrier_cmd { |
4489 | pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; |
4490 | } |
4491 | #[repr (u32)] |
4492 | #[non_exhaustive ] |
4493 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4494 | pub enum membarrier_cmd { |
4495 | MEMBARRIER_CMD_QUERY = 0, |
4496 | MEMBARRIER_CMD_GLOBAL = 1, |
4497 | MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, |
4498 | MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, |
4499 | MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, |
4500 | MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, |
4501 | MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, |
4502 | MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, |
4503 | MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, |
4504 | MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, |
4505 | MEMBARRIER_CMD_GET_REGISTRATIONS = 512, |
4506 | } |
4507 | #[repr (u32)] |
4508 | #[non_exhaustive ] |
4509 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4510 | pub enum membarrier_cmd_flag { |
4511 | MEMBARRIER_CMD_FLAG_CPU = 1, |
4512 | } |
4513 | #[repr (C, packed)] |
4514 | #[derive (Copy, Clone)] |
4515 | pub struct uffd_msg { |
4516 | pub event: __u8, |
4517 | pub reserved1: __u8, |
4518 | pub reserved2: __u16, |
4519 | pub reserved3: __u32, |
4520 | pub arg: uffd_msg__bindgen_ty_1, |
4521 | } |
4522 | #[repr (C)] |
4523 | #[derive (Copy, Clone)] |
4524 | pub union uffd_msg__bindgen_ty_1 { |
4525 | pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, |
4526 | pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, |
4527 | pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, |
4528 | pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, |
4529 | pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, |
4530 | } |
4531 | #[repr (C)] |
4532 | #[derive (Copy, Clone)] |
4533 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { |
4534 | pub flags: __u64, |
4535 | pub address: __u64, |
4536 | pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, |
4537 | } |
4538 | #[repr (C)] |
4539 | #[derive (Copy, Clone)] |
4540 | pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { |
4541 | pub ptid: __u32, |
4542 | } |
4543 | #[repr (C)] |
4544 | #[derive (Debug, Copy, Clone)] |
4545 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { |
4546 | pub ufd: __u32, |
4547 | } |
4548 | #[repr (C)] |
4549 | #[derive (Debug, Copy, Clone)] |
4550 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { |
4551 | pub from: __u64, |
4552 | pub to: __u64, |
4553 | pub len: __u64, |
4554 | } |
4555 | #[repr (C)] |
4556 | #[derive (Debug, Copy, Clone)] |
4557 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { |
4558 | pub start: __u64, |
4559 | pub end: __u64, |
4560 | } |
4561 | #[repr (C)] |
4562 | #[derive (Debug, Copy, Clone)] |
4563 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { |
4564 | pub reserved1: __u64, |
4565 | pub reserved2: __u64, |
4566 | pub reserved3: __u64, |
4567 | } |
4568 | #[repr (C)] |
4569 | #[derive (Debug, Copy, Clone)] |
4570 | pub struct uffdio_api { |
4571 | pub api: __u64, |
4572 | pub features: __u64, |
4573 | pub ioctls: __u64, |
4574 | } |
4575 | #[repr (C)] |
4576 | #[derive (Debug, Copy, Clone)] |
4577 | pub struct uffdio_range { |
4578 | pub start: __u64, |
4579 | pub len: __u64, |
4580 | } |
4581 | #[repr (C)] |
4582 | #[derive (Debug, Copy, Clone)] |
4583 | pub struct uffdio_register { |
4584 | pub range: uffdio_range, |
4585 | pub mode: __u64, |
4586 | pub ioctls: __u64, |
4587 | } |
4588 | #[repr (C)] |
4589 | #[derive (Debug, Copy, Clone)] |
4590 | pub struct uffdio_copy { |
4591 | pub dst: __u64, |
4592 | pub src: __u64, |
4593 | pub len: __u64, |
4594 | pub mode: __u64, |
4595 | pub copy: __s64, |
4596 | } |
4597 | #[repr (C)] |
4598 | #[derive (Debug, Copy, Clone)] |
4599 | pub struct uffdio_zeropage { |
4600 | pub range: uffdio_range, |
4601 | pub mode: __u64, |
4602 | pub zeropage: __s64, |
4603 | } |
4604 | #[repr (C)] |
4605 | #[derive (Debug, Copy, Clone)] |
4606 | pub struct uffdio_writeprotect { |
4607 | pub range: uffdio_range, |
4608 | pub mode: __u64, |
4609 | } |
4610 | #[repr (C)] |
4611 | #[derive (Debug, Copy, Clone)] |
4612 | pub struct uffdio_continue { |
4613 | pub range: uffdio_range, |
4614 | pub mode: __u64, |
4615 | pub mapped: __s64, |
4616 | } |
4617 | #[repr (C)] |
4618 | pub struct io_uring_sqe { |
4619 | pub opcode: __u8, |
4620 | pub flags: __u8, |
4621 | pub ioprio: __u16, |
4622 | pub fd: __s32, |
4623 | pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, |
4624 | pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, |
4625 | pub len: __u32, |
4626 | pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, |
4627 | pub user_data: __u64, |
4628 | pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, |
4629 | pub personality: __u16, |
4630 | pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, |
4631 | pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, |
4632 | } |
4633 | #[repr (C)] |
4634 | #[derive (Copy, Clone)] |
4635 | pub union io_uring_sqe__bindgen_ty_1 { |
4636 | pub off: __u64, |
4637 | pub addr2: __u64, |
4638 | pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, |
4639 | } |
4640 | #[repr (C)] |
4641 | #[derive (Debug, Copy, Clone)] |
4642 | pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { |
4643 | pub cmd_op: __u32, |
4644 | pub __pad1: __u32, |
4645 | } |
4646 | #[repr (C)] |
4647 | #[derive (Copy, Clone)] |
4648 | pub union io_uring_sqe__bindgen_ty_2 { |
4649 | pub addr: __u64, |
4650 | pub splice_off_in: __u64, |
4651 | } |
4652 | #[repr (C)] |
4653 | #[derive (Copy, Clone)] |
4654 | pub union io_uring_sqe__bindgen_ty_3 { |
4655 | pub rw_flags: __kernel_rwf_t, |
4656 | pub fsync_flags: __u32, |
4657 | pub poll_events: __u16, |
4658 | pub poll32_events: __u32, |
4659 | pub sync_range_flags: __u32, |
4660 | pub msg_flags: __u32, |
4661 | pub timeout_flags: __u32, |
4662 | pub accept_flags: __u32, |
4663 | pub cancel_flags: __u32, |
4664 | pub open_flags: __u32, |
4665 | pub statx_flags: __u32, |
4666 | pub fadvise_advice: __u32, |
4667 | pub splice_flags: __u32, |
4668 | pub rename_flags: __u32, |
4669 | pub unlink_flags: __u32, |
4670 | pub hardlink_flags: __u32, |
4671 | pub xattr_flags: __u32, |
4672 | pub msg_ring_flags: __u32, |
4673 | pub uring_cmd_flags: __u32, |
4674 | } |
4675 | #[repr (C, packed)] |
4676 | #[derive (Copy, Clone)] |
4677 | pub union io_uring_sqe__bindgen_ty_4 { |
4678 | pub buf_index: __u16, |
4679 | pub buf_group: __u16, |
4680 | } |
4681 | #[repr (C)] |
4682 | #[derive (Copy, Clone)] |
4683 | pub union io_uring_sqe__bindgen_ty_5 { |
4684 | pub splice_fd_in: __s32, |
4685 | pub file_index: __u32, |
4686 | pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, |
4687 | } |
4688 | #[repr (C)] |
4689 | #[derive (Debug, Copy, Clone)] |
4690 | pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { |
4691 | pub addr_len: __u16, |
4692 | pub __pad3: [__u16; 1usize], |
4693 | } |
4694 | #[repr (C)] |
4695 | pub struct io_uring_sqe__bindgen_ty_6 { |
4696 | pub __bindgen_anon_1: __BindgenUnionField<io_uring_sqe__bindgen_ty_6__bindgen_ty_1>, |
4697 | pub cmd: __BindgenUnionField<[__u8; 0usize]>, |
4698 | pub bindgen_union_field: [u64; 2usize], |
4699 | } |
4700 | #[repr (C)] |
4701 | #[derive (Debug, Copy, Clone)] |
4702 | pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { |
4703 | pub addr3: __u64, |
4704 | pub __pad2: [__u64; 1usize], |
4705 | } |
4706 | pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_FIXED_FILE_BIT; |
4707 | pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_IO_DRAIN_BIT; |
4708 | pub const IOSQE_IO_LINK_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_IO_LINK_BIT; |
4709 | pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_IO_HARDLINK_BIT; |
4710 | pub const IOSQE_ASYNC_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_ASYNC_BIT; |
4711 | pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_BUFFER_SELECT_BIT; |
4712 | pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_CQE_SKIP_SUCCESS_BIT; |
4713 | #[repr (u32)] |
4714 | #[non_exhaustive ] |
4715 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4716 | pub enum _bindgen_ty_7 { |
4717 | IOSQE_FIXED_FILE_BIT = 0, |
4718 | IOSQE_IO_DRAIN_BIT = 1, |
4719 | IOSQE_IO_LINK_BIT = 2, |
4720 | IOSQE_IO_HARDLINK_BIT = 3, |
4721 | IOSQE_ASYNC_BIT = 4, |
4722 | IOSQE_BUFFER_SELECT_BIT = 5, |
4723 | IOSQE_CQE_SKIP_SUCCESS_BIT = 6, |
4724 | } |
4725 | #[repr (u32)] |
4726 | #[non_exhaustive ] |
4727 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4728 | pub enum io_uring_op { |
4729 | IORING_OP_NOP = 0, |
4730 | IORING_OP_READV = 1, |
4731 | IORING_OP_WRITEV = 2, |
4732 | IORING_OP_FSYNC = 3, |
4733 | IORING_OP_READ_FIXED = 4, |
4734 | IORING_OP_WRITE_FIXED = 5, |
4735 | IORING_OP_POLL_ADD = 6, |
4736 | IORING_OP_POLL_REMOVE = 7, |
4737 | IORING_OP_SYNC_FILE_RANGE = 8, |
4738 | IORING_OP_SENDMSG = 9, |
4739 | IORING_OP_RECVMSG = 10, |
4740 | IORING_OP_TIMEOUT = 11, |
4741 | IORING_OP_TIMEOUT_REMOVE = 12, |
4742 | IORING_OP_ACCEPT = 13, |
4743 | IORING_OP_ASYNC_CANCEL = 14, |
4744 | IORING_OP_LINK_TIMEOUT = 15, |
4745 | IORING_OP_CONNECT = 16, |
4746 | IORING_OP_FALLOCATE = 17, |
4747 | IORING_OP_OPENAT = 18, |
4748 | IORING_OP_CLOSE = 19, |
4749 | IORING_OP_FILES_UPDATE = 20, |
4750 | IORING_OP_STATX = 21, |
4751 | IORING_OP_READ = 22, |
4752 | IORING_OP_WRITE = 23, |
4753 | IORING_OP_FADVISE = 24, |
4754 | IORING_OP_MADVISE = 25, |
4755 | IORING_OP_SEND = 26, |
4756 | IORING_OP_RECV = 27, |
4757 | IORING_OP_OPENAT2 = 28, |
4758 | IORING_OP_EPOLL_CTL = 29, |
4759 | IORING_OP_SPLICE = 30, |
4760 | IORING_OP_PROVIDE_BUFFERS = 31, |
4761 | IORING_OP_REMOVE_BUFFERS = 32, |
4762 | IORING_OP_TEE = 33, |
4763 | IORING_OP_SHUTDOWN = 34, |
4764 | IORING_OP_RENAMEAT = 35, |
4765 | IORING_OP_UNLINKAT = 36, |
4766 | IORING_OP_MKDIRAT = 37, |
4767 | IORING_OP_SYMLINKAT = 38, |
4768 | IORING_OP_LINKAT = 39, |
4769 | IORING_OP_MSG_RING = 40, |
4770 | IORING_OP_FSETXATTR = 41, |
4771 | IORING_OP_SETXATTR = 42, |
4772 | IORING_OP_FGETXATTR = 43, |
4773 | IORING_OP_GETXATTR = 44, |
4774 | IORING_OP_SOCKET = 45, |
4775 | IORING_OP_URING_CMD = 46, |
4776 | IORING_OP_SEND_ZC = 47, |
4777 | IORING_OP_SENDMSG_ZC = 48, |
4778 | IORING_OP_LAST = 49, |
4779 | } |
4780 | pub const IORING_MSG_DATA: _bindgen_ty_8 = _bindgen_ty_8::IORING_MSG_DATA; |
4781 | pub const IORING_MSG_SEND_FD: _bindgen_ty_8 = _bindgen_ty_8::IORING_MSG_SEND_FD; |
4782 | #[repr (u32)] |
4783 | #[non_exhaustive ] |
4784 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4785 | pub enum _bindgen_ty_8 { |
4786 | IORING_MSG_DATA = 0, |
4787 | IORING_MSG_SEND_FD = 1, |
4788 | } |
4789 | #[repr (C)] |
4790 | #[derive (Debug)] |
4791 | pub struct io_uring_cqe { |
4792 | pub user_data: __u64, |
4793 | pub res: __s32, |
4794 | pub flags: __u32, |
4795 | pub big_cqe: __IncompleteArrayField<__u64>, |
4796 | } |
4797 | pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_9 = _bindgen_ty_9::IORING_CQE_BUFFER_SHIFT; |
4798 | #[repr (u32)] |
4799 | #[non_exhaustive ] |
4800 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4801 | pub enum _bindgen_ty_9 { |
4802 | IORING_CQE_BUFFER_SHIFT = 16, |
4803 | } |
4804 | #[repr (C)] |
4805 | #[derive (Debug, Copy, Clone)] |
4806 | pub struct io_sqring_offsets { |
4807 | pub head: __u32, |
4808 | pub tail: __u32, |
4809 | pub ring_mask: __u32, |
4810 | pub ring_entries: __u32, |
4811 | pub flags: __u32, |
4812 | pub dropped: __u32, |
4813 | pub array: __u32, |
4814 | pub resv1: __u32, |
4815 | pub resv2: __u64, |
4816 | } |
4817 | #[repr (C)] |
4818 | #[derive (Debug, Copy, Clone)] |
4819 | pub struct io_cqring_offsets { |
4820 | pub head: __u32, |
4821 | pub tail: __u32, |
4822 | pub ring_mask: __u32, |
4823 | pub ring_entries: __u32, |
4824 | pub overflow: __u32, |
4825 | pub cqes: __u32, |
4826 | pub flags: __u32, |
4827 | pub resv1: __u32, |
4828 | pub resv2: __u64, |
4829 | } |
4830 | #[repr (C)] |
4831 | #[derive (Debug, Copy, Clone)] |
4832 | pub struct io_uring_params { |
4833 | pub sq_entries: __u32, |
4834 | pub cq_entries: __u32, |
4835 | pub flags: __u32, |
4836 | pub sq_thread_cpu: __u32, |
4837 | pub sq_thread_idle: __u32, |
4838 | pub features: __u32, |
4839 | pub wq_fd: __u32, |
4840 | pub resv: [__u32; 3usize], |
4841 | pub sq_off: io_sqring_offsets, |
4842 | pub cq_off: io_cqring_offsets, |
4843 | } |
4844 | pub const IORING_REGISTER_BUFFERS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_BUFFERS; |
4845 | pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_BUFFERS; |
4846 | pub const IORING_REGISTER_FILES: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILES; |
4847 | pub const IORING_UNREGISTER_FILES: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_FILES; |
4848 | pub const IORING_REGISTER_EVENTFD: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_EVENTFD; |
4849 | pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_EVENTFD; |
4850 | pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILES_UPDATE; |
4851 | pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_EVENTFD_ASYNC; |
4852 | pub const IORING_REGISTER_PROBE: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_PROBE; |
4853 | pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_PERSONALITY; |
4854 | pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_PERSONALITY; |
4855 | pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_RESTRICTIONS; |
4856 | pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_ENABLE_RINGS; |
4857 | pub const IORING_REGISTER_FILES2: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILES2; |
4858 | pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILES_UPDATE2; |
4859 | pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_BUFFERS2; |
4860 | pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_BUFFERS_UPDATE; |
4861 | pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_IOWQ_AFF; |
4862 | pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_IOWQ_AFF; |
4863 | pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_IOWQ_MAX_WORKERS; |
4864 | pub const IORING_REGISTER_RING_FDS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_RING_FDS; |
4865 | pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_RING_FDS; |
4866 | pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_PBUF_RING; |
4867 | pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_PBUF_RING; |
4868 | pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_SYNC_CANCEL; |
4869 | pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILE_ALLOC_RANGE; |
4870 | pub const IORING_REGISTER_LAST: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_LAST; |
4871 | pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_USE_REGISTERED_RING; |
4872 | #[repr (u32)] |
4873 | #[non_exhaustive ] |
4874 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4875 | pub enum _bindgen_ty_10 { |
4876 | IORING_REGISTER_BUFFERS = 0, |
4877 | IORING_UNREGISTER_BUFFERS = 1, |
4878 | IORING_REGISTER_FILES = 2, |
4879 | IORING_UNREGISTER_FILES = 3, |
4880 | IORING_REGISTER_EVENTFD = 4, |
4881 | IORING_UNREGISTER_EVENTFD = 5, |
4882 | IORING_REGISTER_FILES_UPDATE = 6, |
4883 | IORING_REGISTER_EVENTFD_ASYNC = 7, |
4884 | IORING_REGISTER_PROBE = 8, |
4885 | IORING_REGISTER_PERSONALITY = 9, |
4886 | IORING_UNREGISTER_PERSONALITY = 10, |
4887 | IORING_REGISTER_RESTRICTIONS = 11, |
4888 | IORING_REGISTER_ENABLE_RINGS = 12, |
4889 | IORING_REGISTER_FILES2 = 13, |
4890 | IORING_REGISTER_FILES_UPDATE2 = 14, |
4891 | IORING_REGISTER_BUFFERS2 = 15, |
4892 | IORING_REGISTER_BUFFERS_UPDATE = 16, |
4893 | IORING_REGISTER_IOWQ_AFF = 17, |
4894 | IORING_UNREGISTER_IOWQ_AFF = 18, |
4895 | IORING_REGISTER_IOWQ_MAX_WORKERS = 19, |
4896 | IORING_REGISTER_RING_FDS = 20, |
4897 | IORING_UNREGISTER_RING_FDS = 21, |
4898 | IORING_REGISTER_PBUF_RING = 22, |
4899 | IORING_UNREGISTER_PBUF_RING = 23, |
4900 | IORING_REGISTER_SYNC_CANCEL = 24, |
4901 | IORING_REGISTER_FILE_ALLOC_RANGE = 25, |
4902 | IORING_REGISTER_LAST = 26, |
4903 | IORING_REGISTER_USE_REGISTERED_RING = 2147483648, |
4904 | } |
4905 | pub const IO_WQ_BOUND: _bindgen_ty_11 = _bindgen_ty_11::IO_WQ_BOUND; |
4906 | pub const IO_WQ_UNBOUND: _bindgen_ty_11 = _bindgen_ty_11::IO_WQ_UNBOUND; |
4907 | #[repr (u32)] |
4908 | #[non_exhaustive ] |
4909 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
4910 | pub enum _bindgen_ty_11 { |
4911 | IO_WQ_BOUND = 0, |
4912 | IO_WQ_UNBOUND = 1, |
4913 | } |
4914 | #[repr (C)] |
4915 | #[derive (Debug, Copy, Clone)] |
4916 | pub struct io_uring_files_update { |
4917 | pub offset: __u32, |
4918 | pub resv: __u32, |
4919 | pub fds: __u64, |
4920 | } |
4921 | #[repr (C)] |
4922 | #[derive (Debug, Copy, Clone)] |
4923 | pub struct io_uring_rsrc_register { |
4924 | pub nr: __u32, |
4925 | pub flags: __u32, |
4926 | pub resv2: __u64, |
4927 | pub data: __u64, |
4928 | pub tags: __u64, |
4929 | } |
4930 | #[repr (C)] |
4931 | #[derive (Debug, Copy, Clone)] |
4932 | pub struct io_uring_rsrc_update { |
4933 | pub offset: __u32, |
4934 | pub resv: __u32, |
4935 | pub data: __u64, |
4936 | } |
4937 | #[repr (C)] |
4938 | #[derive (Debug, Copy, Clone)] |
4939 | pub struct io_uring_rsrc_update2 { |
4940 | pub offset: __u32, |
4941 | pub resv: __u32, |
4942 | pub data: __u64, |
4943 | pub tags: __u64, |
4944 | pub nr: __u32, |
4945 | pub resv2: __u32, |
4946 | } |
4947 | #[repr (C)] |
4948 | #[derive (Debug, Copy, Clone)] |
4949 | pub struct io_uring_notification_slot { |
4950 | pub tag: __u64, |
4951 | pub resv: [__u64; 3usize], |
4952 | } |
4953 | #[repr (C)] |
4954 | #[derive (Debug, Copy, Clone)] |
4955 | pub struct io_uring_notification_register { |
4956 | pub nr_slots: __u32, |
4957 | pub resv: __u32, |
4958 | pub resv2: __u64, |
4959 | pub data: __u64, |
4960 | pub resv3: __u64, |
4961 | } |
4962 | #[repr (C)] |
4963 | #[derive (Debug, Copy, Clone)] |
4964 | pub struct io_uring_probe_op { |
4965 | pub op: __u8, |
4966 | pub resv: __u8, |
4967 | pub flags: __u16, |
4968 | pub resv2: __u32, |
4969 | } |
4970 | #[repr (C)] |
4971 | #[derive (Debug)] |
4972 | pub struct io_uring_probe { |
4973 | pub last_op: __u8, |
4974 | pub ops_len: __u8, |
4975 | pub resv: __u16, |
4976 | pub resv2: [__u32; 3usize], |
4977 | pub ops: __IncompleteArrayField<io_uring_probe_op>, |
4978 | } |
4979 | #[repr (C)] |
4980 | #[derive (Copy, Clone)] |
4981 | pub struct io_uring_restriction { |
4982 | pub opcode: __u16, |
4983 | pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, |
4984 | pub resv: __u8, |
4985 | pub resv2: [__u32; 3usize], |
4986 | } |
4987 | #[repr (C)] |
4988 | #[derive (Copy, Clone)] |
4989 | pub union io_uring_restriction__bindgen_ty_1 { |
4990 | pub register_op: __u8, |
4991 | pub sqe_op: __u8, |
4992 | pub sqe_flags: __u8, |
4993 | } |
4994 | #[repr (C)] |
4995 | #[derive (Debug, Copy, Clone)] |
4996 | pub struct io_uring_buf { |
4997 | pub addr: __u64, |
4998 | pub len: __u32, |
4999 | pub bid: __u16, |
5000 | pub resv: __u16, |
5001 | } |
5002 | #[repr (C)] |
5003 | pub struct io_uring_buf_ring { |
5004 | pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, |
5005 | } |
5006 | #[repr (C)] |
5007 | pub struct io_uring_buf_ring__bindgen_ty_1 { |
5008 | pub __bindgen_anon_1: __BindgenUnionField<io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1>, |
5009 | pub __bindgen_anon_2: __BindgenUnionField<io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2>, |
5010 | pub bindgen_union_field: [u64; 2usize], |
5011 | } |
5012 | #[repr (C)] |
5013 | #[derive (Debug, Copy, Clone)] |
5014 | pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { |
5015 | pub resv1: __u64, |
5016 | pub resv2: __u32, |
5017 | pub resv3: __u16, |
5018 | pub tail: __u16, |
5019 | } |
5020 | #[repr (C)] |
5021 | #[derive (Debug)] |
5022 | pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { |
5023 | pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, |
5024 | pub bufs: __IncompleteArrayField<io_uring_buf>, |
5025 | } |
5026 | #[repr (C)] |
5027 | #[derive (Debug, Copy, Clone)] |
5028 | pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} |
5029 | #[repr (C)] |
5030 | #[derive (Debug, Copy, Clone)] |
5031 | pub struct io_uring_buf_reg { |
5032 | pub ring_addr: __u64, |
5033 | pub ring_entries: __u32, |
5034 | pub bgid: __u16, |
5035 | pub pad: __u16, |
5036 | pub resv: [__u64; 3usize], |
5037 | } |
5038 | pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_REGISTER_OP; |
5039 | pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_SQE_OP; |
5040 | pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; |
5041 | pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; |
5042 | pub const IORING_RESTRICTION_LAST: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_LAST; |
5043 | #[repr (u32)] |
5044 | #[non_exhaustive ] |
5045 | #[derive (Debug, Copy, Clone, Hash, PartialEq, Eq)] |
5046 | pub enum _bindgen_ty_12 { |
5047 | IORING_RESTRICTION_REGISTER_OP = 0, |
5048 | IORING_RESTRICTION_SQE_OP = 1, |
5049 | IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, |
5050 | IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, |
5051 | IORING_RESTRICTION_LAST = 4, |
5052 | } |
5053 | #[repr (C)] |
5054 | #[derive (Debug, Copy, Clone)] |
5055 | pub struct io_uring_getevents_arg { |
5056 | pub sigmask: __u64, |
5057 | pub sigmask_sz: __u32, |
5058 | pub pad: __u32, |
5059 | pub ts: __u64, |
5060 | } |
5061 | #[repr (C)] |
5062 | #[derive (Debug, Copy, Clone)] |
5063 | pub struct io_uring_sync_cancel_reg { |
5064 | pub addr: __u64, |
5065 | pub fd: __s32, |
5066 | pub flags: __u32, |
5067 | pub timeout: __kernel_timespec, |
5068 | pub pad: [__u64; 4usize], |
5069 | } |
5070 | #[repr (C)] |
5071 | #[derive (Debug, Copy, Clone)] |
5072 | pub struct io_uring_file_index_range { |
5073 | pub off: __u32, |
5074 | pub len: __u32, |
5075 | pub resv: __u64, |
5076 | } |
5077 | #[repr (C)] |
5078 | #[derive (Debug, Copy, Clone)] |
5079 | pub struct io_uring_recvmsg_out { |
5080 | pub namelen: __u32, |
5081 | pub controllen: __u32, |
5082 | pub payloadlen: __u32, |
5083 | pub flags: __u32, |
5084 | } |
5085 | #[repr (C)] |
5086 | #[derive (Copy, Clone)] |
5087 | pub struct sockaddr { |
5088 | pub __storage: __kernel_sockaddr_storage, |
5089 | } |
5090 | #[repr (C)] |
5091 | #[derive (Debug, Copy, Clone)] |
5092 | pub struct linger { |
5093 | pub l_onoff: crate::ctypes::c_int, |
5094 | pub l_linger: crate::ctypes::c_int, |
5095 | } |
5096 | #[repr (C)] |
5097 | #[derive (Debug)] |
5098 | pub struct linux_dirent64 { |
5099 | pub d_ino: crate::ctypes::c_ulong, |
5100 | pub d_off: crate::ctypes::c_long, |
5101 | pub d_reclen: __u16, |
5102 | pub d_type: __u8, |
5103 | pub d_name: __IncompleteArrayField<crate::ctypes::c_char>, |
5104 | } |
5105 | pub type socklen_t = crate::ctypes::c_uint; |
5106 | #[repr (C)] |
5107 | #[derive (Debug, Copy, Clone)] |
5108 | pub struct stat { |
5109 | pub st_dev: __kernel_ulong_t, |
5110 | pub st_ino: __kernel_ulong_t, |
5111 | pub st_nlink: __kernel_ulong_t, |
5112 | pub st_mode: crate::ctypes::c_uint, |
5113 | pub st_uid: crate::ctypes::c_uint, |
5114 | pub st_gid: crate::ctypes::c_uint, |
5115 | pub __pad0: crate::ctypes::c_uint, |
5116 | pub st_rdev: __kernel_ulong_t, |
5117 | pub st_size: __kernel_long_t, |
5118 | pub st_blksize: __kernel_long_t, |
5119 | pub st_blocks: __kernel_long_t, |
5120 | pub st_atime: __kernel_ulong_t, |
5121 | pub st_atime_nsec: __kernel_ulong_t, |
5122 | pub st_mtime: __kernel_ulong_t, |
5123 | pub st_mtime_nsec: __kernel_ulong_t, |
5124 | pub st_ctime: __kernel_ulong_t, |
5125 | pub st_ctime_nsec: __kernel_ulong_t, |
5126 | pub __unused: [__kernel_long_t; 3usize], |
5127 | } |
5128 | #[repr (C)] |
5129 | #[derive (Debug, Copy, Clone)] |
5130 | pub struct __old_kernel_stat { |
5131 | pub st_dev: crate::ctypes::c_ushort, |
5132 | pub st_ino: crate::ctypes::c_ushort, |
5133 | pub st_mode: crate::ctypes::c_ushort, |
5134 | pub st_nlink: crate::ctypes::c_ushort, |
5135 | pub st_uid: crate::ctypes::c_ushort, |
5136 | pub st_gid: crate::ctypes::c_ushort, |
5137 | pub st_rdev: crate::ctypes::c_ushort, |
5138 | pub st_size: crate::ctypes::c_uint, |
5139 | pub st_atime: crate::ctypes::c_uint, |
5140 | pub st_mtime: crate::ctypes::c_uint, |
5141 | pub st_ctime: crate::ctypes::c_uint, |
5142 | } |
5143 | #[repr (C)] |
5144 | #[derive (Debug, Copy, Clone)] |
5145 | pub struct statfs { |
5146 | pub f_type: __kernel_long_t, |
5147 | pub f_bsize: __kernel_long_t, |
5148 | pub f_blocks: __kernel_long_t, |
5149 | pub f_bfree: __kernel_long_t, |
5150 | pub f_bavail: __kernel_long_t, |
5151 | pub f_files: __kernel_long_t, |
5152 | pub f_ffree: __kernel_long_t, |
5153 | pub f_fsid: __kernel_fsid_t, |
5154 | pub f_namelen: __kernel_long_t, |
5155 | pub f_frsize: __kernel_long_t, |
5156 | pub f_flags: __kernel_long_t, |
5157 | pub f_spare: [__kernel_long_t; 4usize], |
5158 | } |
5159 | #[repr (C)] |
5160 | #[derive (Debug, Copy, Clone)] |
5161 | pub struct statfs64 { |
5162 | pub f_type: __kernel_long_t, |
5163 | pub f_bsize: __kernel_long_t, |
5164 | pub f_blocks: __u64, |
5165 | pub f_bfree: __u64, |
5166 | pub f_bavail: __u64, |
5167 | pub f_files: __u64, |
5168 | pub f_ffree: __u64, |
5169 | pub f_fsid: __kernel_fsid_t, |
5170 | pub f_namelen: __kernel_long_t, |
5171 | pub f_frsize: __kernel_long_t, |
5172 | pub f_flags: __kernel_long_t, |
5173 | pub f_spare: [__kernel_long_t; 4usize], |
5174 | } |
5175 | #[repr (C, packed(4))] |
5176 | #[derive (Debug, Copy, Clone)] |
5177 | pub struct compat_statfs64 { |
5178 | pub f_type: __u32, |
5179 | pub f_bsize: __u32, |
5180 | pub f_blocks: __u64, |
5181 | pub f_bfree: __u64, |
5182 | pub f_bavail: __u64, |
5183 | pub f_files: __u64, |
5184 | pub f_ffree: __u64, |
5185 | pub f_fsid: __kernel_fsid_t, |
5186 | pub f_namelen: __u32, |
5187 | pub f_frsize: __u32, |
5188 | pub f_flags: __u32, |
5189 | pub f_spare: [__u32; 4usize], |
5190 | } |
5191 | pub type __fsword_t = __kernel_long_t; |
5192 | #[repr (C)] |
5193 | #[derive (Debug, Copy, Clone)] |
5194 | pub struct user_desc { |
5195 | pub entry_number: crate::ctypes::c_uint, |
5196 | pub base_addr: crate::ctypes::c_uint, |
5197 | pub limit: crate::ctypes::c_uint, |
5198 | pub _bitfield_align_1: [u8; 0], |
5199 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, |
5200 | pub __bindgen_padding_0: [u8; 3usize], |
5201 | } |
5202 | impl user_desc { |
5203 | #[inline ] |
5204 | pub fn seg_32bit(&self) -> crate::ctypes::c_uint { |
5205 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } |
5206 | } |
5207 | #[inline ] |
5208 | pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { |
5209 | unsafe { |
5210 | let val: u32 = ::core::mem::transmute(val); |
5211 | self._bitfield_1.set(0usize, 1u8, val as u64) |
5212 | } |
5213 | } |
5214 | #[inline ] |
5215 | pub fn contents(&self) -> crate::ctypes::c_uint { |
5216 | unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } |
5217 | } |
5218 | #[inline ] |
5219 | pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { |
5220 | unsafe { |
5221 | let val: u32 = ::core::mem::transmute(val); |
5222 | self._bitfield_1.set(1usize, 2u8, val as u64) |
5223 | } |
5224 | } |
5225 | #[inline ] |
5226 | pub fn read_exec_only(&self) -> crate::ctypes::c_uint { |
5227 | unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } |
5228 | } |
5229 | #[inline ] |
5230 | pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { |
5231 | unsafe { |
5232 | let val: u32 = ::core::mem::transmute(val); |
5233 | self._bitfield_1.set(3usize, 1u8, val as u64) |
5234 | } |
5235 | } |
5236 | #[inline ] |
5237 | pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { |
5238 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } |
5239 | } |
5240 | #[inline ] |
5241 | pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { |
5242 | unsafe { |
5243 | let val: u32 = ::core::mem::transmute(val); |
5244 | self._bitfield_1.set(4usize, 1u8, val as u64) |
5245 | } |
5246 | } |
5247 | #[inline ] |
5248 | pub fn seg_not_present(&self) -> crate::ctypes::c_uint { |
5249 | unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } |
5250 | } |
5251 | #[inline ] |
5252 | pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { |
5253 | unsafe { |
5254 | let val: u32 = ::core::mem::transmute(val); |
5255 | self._bitfield_1.set(5usize, 1u8, val as u64) |
5256 | } |
5257 | } |
5258 | #[inline ] |
5259 | pub fn useable(&self) -> crate::ctypes::c_uint { |
5260 | unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } |
5261 | } |
5262 | #[inline ] |
5263 | pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { |
5264 | unsafe { |
5265 | let val: u32 = ::core::mem::transmute(val); |
5266 | self._bitfield_1.set(6usize, 1u8, val as u64) |
5267 | } |
5268 | } |
5269 | #[inline ] |
5270 | pub fn lm(&self) -> crate::ctypes::c_uint { |
5271 | unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } |
5272 | } |
5273 | #[inline ] |
5274 | pub fn set_lm(&mut self, val: crate::ctypes::c_uint) { |
5275 | unsafe { |
5276 | let val: u32 = ::core::mem::transmute(val); |
5277 | self._bitfield_1.set(7usize, 1u8, val as u64) |
5278 | } |
5279 | } |
5280 | #[inline ] |
5281 | pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint, lm: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { |
5282 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); |
5283 | __bindgen_bitfield_unit.set(0usize, 1u8, { |
5284 | let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; |
5285 | seg_32bit as u64 |
5286 | }); |
5287 | __bindgen_bitfield_unit.set(1usize, 2u8, { |
5288 | let contents: u32 = unsafe { ::core::mem::transmute(contents) }; |
5289 | contents as u64 |
5290 | }); |
5291 | __bindgen_bitfield_unit.set(3usize, 1u8, { |
5292 | let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; |
5293 | read_exec_only as u64 |
5294 | }); |
5295 | __bindgen_bitfield_unit.set(4usize, 1u8, { |
5296 | let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; |
5297 | limit_in_pages as u64 |
5298 | }); |
5299 | __bindgen_bitfield_unit.set(5usize, 1u8, { |
5300 | let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; |
5301 | seg_not_present as u64 |
5302 | }); |
5303 | __bindgen_bitfield_unit.set(6usize, 1u8, { |
5304 | let useable: u32 = unsafe { ::core::mem::transmute(useable) }; |
5305 | useable as u64 |
5306 | }); |
5307 | __bindgen_bitfield_unit.set(7usize, 1u8, { |
5308 | let lm: u32 = unsafe { ::core::mem::transmute(lm) }; |
5309 | lm as u64 |
5310 | }); |
5311 | __bindgen_bitfield_unit |
5312 | } |
5313 | } |
5314 | #[repr (C)] |
5315 | #[derive (Debug, Copy, Clone)] |
5316 | pub struct msghdr { |
5317 | pub msg_name: *mut crate::ctypes::c_void, |
5318 | pub msg_namelen: crate::ctypes::c_int, |
5319 | pub msg_iov: *mut iovec, |
5320 | pub msg_iovlen: size_t, |
5321 | pub msg_control: *mut crate::ctypes::c_void, |
5322 | pub msg_controllen: size_t, |
5323 | pub msg_flags: crate::ctypes::c_uint, |
5324 | } |
5325 | #[repr (C)] |
5326 | #[derive (Debug, Copy, Clone)] |
5327 | pub struct cmsghdr { |
5328 | pub cmsg_len: size_t, |
5329 | pub cmsg_level: crate::ctypes::c_int, |
5330 | pub cmsg_type: crate::ctypes::c_int, |
5331 | } |
5332 | #[repr (C)] |
5333 | #[derive (Debug, Copy, Clone)] |
5334 | pub struct ucred { |
5335 | pub pid: __u32, |
5336 | pub uid: __u32, |
5337 | pub gid: __u32, |
5338 | } |
5339 | #[repr (C)] |
5340 | #[derive (Debug, Copy, Clone)] |
5341 | pub struct mmsghdr { |
5342 | pub msg_hdr: msghdr, |
5343 | pub msg_len: crate::ctypes::c_uint, |
5344 | } |
5345 | #[repr (C)] |
5346 | #[derive (Debug, Copy, Clone)] |
5347 | pub struct kernel_sigset_t { |
5348 | pub sig: [crate::ctypes::c_ulong; 1usize], |
5349 | } |
5350 | #[repr (C)] |
5351 | #[derive (Debug, Copy, Clone)] |
5352 | pub struct kernel_sigaction { |
5353 | pub sa_handler_kernel: __kernel_sighandler_t, |
5354 | pub sa_flags: crate::ctypes::c_ulong, |
5355 | pub sa_restorer: __sigrestore_t, |
5356 | pub sa_mask: kernel_sigset_t, |
5357 | } |
5358 | |