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