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