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