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