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