cnproc/
binding.rs

1/* automatically generated by rust-bindgen */
2
3#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, unused)]use libc::*;
4type __be16 = u16;
5type __be32 = u32;
6type __be64 = u64;
7
8#[repr(C)]
9#[derive(Default)]
10pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
11impl<T> __IncompleteArrayField<T> {
12    #[inline]
13    pub const fn new() -> Self {
14        __IncompleteArrayField(::core::marker::PhantomData, [])
15    }
16    #[inline]
17    pub fn as_ptr(&self) -> *const T {
18        self as *const _ as *const T
19    }
20    #[inline]
21    pub fn as_mut_ptr(&mut self) -> *mut T {
22        self as *mut _ as *mut T
23    }
24    #[inline]
25    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
26        ::core::slice::from_raw_parts(self.as_ptr(), len)
27    }
28    #[inline]
29    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
30        ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
31    }
32}
33impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
34    fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
35        fmt.write_str("__IncompleteArrayField")
36    }
37}
38pub const __BITS_PER_LONG: u32 = 64;
39pub const __FD_SETSIZE: u32 = 1024;
40pub const CN_IDX_PROC: u32 = 1;
41pub const CN_VAL_PROC: u32 = 1;
42pub const CN_IDX_CIFS: u32 = 2;
43pub const CN_VAL_CIFS: u32 = 1;
44pub const CN_W1_IDX: u32 = 3;
45pub const CN_W1_VAL: u32 = 1;
46pub const CN_IDX_V86D: u32 = 4;
47pub const CN_VAL_V86D_UVESAFB: u32 = 1;
48pub const CN_IDX_BB: u32 = 5;
49pub const CN_DST_IDX: u32 = 6;
50pub const CN_DST_VAL: u32 = 1;
51pub const CN_IDX_DM: u32 = 7;
52pub const CN_VAL_DM_USERSPACE_LOG: u32 = 1;
53pub const CN_IDX_DRBD: u32 = 8;
54pub const CN_VAL_DRBD: u32 = 1;
55pub const CN_KVP_IDX: u32 = 9;
56pub const CN_KVP_VAL: u32 = 1;
57pub const CN_VSS_IDX: u32 = 10;
58pub const CN_VSS_VAL: u32 = 1;
59pub const CN_NETLINK_USERS: u32 = 11;
60pub const CONNECTOR_MAX_MSG_SIZE: u32 = 16384;
61pub const SI_LOAD_SHIFT: u32 = 16;
62pub const _K_SS_MAXSIZE: u32 = 128;
63pub const NETLINK_ROUTE: u32 = 0;
64pub const NETLINK_UNUSED: u32 = 1;
65pub const NETLINK_USERSOCK: u32 = 2;
66pub const NETLINK_FIREWALL: u32 = 3;
67pub const NETLINK_SOCK_DIAG: u32 = 4;
68pub const NETLINK_NFLOG: u32 = 5;
69pub const NETLINK_XFRM: u32 = 6;
70pub const NETLINK_SELINUX: u32 = 7;
71pub const NETLINK_ISCSI: u32 = 8;
72pub const NETLINK_AUDIT: u32 = 9;
73pub const NETLINK_FIB_LOOKUP: u32 = 10;
74pub const NETLINK_CONNECTOR: u32 = 11;
75pub const NETLINK_NETFILTER: u32 = 12;
76pub const NETLINK_IP6_FW: u32 = 13;
77pub const NETLINK_DNRTMSG: u32 = 14;
78pub const NETLINK_KOBJECT_UEVENT: u32 = 15;
79pub const NETLINK_GENERIC: u32 = 16;
80pub const NETLINK_SCSITRANSPORT: u32 = 18;
81pub const NETLINK_ECRYPTFS: u32 = 19;
82pub const NETLINK_RDMA: u32 = 20;
83pub const NETLINK_CRYPTO: u32 = 21;
84pub const NETLINK_SMC: u32 = 22;
85pub const NETLINK_INET_DIAG: u32 = 4;
86pub const MAX_LINKS: u32 = 32;
87pub const NLM_F_REQUEST: u32 = 1;
88pub const NLM_F_MULTI: u32 = 2;
89pub const NLM_F_ACK: u32 = 4;
90pub const NLM_F_ECHO: u32 = 8;
91pub const NLM_F_DUMP_INTR: u32 = 16;
92pub const NLM_F_DUMP_FILTERED: u32 = 32;
93pub const NLM_F_ROOT: u32 = 256;
94pub const NLM_F_MATCH: u32 = 512;
95pub const NLM_F_ATOMIC: u32 = 1024;
96pub const NLM_F_DUMP: u32 = 768;
97pub const NLM_F_REPLACE: u32 = 256;
98pub const NLM_F_EXCL: u32 = 512;
99pub const NLM_F_CREATE: u32 = 1024;
100pub const NLM_F_APPEND: u32 = 2048;
101pub const NLM_F_NONREC: u32 = 256;
102pub const NLM_F_CAPPED: u32 = 256;
103pub const NLM_F_ACK_TLVS: u32 = 512;
104pub const NLMSG_ALIGNTO: u32 = 4;
105pub const NLMSG_NOOP: u32 = 1;
106pub const NLMSG_ERROR: u32 = 2;
107pub const NLMSG_DONE: u32 = 3;
108pub const NLMSG_OVERRUN: u32 = 4;
109pub const NLMSG_MIN_TYPE: u32 = 16;
110pub const NETLINK_ADD_MEMBERSHIP: u32 = 1;
111pub const NETLINK_DROP_MEMBERSHIP: u32 = 2;
112pub const NETLINK_PKTINFO: u32 = 3;
113pub const NETLINK_BROADCAST_ERROR: u32 = 4;
114pub const NETLINK_NO_ENOBUFS: u32 = 5;
115pub const NETLINK_RX_RING: u32 = 6;
116pub const NETLINK_TX_RING: u32 = 7;
117pub const NETLINK_LISTEN_ALL_NSID: u32 = 8;
118pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9;
119pub const NETLINK_CAP_ACK: u32 = 10;
120pub const NETLINK_EXT_ACK: u32 = 11;
121pub const NETLINK_GET_STRICT_CHK: u32 = 12;
122pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4;
123pub const NET_MAJOR: u32 = 36;
124pub const NLA_F_NESTED: u32 = 32768;
125pub const NLA_F_NET_BYTEORDER: u32 = 16384;
126pub const NLA_TYPE_MASK: i32 = -49153;
127pub const NLA_ALIGNTO: u32 = 4;
128pub type __s8 = libc::c_schar;
129pub type __u8 = libc::c_uchar;
130pub type __s16 = libc::c_short;
131pub type __u16 = libc::c_ushort;
132pub type __s32 = libc::c_int;
133pub type __u32 = libc::c_uint;
134pub type __s64 = libc::c_longlong;
135pub type __u64 = libc::c_ulonglong;
136#[repr(C)]
137#[derive(Debug, Copy, Clone)]
138pub struct __kernel_fd_set {
139    pub fds_bits: [libc::c_ulong; 16usize],
140}
141#[test]
142fn bindgen_test_layout___kernel_fd_set() {
143    assert_eq!(
144        ::core::mem::size_of::<__kernel_fd_set>(),
145        128usize,
146        concat!("Size of: ", stringify!(__kernel_fd_set))
147    );
148    assert_eq!(
149        ::core::mem::align_of::<__kernel_fd_set>(),
150        8usize,
151        concat!("Alignment of ", stringify!(__kernel_fd_set))
152    );
153    assert_eq!(
154        unsafe { &(*(::core::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize },
155        0usize,
156        concat!(
157            "Offset of field: ",
158            stringify!(__kernel_fd_set),
159            "::",
160            stringify!(fds_bits)
161        )
162    );
163}
164pub type __kernel_sighandler_t = ::core::option::Option<unsafe extern "C" fn(arg1: libc::c_int)>;
165pub type __kernel_key_t = libc::c_int;
166pub type __kernel_mqd_t = libc::c_int;
167pub type __kernel_old_uid_t = libc::c_ushort;
168pub type __kernel_old_gid_t = libc::c_ushort;
169pub type __kernel_old_dev_t = libc::c_ulong;
170pub type __kernel_long_t = libc::c_long;
171pub type __kernel_ulong_t = libc::c_ulong;
172pub type __kernel_ino_t = __kernel_ulong_t;
173pub type __kernel_mode_t = libc::c_uint;
174pub type __kernel_pid_t = libc::c_int;
175pub type __kernel_ipc_pid_t = libc::c_int;
176pub type __kernel_uid_t = libc::c_uint;
177pub type __kernel_gid_t = libc::c_uint;
178pub type __kernel_suseconds_t = __kernel_long_t;
179pub type __kernel_daddr_t = libc::c_int;
180pub type __kernel_uid32_t = libc::c_uint;
181pub type __kernel_gid32_t = libc::c_uint;
182pub type __kernel_size_t = __kernel_ulong_t;
183pub type __kernel_ssize_t = __kernel_long_t;
184pub type __kernel_ptrdiff_t = __kernel_long_t;
185#[repr(C)]
186#[derive(Debug, Copy, Clone)]
187pub struct __kernel_fsid_t {
188    pub val: [libc::c_int; 2usize],
189}
190#[test]
191fn bindgen_test_layout___kernel_fsid_t() {
192    assert_eq!(
193        ::core::mem::size_of::<__kernel_fsid_t>(),
194        8usize,
195        concat!("Size of: ", stringify!(__kernel_fsid_t))
196    );
197    assert_eq!(
198        ::core::mem::align_of::<__kernel_fsid_t>(),
199        4usize,
200        concat!("Alignment of ", stringify!(__kernel_fsid_t))
201    );
202    assert_eq!(
203        unsafe { &(*(::core::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize },
204        0usize,
205        concat!(
206            "Offset of field: ",
207            stringify!(__kernel_fsid_t),
208            "::",
209            stringify!(val)
210        )
211    );
212}
213pub type __kernel_off_t = __kernel_long_t;
214pub type __kernel_loff_t = libc::c_longlong;
215pub type __kernel_time_t = __kernel_long_t;
216pub type __kernel_time64_t = libc::c_longlong;
217pub type __kernel_clock_t = __kernel_long_t;
218pub type __kernel_timer_t = libc::c_int;
219pub type __kernel_clockid_t = libc::c_int;
220pub type __kernel_caddr_t = *mut libc::c_char;
221pub type __kernel_uid16_t = libc::c_ushort;
222pub type __kernel_gid16_t = libc::c_ushort;
223pub type __le16 = __u16;
224pub type __le32 = __u32;
225pub type __le64 = __u64;
226pub type __sum16 = __u16;
227pub type __wsum = __u32;
228pub type __poll_t = libc::c_uint;
229#[repr(C)]
230#[derive(Debug, Copy, Clone)]
231pub struct cb_id {
232    pub idx: __u32,
233    pub val: __u32,
234}
235#[test]
236fn bindgen_test_layout_cb_id() {
237    assert_eq!(
238        ::core::mem::size_of::<cb_id>(),
239        8usize,
240        concat!("Size of: ", stringify!(cb_id))
241    );
242    assert_eq!(
243        ::core::mem::align_of::<cb_id>(),
244        4usize,
245        concat!("Alignment of ", stringify!(cb_id))
246    );
247    assert_eq!(
248        unsafe { &(*(::core::ptr::null::<cb_id>())).idx as *const _ as usize },
249        0usize,
250        concat!(
251            "Offset of field: ",
252            stringify!(cb_id),
253            "::",
254            stringify!(idx)
255        )
256    );
257    assert_eq!(
258        unsafe { &(*(::core::ptr::null::<cb_id>())).val as *const _ as usize },
259        4usize,
260        concat!(
261            "Offset of field: ",
262            stringify!(cb_id),
263            "::",
264            stringify!(val)
265        )
266    );
267}
268#[repr(C)]
269#[derive(Debug)]
270pub struct cn_msg {
271    pub id: cb_id,
272    pub seq: __u32,
273    pub ack: __u32,
274    pub len: __u16,
275    pub flags: __u16,
276    pub data: __IncompleteArrayField<__u8>,
277}
278#[test]
279fn bindgen_test_layout_cn_msg() {
280    assert_eq!(
281        ::core::mem::size_of::<cn_msg>(),
282        20usize,
283        concat!("Size of: ", stringify!(cn_msg))
284    );
285    assert_eq!(
286        ::core::mem::align_of::<cn_msg>(),
287        4usize,
288        concat!("Alignment of ", stringify!(cn_msg))
289    );
290    assert_eq!(
291        unsafe { &(*(::core::ptr::null::<cn_msg>())).id as *const _ as usize },
292        0usize,
293        concat!(
294            "Offset of field: ",
295            stringify!(cn_msg),
296            "::",
297            stringify!(id)
298        )
299    );
300    assert_eq!(
301        unsafe { &(*(::core::ptr::null::<cn_msg>())).seq as *const _ as usize },
302        8usize,
303        concat!(
304            "Offset of field: ",
305            stringify!(cn_msg),
306            "::",
307            stringify!(seq)
308        )
309    );
310    assert_eq!(
311        unsafe { &(*(::core::ptr::null::<cn_msg>())).ack as *const _ as usize },
312        12usize,
313        concat!(
314            "Offset of field: ",
315            stringify!(cn_msg),
316            "::",
317            stringify!(ack)
318        )
319    );
320    assert_eq!(
321        unsafe { &(*(::core::ptr::null::<cn_msg>())).len as *const _ as usize },
322        16usize,
323        concat!(
324            "Offset of field: ",
325            stringify!(cn_msg),
326            "::",
327            stringify!(len)
328        )
329    );
330    assert_eq!(
331        unsafe { &(*(::core::ptr::null::<cn_msg>())).flags as *const _ as usize },
332        18usize,
333        concat!(
334            "Offset of field: ",
335            stringify!(cn_msg),
336            "::",
337            stringify!(flags)
338        )
339    );
340    assert_eq!(
341        unsafe { &(*(::core::ptr::null::<cn_msg>())).data as *const _ as usize },
342        20usize,
343        concat!(
344            "Offset of field: ",
345            stringify!(cn_msg),
346            "::",
347            stringify!(data)
348        )
349    );
350}
351#[repr(C)]
352#[derive(Debug)]
353pub struct sysinfo {
354    pub uptime: __kernel_long_t,
355    pub loads: [__kernel_ulong_t; 3usize],
356    pub totalram: __kernel_ulong_t,
357    pub freeram: __kernel_ulong_t,
358    pub sharedram: __kernel_ulong_t,
359    pub bufferram: __kernel_ulong_t,
360    pub totalswap: __kernel_ulong_t,
361    pub freeswap: __kernel_ulong_t,
362    pub procs: __u16,
363    pub pad: __u16,
364    pub totalhigh: __kernel_ulong_t,
365    pub freehigh: __kernel_ulong_t,
366    pub mem_unit: __u32,
367    pub _f: __IncompleteArrayField<libc::c_char>,
368}
369#[test]
370fn bindgen_test_layout_sysinfo() {
371    assert_eq!(
372        ::core::mem::size_of::<sysinfo>(),
373        112usize,
374        concat!("Size of: ", stringify!(sysinfo))
375    );
376    assert_eq!(
377        ::core::mem::align_of::<sysinfo>(),
378        8usize,
379        concat!("Alignment of ", stringify!(sysinfo))
380    );
381    assert_eq!(
382        unsafe { &(*(::core::ptr::null::<sysinfo>())).uptime as *const _ as usize },
383        0usize,
384        concat!(
385            "Offset of field: ",
386            stringify!(sysinfo),
387            "::",
388            stringify!(uptime)
389        )
390    );
391    assert_eq!(
392        unsafe { &(*(::core::ptr::null::<sysinfo>())).loads as *const _ as usize },
393        8usize,
394        concat!(
395            "Offset of field: ",
396            stringify!(sysinfo),
397            "::",
398            stringify!(loads)
399        )
400    );
401    assert_eq!(
402        unsafe { &(*(::core::ptr::null::<sysinfo>())).totalram as *const _ as usize },
403        32usize,
404        concat!(
405            "Offset of field: ",
406            stringify!(sysinfo),
407            "::",
408            stringify!(totalram)
409        )
410    );
411    assert_eq!(
412        unsafe { &(*(::core::ptr::null::<sysinfo>())).freeram as *const _ as usize },
413        40usize,
414        concat!(
415            "Offset of field: ",
416            stringify!(sysinfo),
417            "::",
418            stringify!(freeram)
419        )
420    );
421    assert_eq!(
422        unsafe { &(*(::core::ptr::null::<sysinfo>())).sharedram as *const _ as usize },
423        48usize,
424        concat!(
425            "Offset of field: ",
426            stringify!(sysinfo),
427            "::",
428            stringify!(sharedram)
429        )
430    );
431    assert_eq!(
432        unsafe { &(*(::core::ptr::null::<sysinfo>())).bufferram as *const _ as usize },
433        56usize,
434        concat!(
435            "Offset of field: ",
436            stringify!(sysinfo),
437            "::",
438            stringify!(bufferram)
439        )
440    );
441    assert_eq!(
442        unsafe { &(*(::core::ptr::null::<sysinfo>())).totalswap as *const _ as usize },
443        64usize,
444        concat!(
445            "Offset of field: ",
446            stringify!(sysinfo),
447            "::",
448            stringify!(totalswap)
449        )
450    );
451    assert_eq!(
452        unsafe { &(*(::core::ptr::null::<sysinfo>())).freeswap as *const _ as usize },
453        72usize,
454        concat!(
455            "Offset of field: ",
456            stringify!(sysinfo),
457            "::",
458            stringify!(freeswap)
459        )
460    );
461    assert_eq!(
462        unsafe { &(*(::core::ptr::null::<sysinfo>())).procs as *const _ as usize },
463        80usize,
464        concat!(
465            "Offset of field: ",
466            stringify!(sysinfo),
467            "::",
468            stringify!(procs)
469        )
470    );
471    assert_eq!(
472        unsafe { &(*(::core::ptr::null::<sysinfo>())).pad as *const _ as usize },
473        82usize,
474        concat!(
475            "Offset of field: ",
476            stringify!(sysinfo),
477            "::",
478            stringify!(pad)
479        )
480    );
481    assert_eq!(
482        unsafe { &(*(::core::ptr::null::<sysinfo>())).totalhigh as *const _ as usize },
483        88usize,
484        concat!(
485            "Offset of field: ",
486            stringify!(sysinfo),
487            "::",
488            stringify!(totalhigh)
489        )
490    );
491    assert_eq!(
492        unsafe { &(*(::core::ptr::null::<sysinfo>())).freehigh as *const _ as usize },
493        96usize,
494        concat!(
495            "Offset of field: ",
496            stringify!(sysinfo),
497            "::",
498            stringify!(freehigh)
499        )
500    );
501    assert_eq!(
502        unsafe { &(*(::core::ptr::null::<sysinfo>())).mem_unit as *const _ as usize },
503        104usize,
504        concat!(
505            "Offset of field: ",
506            stringify!(sysinfo),
507            "::",
508            stringify!(mem_unit)
509        )
510    );
511    assert_eq!(
512        unsafe { &(*(::core::ptr::null::<sysinfo>()))._f as *const _ as usize },
513        108usize,
514        concat!(
515            "Offset of field: ",
516            stringify!(sysinfo),
517            "::",
518            stringify!(_f)
519        )
520    );
521}
522pub type __kernel_sa_family_t = libc::c_ushort;
523#[repr(C)]
524#[derive(Copy, Clone)]
525pub struct __kernel_sockaddr_storage {
526    pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1,
527}
528#[repr(C)]
529#[derive(Copy, Clone)]
530pub union __kernel_sockaddr_storage__bindgen_ty_1 {
531    pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1,
532    pub __align: *mut libc::c_void,
533    _bindgen_union_align: [u64; 16usize],
534}
535#[repr(C)]
536#[derive(Copy, Clone)]
537pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 {
538    pub ss_family: __kernel_sa_family_t,
539    pub __data: [libc::c_char; 126usize],
540}
541#[test]
542fn bindgen_test_layout___kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() {
543    assert_eq!(
544        ::core::mem::size_of::<__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1>(),
545        128usize,
546        concat!(
547            "Size of: ",
548            stringify!(__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1)
549        )
550    );
551    assert_eq!(
552        ::core::mem::align_of::<__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1>(),
553        2usize,
554        concat!(
555            "Alignment of ",
556            stringify!(__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1)
557        )
558    );
559    assert_eq!(
560        unsafe {
561            &(*(::core::ptr::null::<__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1>()))
562                .ss_family as *const _ as usize
563        },
564        0usize,
565        concat!(
566            "Offset of field: ",
567            stringify!(__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1),
568            "::",
569            stringify!(ss_family)
570        )
571    );
572    assert_eq!(
573        unsafe {
574            &(*(::core::ptr::null::<__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1>()))
575                .__data as *const _ as usize
576        },
577        2usize,
578        concat!(
579            "Offset of field: ",
580            stringify!(__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1),
581            "::",
582            stringify!(__data)
583        )
584    );
585}
586#[test]
587fn bindgen_test_layout___kernel_sockaddr_storage__bindgen_ty_1() {
588    assert_eq!(
589        ::core::mem::size_of::<__kernel_sockaddr_storage__bindgen_ty_1>(),
590        128usize,
591        concat!(
592            "Size of: ",
593            stringify!(__kernel_sockaddr_storage__bindgen_ty_1)
594        )
595    );
596    assert_eq!(
597        ::core::mem::align_of::<__kernel_sockaddr_storage__bindgen_ty_1>(),
598        8usize,
599        concat!(
600            "Alignment of ",
601            stringify!(__kernel_sockaddr_storage__bindgen_ty_1)
602        )
603    );
604    assert_eq!(
605        unsafe {
606            &(*(::core::ptr::null::<__kernel_sockaddr_storage__bindgen_ty_1>())).__align as *const _
607                as usize
608        },
609        0usize,
610        concat!(
611            "Offset of field: ",
612            stringify!(__kernel_sockaddr_storage__bindgen_ty_1),
613            "::",
614            stringify!(__align)
615        )
616    );
617}
618#[test]
619fn bindgen_test_layout___kernel_sockaddr_storage() {
620    assert_eq!(
621        ::core::mem::size_of::<__kernel_sockaddr_storage>(),
622        128usize,
623        concat!("Size of: ", stringify!(__kernel_sockaddr_storage))
624    );
625    assert_eq!(
626        ::core::mem::align_of::<__kernel_sockaddr_storage>(),
627        8usize,
628        concat!("Alignment of ", stringify!(__kernel_sockaddr_storage))
629    );
630}
631#[repr(C)]
632#[derive(Debug, Copy, Clone)]
633pub struct sockaddr_nl {
634    pub nl_family: __kernel_sa_family_t,
635    pub nl_pad: libc::c_ushort,
636    pub nl_pid: __u32,
637    pub nl_groups: __u32,
638}
639#[test]
640fn bindgen_test_layout_sockaddr_nl() {
641    assert_eq!(
642        ::core::mem::size_of::<sockaddr_nl>(),
643        12usize,
644        concat!("Size of: ", stringify!(sockaddr_nl))
645    );
646    assert_eq!(
647        ::core::mem::align_of::<sockaddr_nl>(),
648        4usize,
649        concat!("Alignment of ", stringify!(sockaddr_nl))
650    );
651    assert_eq!(
652        unsafe { &(*(::core::ptr::null::<sockaddr_nl>())).nl_family as *const _ as usize },
653        0usize,
654        concat!(
655            "Offset of field: ",
656            stringify!(sockaddr_nl),
657            "::",
658            stringify!(nl_family)
659        )
660    );
661    assert_eq!(
662        unsafe { &(*(::core::ptr::null::<sockaddr_nl>())).nl_pad as *const _ as usize },
663        2usize,
664        concat!(
665            "Offset of field: ",
666            stringify!(sockaddr_nl),
667            "::",
668            stringify!(nl_pad)
669        )
670    );
671    assert_eq!(
672        unsafe { &(*(::core::ptr::null::<sockaddr_nl>())).nl_pid as *const _ as usize },
673        4usize,
674        concat!(
675            "Offset of field: ",
676            stringify!(sockaddr_nl),
677            "::",
678            stringify!(nl_pid)
679        )
680    );
681    assert_eq!(
682        unsafe { &(*(::core::ptr::null::<sockaddr_nl>())).nl_groups as *const _ as usize },
683        8usize,
684        concat!(
685            "Offset of field: ",
686            stringify!(sockaddr_nl),
687            "::",
688            stringify!(nl_groups)
689        )
690    );
691}
692#[repr(C)]
693#[derive(Debug, Copy, Clone)]
694pub struct nlmsghdr {
695    pub nlmsg_len: __u32,
696    pub nlmsg_type: __u16,
697    pub nlmsg_flags: __u16,
698    pub nlmsg_seq: __u32,
699    pub nlmsg_pid: __u32,
700}
701#[test]
702fn bindgen_test_layout_nlmsghdr() {
703    assert_eq!(
704        ::core::mem::size_of::<nlmsghdr>(),
705        16usize,
706        concat!("Size of: ", stringify!(nlmsghdr))
707    );
708    assert_eq!(
709        ::core::mem::align_of::<nlmsghdr>(),
710        4usize,
711        concat!("Alignment of ", stringify!(nlmsghdr))
712    );
713    assert_eq!(
714        unsafe { &(*(::core::ptr::null::<nlmsghdr>())).nlmsg_len as *const _ as usize },
715        0usize,
716        concat!(
717            "Offset of field: ",
718            stringify!(nlmsghdr),
719            "::",
720            stringify!(nlmsg_len)
721        )
722    );
723    assert_eq!(
724        unsafe { &(*(::core::ptr::null::<nlmsghdr>())).nlmsg_type as *const _ as usize },
725        4usize,
726        concat!(
727            "Offset of field: ",
728            stringify!(nlmsghdr),
729            "::",
730            stringify!(nlmsg_type)
731        )
732    );
733    assert_eq!(
734        unsafe { &(*(::core::ptr::null::<nlmsghdr>())).nlmsg_flags as *const _ as usize },
735        6usize,
736        concat!(
737            "Offset of field: ",
738            stringify!(nlmsghdr),
739            "::",
740            stringify!(nlmsg_flags)
741        )
742    );
743    assert_eq!(
744        unsafe { &(*(::core::ptr::null::<nlmsghdr>())).nlmsg_seq as *const _ as usize },
745        8usize,
746        concat!(
747            "Offset of field: ",
748            stringify!(nlmsghdr),
749            "::",
750            stringify!(nlmsg_seq)
751        )
752    );
753    assert_eq!(
754        unsafe { &(*(::core::ptr::null::<nlmsghdr>())).nlmsg_pid as *const _ as usize },
755        12usize,
756        concat!(
757            "Offset of field: ",
758            stringify!(nlmsghdr),
759            "::",
760            stringify!(nlmsg_pid)
761        )
762    );
763}
764#[repr(C)]
765#[derive(Debug, Copy, Clone)]
766pub struct nlmsgerr {
767    pub error: libc::c_int,
768    pub msg: nlmsghdr,
769}
770#[test]
771fn bindgen_test_layout_nlmsgerr() {
772    assert_eq!(
773        ::core::mem::size_of::<nlmsgerr>(),
774        20usize,
775        concat!("Size of: ", stringify!(nlmsgerr))
776    );
777    assert_eq!(
778        ::core::mem::align_of::<nlmsgerr>(),
779        4usize,
780        concat!("Alignment of ", stringify!(nlmsgerr))
781    );
782    assert_eq!(
783        unsafe { &(*(::core::ptr::null::<nlmsgerr>())).error as *const _ as usize },
784        0usize,
785        concat!(
786            "Offset of field: ",
787            stringify!(nlmsgerr),
788            "::",
789            stringify!(error)
790        )
791    );
792    assert_eq!(
793        unsafe { &(*(::core::ptr::null::<nlmsgerr>())).msg as *const _ as usize },
794        4usize,
795        concat!(
796            "Offset of field: ",
797            stringify!(nlmsgerr),
798            "::",
799            stringify!(msg)
800        )
801    );
802}
803pub const NLMSGERR_ATTR_UNUSED: nlmsgerr_attrs = 0;
804pub const NLMSGERR_ATTR_MSG: nlmsgerr_attrs = 1;
805pub const NLMSGERR_ATTR_OFFS: nlmsgerr_attrs = 2;
806pub const NLMSGERR_ATTR_COOKIE: nlmsgerr_attrs = 3;
807pub const __NLMSGERR_ATTR_MAX: nlmsgerr_attrs = 4;
808pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = 3;
809pub type nlmsgerr_attrs = u32;
810#[repr(C)]
811#[derive(Debug, Copy, Clone)]
812pub struct nl_pktinfo {
813    pub group: __u32,
814}
815#[test]
816fn bindgen_test_layout_nl_pktinfo() {
817    assert_eq!(
818        ::core::mem::size_of::<nl_pktinfo>(),
819        4usize,
820        concat!("Size of: ", stringify!(nl_pktinfo))
821    );
822    assert_eq!(
823        ::core::mem::align_of::<nl_pktinfo>(),
824        4usize,
825        concat!("Alignment of ", stringify!(nl_pktinfo))
826    );
827    assert_eq!(
828        unsafe { &(*(::core::ptr::null::<nl_pktinfo>())).group as *const _ as usize },
829        0usize,
830        concat!(
831            "Offset of field: ",
832            stringify!(nl_pktinfo),
833            "::",
834            stringify!(group)
835        )
836    );
837}
838#[repr(C)]
839#[derive(Debug, Copy, Clone)]
840pub struct nl_mmap_req {
841    pub nm_block_size: libc::c_uint,
842    pub nm_block_nr: libc::c_uint,
843    pub nm_frame_size: libc::c_uint,
844    pub nm_frame_nr: libc::c_uint,
845}
846#[test]
847fn bindgen_test_layout_nl_mmap_req() {
848    assert_eq!(
849        ::core::mem::size_of::<nl_mmap_req>(),
850        16usize,
851        concat!("Size of: ", stringify!(nl_mmap_req))
852    );
853    assert_eq!(
854        ::core::mem::align_of::<nl_mmap_req>(),
855        4usize,
856        concat!("Alignment of ", stringify!(nl_mmap_req))
857    );
858    assert_eq!(
859        unsafe { &(*(::core::ptr::null::<nl_mmap_req>())).nm_block_size as *const _ as usize },
860        0usize,
861        concat!(
862            "Offset of field: ",
863            stringify!(nl_mmap_req),
864            "::",
865            stringify!(nm_block_size)
866        )
867    );
868    assert_eq!(
869        unsafe { &(*(::core::ptr::null::<nl_mmap_req>())).nm_block_nr as *const _ as usize },
870        4usize,
871        concat!(
872            "Offset of field: ",
873            stringify!(nl_mmap_req),
874            "::",
875            stringify!(nm_block_nr)
876        )
877    );
878    assert_eq!(
879        unsafe { &(*(::core::ptr::null::<nl_mmap_req>())).nm_frame_size as *const _ as usize },
880        8usize,
881        concat!(
882            "Offset of field: ",
883            stringify!(nl_mmap_req),
884            "::",
885            stringify!(nm_frame_size)
886        )
887    );
888    assert_eq!(
889        unsafe { &(*(::core::ptr::null::<nl_mmap_req>())).nm_frame_nr as *const _ as usize },
890        12usize,
891        concat!(
892            "Offset of field: ",
893            stringify!(nl_mmap_req),
894            "::",
895            stringify!(nm_frame_nr)
896        )
897    );
898}
899#[repr(C)]
900#[derive(Debug, Copy, Clone)]
901pub struct nl_mmap_hdr {
902    pub nm_status: libc::c_uint,
903    pub nm_len: libc::c_uint,
904    pub nm_group: __u32,
905    pub nm_pid: __u32,
906    pub nm_uid: __u32,
907    pub nm_gid: __u32,
908}
909#[test]
910fn bindgen_test_layout_nl_mmap_hdr() {
911    assert_eq!(
912        ::core::mem::size_of::<nl_mmap_hdr>(),
913        24usize,
914        concat!("Size of: ", stringify!(nl_mmap_hdr))
915    );
916    assert_eq!(
917        ::core::mem::align_of::<nl_mmap_hdr>(),
918        4usize,
919        concat!("Alignment of ", stringify!(nl_mmap_hdr))
920    );
921    assert_eq!(
922        unsafe { &(*(::core::ptr::null::<nl_mmap_hdr>())).nm_status as *const _ as usize },
923        0usize,
924        concat!(
925            "Offset of field: ",
926            stringify!(nl_mmap_hdr),
927            "::",
928            stringify!(nm_status)
929        )
930    );
931    assert_eq!(
932        unsafe { &(*(::core::ptr::null::<nl_mmap_hdr>())).nm_len as *const _ as usize },
933        4usize,
934        concat!(
935            "Offset of field: ",
936            stringify!(nl_mmap_hdr),
937            "::",
938            stringify!(nm_len)
939        )
940    );
941    assert_eq!(
942        unsafe { &(*(::core::ptr::null::<nl_mmap_hdr>())).nm_group as *const _ as usize },
943        8usize,
944        concat!(
945            "Offset of field: ",
946            stringify!(nl_mmap_hdr),
947            "::",
948            stringify!(nm_group)
949        )
950    );
951    assert_eq!(
952        unsafe { &(*(::core::ptr::null::<nl_mmap_hdr>())).nm_pid as *const _ as usize },
953        12usize,
954        concat!(
955            "Offset of field: ",
956            stringify!(nl_mmap_hdr),
957            "::",
958            stringify!(nm_pid)
959        )
960    );
961    assert_eq!(
962        unsafe { &(*(::core::ptr::null::<nl_mmap_hdr>())).nm_uid as *const _ as usize },
963        16usize,
964        concat!(
965            "Offset of field: ",
966            stringify!(nl_mmap_hdr),
967            "::",
968            stringify!(nm_uid)
969        )
970    );
971    assert_eq!(
972        unsafe { &(*(::core::ptr::null::<nl_mmap_hdr>())).nm_gid as *const _ as usize },
973        20usize,
974        concat!(
975            "Offset of field: ",
976            stringify!(nl_mmap_hdr),
977            "::",
978            stringify!(nm_gid)
979        )
980    );
981}
982pub const NL_MMAP_STATUS_UNUSED: nl_mmap_status = 0;
983pub const NL_MMAP_STATUS_RESERVED: nl_mmap_status = 1;
984pub const NL_MMAP_STATUS_VALID: nl_mmap_status = 2;
985pub const NL_MMAP_STATUS_COPY: nl_mmap_status = 3;
986pub const NL_MMAP_STATUS_SKIP: nl_mmap_status = 4;
987pub type nl_mmap_status = u32;
988pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = 0;
989pub const NETLINK_CONNECTED: _bindgen_ty_1 = 1;
990pub type _bindgen_ty_1 = u32;
991#[repr(C)]
992#[derive(Debug, Copy, Clone)]
993pub struct nlattr {
994    pub nla_len: __u16,
995    pub nla_type: __u16,
996}
997#[test]
998fn bindgen_test_layout_nlattr() {
999    assert_eq!(
1000        ::core::mem::size_of::<nlattr>(),
1001        4usize,
1002        concat!("Size of: ", stringify!(nlattr))
1003    );
1004    assert_eq!(
1005        ::core::mem::align_of::<nlattr>(),
1006        2usize,
1007        concat!("Alignment of ", stringify!(nlattr))
1008    );
1009    assert_eq!(
1010        unsafe { &(*(::core::ptr::null::<nlattr>())).nla_len as *const _ as usize },
1011        0usize,
1012        concat!(
1013            "Offset of field: ",
1014            stringify!(nlattr),
1015            "::",
1016            stringify!(nla_len)
1017        )
1018    );
1019    assert_eq!(
1020        unsafe { &(*(::core::ptr::null::<nlattr>())).nla_type as *const _ as usize },
1021        2usize,
1022        concat!(
1023            "Offset of field: ",
1024            stringify!(nlattr),
1025            "::",
1026            stringify!(nla_type)
1027        )
1028    );
1029}
1030#[repr(C)]
1031#[derive(Debug, Copy, Clone)]
1032pub struct nla_bitfield32 {
1033    pub value: __u32,
1034    pub selector: __u32,
1035}
1036#[test]
1037fn bindgen_test_layout_nla_bitfield32() {
1038    assert_eq!(
1039        ::core::mem::size_of::<nla_bitfield32>(),
1040        8usize,
1041        concat!("Size of: ", stringify!(nla_bitfield32))
1042    );
1043    assert_eq!(
1044        ::core::mem::align_of::<nla_bitfield32>(),
1045        4usize,
1046        concat!("Alignment of ", stringify!(nla_bitfield32))
1047    );
1048    assert_eq!(
1049        unsafe { &(*(::core::ptr::null::<nla_bitfield32>())).value as *const _ as usize },
1050        0usize,
1051        concat!(
1052            "Offset of field: ",
1053            stringify!(nla_bitfield32),
1054            "::",
1055            stringify!(value)
1056        )
1057    );
1058    assert_eq!(
1059        unsafe { &(*(::core::ptr::null::<nla_bitfield32>())).selector as *const _ as usize },
1060        4usize,
1061        concat!(
1062            "Offset of field: ",
1063            stringify!(nla_bitfield32),
1064            "::",
1065            stringify!(selector)
1066        )
1067    );
1068}
1069pub const PROC_CN_MCAST_LISTEN: proc_cn_mcast_op = 1;
1070pub const PROC_CN_MCAST_IGNORE: proc_cn_mcast_op = 2;
1071pub type proc_cn_mcast_op = u32;
1072#[repr(C)]
1073#[derive(Copy, Clone)]
1074pub struct proc_event {
1075    pub what: proc_event_what,
1076    pub cpu: __u32,
1077    pub timestamp_ns: __u64,
1078    pub event_data: proc_event__bindgen_ty_1,
1079}
1080pub const PROC_EVENT_NONE: proc_event_what = 0;
1081pub const PROC_EVENT_FORK: proc_event_what = 1;
1082pub const PROC_EVENT_EXEC: proc_event_what = 2;
1083pub const PROC_EVENT_UID: proc_event_what = 4;
1084pub const PROC_EVENT_GID: proc_event_what = 64;
1085pub const PROC_EVENT_SID: proc_event_what = 128;
1086pub const PROC_EVENT_PTRACE: proc_event_what = 256;
1087pub const PROC_EVENT_COMM: proc_event_what = 512;
1088pub const PROC_EVENT_COREDUMP: proc_event_what = 1073741824;
1089pub const PROC_EVENT_EXIT: proc_event_what = 2147483648;
1090pub type proc_event_what = u32;
1091#[repr(C)]
1092#[derive(Copy, Clone)]
1093pub union proc_event__bindgen_ty_1 {
1094    pub ack: proc_event__bindgen_ty_1__bindgen_ty_1,
1095    pub fork: proc_event__bindgen_ty_1_fork_proc_event,
1096    pub exec: proc_event__bindgen_ty_1_exec_proc_event,
1097    pub id: proc_event__bindgen_ty_1_id_proc_event,
1098    pub sid: proc_event__bindgen_ty_1_sid_proc_event,
1099    pub ptrace: proc_event__bindgen_ty_1_ptrace_proc_event,
1100    pub comm: proc_event__bindgen_ty_1_comm_proc_event,
1101    pub coredump: proc_event__bindgen_ty_1_coredump_proc_event,
1102    pub exit: proc_event__bindgen_ty_1_exit_proc_event,
1103    _bindgen_union_align: [u32; 6usize],
1104}
1105#[repr(C)]
1106#[derive(Debug, Copy, Clone)]
1107pub struct proc_event__bindgen_ty_1__bindgen_ty_1 {
1108    pub err: __u32,
1109}
1110#[test]
1111fn bindgen_test_layout_proc_event__bindgen_ty_1__bindgen_ty_1() {
1112    assert_eq!(
1113        ::core::mem::size_of::<proc_event__bindgen_ty_1__bindgen_ty_1>(),
1114        4usize,
1115        concat!(
1116            "Size of: ",
1117            stringify!(proc_event__bindgen_ty_1__bindgen_ty_1)
1118        )
1119    );
1120    assert_eq!(
1121        ::core::mem::align_of::<proc_event__bindgen_ty_1__bindgen_ty_1>(),
1122        4usize,
1123        concat!(
1124            "Alignment of ",
1125            stringify!(proc_event__bindgen_ty_1__bindgen_ty_1)
1126        )
1127    );
1128    assert_eq!(
1129        unsafe {
1130            &(*(::core::ptr::null::<proc_event__bindgen_ty_1__bindgen_ty_1>())).err as *const _
1131                as usize
1132        },
1133        0usize,
1134        concat!(
1135            "Offset of field: ",
1136            stringify!(proc_event__bindgen_ty_1__bindgen_ty_1),
1137            "::",
1138            stringify!(err)
1139        )
1140    );
1141}
1142#[repr(C)]
1143#[derive(Debug, Copy, Clone)]
1144pub struct proc_event__bindgen_ty_1_fork_proc_event {
1145    pub parent_pid: __kernel_pid_t,
1146    pub parent_tgid: __kernel_pid_t,
1147    pub child_pid: __kernel_pid_t,
1148    pub child_tgid: __kernel_pid_t,
1149}
1150#[test]
1151fn bindgen_test_layout_proc_event__bindgen_ty_1_fork_proc_event() {
1152    assert_eq!(
1153        ::core::mem::size_of::<proc_event__bindgen_ty_1_fork_proc_event>(),
1154        16usize,
1155        concat!(
1156            "Size of: ",
1157            stringify!(proc_event__bindgen_ty_1_fork_proc_event)
1158        )
1159    );
1160    assert_eq!(
1161        ::core::mem::align_of::<proc_event__bindgen_ty_1_fork_proc_event>(),
1162        4usize,
1163        concat!(
1164            "Alignment of ",
1165            stringify!(proc_event__bindgen_ty_1_fork_proc_event)
1166        )
1167    );
1168    assert_eq!(
1169        unsafe {
1170            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_fork_proc_event>())).parent_pid
1171                as *const _ as usize
1172        },
1173        0usize,
1174        concat!(
1175            "Offset of field: ",
1176            stringify!(proc_event__bindgen_ty_1_fork_proc_event),
1177            "::",
1178            stringify!(parent_pid)
1179        )
1180    );
1181    assert_eq!(
1182        unsafe {
1183            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_fork_proc_event>())).parent_tgid
1184                as *const _ as usize
1185        },
1186        4usize,
1187        concat!(
1188            "Offset of field: ",
1189            stringify!(proc_event__bindgen_ty_1_fork_proc_event),
1190            "::",
1191            stringify!(parent_tgid)
1192        )
1193    );
1194    assert_eq!(
1195        unsafe {
1196            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_fork_proc_event>())).child_pid
1197                as *const _ as usize
1198        },
1199        8usize,
1200        concat!(
1201            "Offset of field: ",
1202            stringify!(proc_event__bindgen_ty_1_fork_proc_event),
1203            "::",
1204            stringify!(child_pid)
1205        )
1206    );
1207    assert_eq!(
1208        unsafe {
1209            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_fork_proc_event>())).child_tgid
1210                as *const _ as usize
1211        },
1212        12usize,
1213        concat!(
1214            "Offset of field: ",
1215            stringify!(proc_event__bindgen_ty_1_fork_proc_event),
1216            "::",
1217            stringify!(child_tgid)
1218        )
1219    );
1220}
1221#[repr(C)]
1222#[derive(Debug, Copy, Clone)]
1223pub struct proc_event__bindgen_ty_1_exec_proc_event {
1224    pub process_pid: __kernel_pid_t,
1225    pub process_tgid: __kernel_pid_t,
1226}
1227#[test]
1228fn bindgen_test_layout_proc_event__bindgen_ty_1_exec_proc_event() {
1229    assert_eq!(
1230        ::core::mem::size_of::<proc_event__bindgen_ty_1_exec_proc_event>(),
1231        8usize,
1232        concat!(
1233            "Size of: ",
1234            stringify!(proc_event__bindgen_ty_1_exec_proc_event)
1235        )
1236    );
1237    assert_eq!(
1238        ::core::mem::align_of::<proc_event__bindgen_ty_1_exec_proc_event>(),
1239        4usize,
1240        concat!(
1241            "Alignment of ",
1242            stringify!(proc_event__bindgen_ty_1_exec_proc_event)
1243        )
1244    );
1245    assert_eq!(
1246        unsafe {
1247            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_exec_proc_event>())).process_pid
1248                as *const _ as usize
1249        },
1250        0usize,
1251        concat!(
1252            "Offset of field: ",
1253            stringify!(proc_event__bindgen_ty_1_exec_proc_event),
1254            "::",
1255            stringify!(process_pid)
1256        )
1257    );
1258    assert_eq!(
1259        unsafe {
1260            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_exec_proc_event>())).process_tgid
1261                as *const _ as usize
1262        },
1263        4usize,
1264        concat!(
1265            "Offset of field: ",
1266            stringify!(proc_event__bindgen_ty_1_exec_proc_event),
1267            "::",
1268            stringify!(process_tgid)
1269        )
1270    );
1271}
1272#[repr(C)]
1273#[derive(Copy, Clone)]
1274pub struct proc_event__bindgen_ty_1_id_proc_event {
1275    pub process_pid: __kernel_pid_t,
1276    pub process_tgid: __kernel_pid_t,
1277    pub r: proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1,
1278    pub e: proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2,
1279}
1280#[repr(C)]
1281#[derive(Copy, Clone)]
1282pub union proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1 {
1283    pub ruid: __u32,
1284    pub rgid: __u32,
1285    _bindgen_union_align: u32,
1286}
1287#[test]
1288fn bindgen_test_layout_proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1() {
1289    assert_eq!(
1290        ::core::mem::size_of::<proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1>(),
1291        4usize,
1292        concat!(
1293            "Size of: ",
1294            stringify!(proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1)
1295        )
1296    );
1297    assert_eq!(
1298        ::core::mem::align_of::<proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1>(),
1299        4usize,
1300        concat!(
1301            "Alignment of ",
1302            stringify!(proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1)
1303        )
1304    );
1305    assert_eq!(
1306        unsafe {
1307            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1>())).ruid
1308                as *const _ as usize
1309        },
1310        0usize,
1311        concat!(
1312            "Offset of field: ",
1313            stringify!(proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1),
1314            "::",
1315            stringify!(ruid)
1316        )
1317    );
1318    assert_eq!(
1319        unsafe {
1320            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1>())).rgid
1321                as *const _ as usize
1322        },
1323        0usize,
1324        concat!(
1325            "Offset of field: ",
1326            stringify!(proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_1),
1327            "::",
1328            stringify!(rgid)
1329        )
1330    );
1331}
1332#[repr(C)]
1333#[derive(Copy, Clone)]
1334pub union proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2 {
1335    pub euid: __u32,
1336    pub egid: __u32,
1337    _bindgen_union_align: u32,
1338}
1339#[test]
1340fn bindgen_test_layout_proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2() {
1341    assert_eq!(
1342        ::core::mem::size_of::<proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2>(),
1343        4usize,
1344        concat!(
1345            "Size of: ",
1346            stringify!(proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2)
1347        )
1348    );
1349    assert_eq!(
1350        ::core::mem::align_of::<proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2>(),
1351        4usize,
1352        concat!(
1353            "Alignment of ",
1354            stringify!(proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2)
1355        )
1356    );
1357    assert_eq!(
1358        unsafe {
1359            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2>())).euid
1360                as *const _ as usize
1361        },
1362        0usize,
1363        concat!(
1364            "Offset of field: ",
1365            stringify!(proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2),
1366            "::",
1367            stringify!(euid)
1368        )
1369    );
1370    assert_eq!(
1371        unsafe {
1372            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2>())).egid
1373                as *const _ as usize
1374        },
1375        0usize,
1376        concat!(
1377            "Offset of field: ",
1378            stringify!(proc_event__bindgen_ty_1_id_proc_event__bindgen_ty_2),
1379            "::",
1380            stringify!(egid)
1381        )
1382    );
1383}
1384#[test]
1385fn bindgen_test_layout_proc_event__bindgen_ty_1_id_proc_event() {
1386    assert_eq!(
1387        ::core::mem::size_of::<proc_event__bindgen_ty_1_id_proc_event>(),
1388        16usize,
1389        concat!(
1390            "Size of: ",
1391            stringify!(proc_event__bindgen_ty_1_id_proc_event)
1392        )
1393    );
1394    assert_eq!(
1395        ::core::mem::align_of::<proc_event__bindgen_ty_1_id_proc_event>(),
1396        4usize,
1397        concat!(
1398            "Alignment of ",
1399            stringify!(proc_event__bindgen_ty_1_id_proc_event)
1400        )
1401    );
1402    assert_eq!(
1403        unsafe {
1404            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_id_proc_event>())).process_pid
1405                as *const _ as usize
1406        },
1407        0usize,
1408        concat!(
1409            "Offset of field: ",
1410            stringify!(proc_event__bindgen_ty_1_id_proc_event),
1411            "::",
1412            stringify!(process_pid)
1413        )
1414    );
1415    assert_eq!(
1416        unsafe {
1417            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_id_proc_event>())).process_tgid
1418                as *const _ as usize
1419        },
1420        4usize,
1421        concat!(
1422            "Offset of field: ",
1423            stringify!(proc_event__bindgen_ty_1_id_proc_event),
1424            "::",
1425            stringify!(process_tgid)
1426        )
1427    );
1428    assert_eq!(
1429        unsafe {
1430            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_id_proc_event>())).r as *const _
1431                as usize
1432        },
1433        8usize,
1434        concat!(
1435            "Offset of field: ",
1436            stringify!(proc_event__bindgen_ty_1_id_proc_event),
1437            "::",
1438            stringify!(r)
1439        )
1440    );
1441    assert_eq!(
1442        unsafe {
1443            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_id_proc_event>())).e as *const _
1444                as usize
1445        },
1446        12usize,
1447        concat!(
1448            "Offset of field: ",
1449            stringify!(proc_event__bindgen_ty_1_id_proc_event),
1450            "::",
1451            stringify!(e)
1452        )
1453    );
1454}
1455#[repr(C)]
1456#[derive(Debug, Copy, Clone)]
1457pub struct proc_event__bindgen_ty_1_sid_proc_event {
1458    pub process_pid: __kernel_pid_t,
1459    pub process_tgid: __kernel_pid_t,
1460}
1461#[test]
1462fn bindgen_test_layout_proc_event__bindgen_ty_1_sid_proc_event() {
1463    assert_eq!(
1464        ::core::mem::size_of::<proc_event__bindgen_ty_1_sid_proc_event>(),
1465        8usize,
1466        concat!(
1467            "Size of: ",
1468            stringify!(proc_event__bindgen_ty_1_sid_proc_event)
1469        )
1470    );
1471    assert_eq!(
1472        ::core::mem::align_of::<proc_event__bindgen_ty_1_sid_proc_event>(),
1473        4usize,
1474        concat!(
1475            "Alignment of ",
1476            stringify!(proc_event__bindgen_ty_1_sid_proc_event)
1477        )
1478    );
1479    assert_eq!(
1480        unsafe {
1481            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_sid_proc_event>())).process_pid
1482                as *const _ as usize
1483        },
1484        0usize,
1485        concat!(
1486            "Offset of field: ",
1487            stringify!(proc_event__bindgen_ty_1_sid_proc_event),
1488            "::",
1489            stringify!(process_pid)
1490        )
1491    );
1492    assert_eq!(
1493        unsafe {
1494            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_sid_proc_event>())).process_tgid
1495                as *const _ as usize
1496        },
1497        4usize,
1498        concat!(
1499            "Offset of field: ",
1500            stringify!(proc_event__bindgen_ty_1_sid_proc_event),
1501            "::",
1502            stringify!(process_tgid)
1503        )
1504    );
1505}
1506#[repr(C)]
1507#[derive(Debug, Copy, Clone)]
1508pub struct proc_event__bindgen_ty_1_ptrace_proc_event {
1509    pub process_pid: __kernel_pid_t,
1510    pub process_tgid: __kernel_pid_t,
1511    pub tracer_pid: __kernel_pid_t,
1512    pub tracer_tgid: __kernel_pid_t,
1513}
1514#[test]
1515fn bindgen_test_layout_proc_event__bindgen_ty_1_ptrace_proc_event() {
1516    assert_eq!(
1517        ::core::mem::size_of::<proc_event__bindgen_ty_1_ptrace_proc_event>(),
1518        16usize,
1519        concat!(
1520            "Size of: ",
1521            stringify!(proc_event__bindgen_ty_1_ptrace_proc_event)
1522        )
1523    );
1524    assert_eq!(
1525        ::core::mem::align_of::<proc_event__bindgen_ty_1_ptrace_proc_event>(),
1526        4usize,
1527        concat!(
1528            "Alignment of ",
1529            stringify!(proc_event__bindgen_ty_1_ptrace_proc_event)
1530        )
1531    );
1532    assert_eq!(
1533        unsafe {
1534            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_ptrace_proc_event>())).process_pid
1535                as *const _ as usize
1536        },
1537        0usize,
1538        concat!(
1539            "Offset of field: ",
1540            stringify!(proc_event__bindgen_ty_1_ptrace_proc_event),
1541            "::",
1542            stringify!(process_pid)
1543        )
1544    );
1545    assert_eq!(
1546        unsafe {
1547            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_ptrace_proc_event>())).process_tgid
1548                as *const _ as usize
1549        },
1550        4usize,
1551        concat!(
1552            "Offset of field: ",
1553            stringify!(proc_event__bindgen_ty_1_ptrace_proc_event),
1554            "::",
1555            stringify!(process_tgid)
1556        )
1557    );
1558    assert_eq!(
1559        unsafe {
1560            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_ptrace_proc_event>())).tracer_pid
1561                as *const _ as usize
1562        },
1563        8usize,
1564        concat!(
1565            "Offset of field: ",
1566            stringify!(proc_event__bindgen_ty_1_ptrace_proc_event),
1567            "::",
1568            stringify!(tracer_pid)
1569        )
1570    );
1571    assert_eq!(
1572        unsafe {
1573            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_ptrace_proc_event>())).tracer_tgid
1574                as *const _ as usize
1575        },
1576        12usize,
1577        concat!(
1578            "Offset of field: ",
1579            stringify!(proc_event__bindgen_ty_1_ptrace_proc_event),
1580            "::",
1581            stringify!(tracer_tgid)
1582        )
1583    );
1584}
1585#[repr(C)]
1586#[derive(Debug, Copy, Clone)]
1587pub struct proc_event__bindgen_ty_1_comm_proc_event {
1588    pub process_pid: __kernel_pid_t,
1589    pub process_tgid: __kernel_pid_t,
1590    pub comm: [libc::c_char; 16usize],
1591}
1592#[test]
1593fn bindgen_test_layout_proc_event__bindgen_ty_1_comm_proc_event() {
1594    assert_eq!(
1595        ::core::mem::size_of::<proc_event__bindgen_ty_1_comm_proc_event>(),
1596        24usize,
1597        concat!(
1598            "Size of: ",
1599            stringify!(proc_event__bindgen_ty_1_comm_proc_event)
1600        )
1601    );
1602    assert_eq!(
1603        ::core::mem::align_of::<proc_event__bindgen_ty_1_comm_proc_event>(),
1604        4usize,
1605        concat!(
1606            "Alignment of ",
1607            stringify!(proc_event__bindgen_ty_1_comm_proc_event)
1608        )
1609    );
1610    assert_eq!(
1611        unsafe {
1612            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_comm_proc_event>())).process_pid
1613                as *const _ as usize
1614        },
1615        0usize,
1616        concat!(
1617            "Offset of field: ",
1618            stringify!(proc_event__bindgen_ty_1_comm_proc_event),
1619            "::",
1620            stringify!(process_pid)
1621        )
1622    );
1623    assert_eq!(
1624        unsafe {
1625            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_comm_proc_event>())).process_tgid
1626                as *const _ as usize
1627        },
1628        4usize,
1629        concat!(
1630            "Offset of field: ",
1631            stringify!(proc_event__bindgen_ty_1_comm_proc_event),
1632            "::",
1633            stringify!(process_tgid)
1634        )
1635    );
1636    assert_eq!(
1637        unsafe {
1638            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_comm_proc_event>())).comm as *const _
1639                as usize
1640        },
1641        8usize,
1642        concat!(
1643            "Offset of field: ",
1644            stringify!(proc_event__bindgen_ty_1_comm_proc_event),
1645            "::",
1646            stringify!(comm)
1647        )
1648    );
1649}
1650#[repr(C)]
1651#[derive(Debug, Copy, Clone)]
1652pub struct proc_event__bindgen_ty_1_coredump_proc_event {
1653    pub process_pid: __kernel_pid_t,
1654    pub process_tgid: __kernel_pid_t,
1655    pub parent_pid: __kernel_pid_t,
1656    pub parent_tgid: __kernel_pid_t,
1657}
1658#[test]
1659fn bindgen_test_layout_proc_event__bindgen_ty_1_coredump_proc_event() {
1660    assert_eq!(
1661        ::core::mem::size_of::<proc_event__bindgen_ty_1_coredump_proc_event>(),
1662        16usize,
1663        concat!(
1664            "Size of: ",
1665            stringify!(proc_event__bindgen_ty_1_coredump_proc_event)
1666        )
1667    );
1668    assert_eq!(
1669        ::core::mem::align_of::<proc_event__bindgen_ty_1_coredump_proc_event>(),
1670        4usize,
1671        concat!(
1672            "Alignment of ",
1673            stringify!(proc_event__bindgen_ty_1_coredump_proc_event)
1674        )
1675    );
1676    assert_eq!(
1677        unsafe {
1678            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_coredump_proc_event>())).process_pid
1679                as *const _ as usize
1680        },
1681        0usize,
1682        concat!(
1683            "Offset of field: ",
1684            stringify!(proc_event__bindgen_ty_1_coredump_proc_event),
1685            "::",
1686            stringify!(process_pid)
1687        )
1688    );
1689    assert_eq!(
1690        unsafe {
1691            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_coredump_proc_event>())).process_tgid
1692                as *const _ as usize
1693        },
1694        4usize,
1695        concat!(
1696            "Offset of field: ",
1697            stringify!(proc_event__bindgen_ty_1_coredump_proc_event),
1698            "::",
1699            stringify!(process_tgid)
1700        )
1701    );
1702    assert_eq!(
1703        unsafe {
1704            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_coredump_proc_event>())).parent_pid
1705                as *const _ as usize
1706        },
1707        8usize,
1708        concat!(
1709            "Offset of field: ",
1710            stringify!(proc_event__bindgen_ty_1_coredump_proc_event),
1711            "::",
1712            stringify!(parent_pid)
1713        )
1714    );
1715    assert_eq!(
1716        unsafe {
1717            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_coredump_proc_event>())).parent_tgid
1718                as *const _ as usize
1719        },
1720        12usize,
1721        concat!(
1722            "Offset of field: ",
1723            stringify!(proc_event__bindgen_ty_1_coredump_proc_event),
1724            "::",
1725            stringify!(parent_tgid)
1726        )
1727    );
1728}
1729#[repr(C)]
1730#[derive(Debug, Copy, Clone)]
1731pub struct proc_event__bindgen_ty_1_exit_proc_event {
1732    pub process_pid: __kernel_pid_t,
1733    pub process_tgid: __kernel_pid_t,
1734    pub exit_code: __u32,
1735    pub exit_signal: __u32,
1736    pub parent_pid: __kernel_pid_t,
1737    pub parent_tgid: __kernel_pid_t,
1738}
1739#[test]
1740fn bindgen_test_layout_proc_event__bindgen_ty_1_exit_proc_event() {
1741    assert_eq!(
1742        ::core::mem::size_of::<proc_event__bindgen_ty_1_exit_proc_event>(),
1743        24usize,
1744        concat!(
1745            "Size of: ",
1746            stringify!(proc_event__bindgen_ty_1_exit_proc_event)
1747        )
1748    );
1749    assert_eq!(
1750        ::core::mem::align_of::<proc_event__bindgen_ty_1_exit_proc_event>(),
1751        4usize,
1752        concat!(
1753            "Alignment of ",
1754            stringify!(proc_event__bindgen_ty_1_exit_proc_event)
1755        )
1756    );
1757    assert_eq!(
1758        unsafe {
1759            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_exit_proc_event>())).process_pid
1760                as *const _ as usize
1761        },
1762        0usize,
1763        concat!(
1764            "Offset of field: ",
1765            stringify!(proc_event__bindgen_ty_1_exit_proc_event),
1766            "::",
1767            stringify!(process_pid)
1768        )
1769    );
1770    assert_eq!(
1771        unsafe {
1772            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_exit_proc_event>())).process_tgid
1773                as *const _ as usize
1774        },
1775        4usize,
1776        concat!(
1777            "Offset of field: ",
1778            stringify!(proc_event__bindgen_ty_1_exit_proc_event),
1779            "::",
1780            stringify!(process_tgid)
1781        )
1782    );
1783    assert_eq!(
1784        unsafe {
1785            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_exit_proc_event>())).exit_code
1786                as *const _ as usize
1787        },
1788        8usize,
1789        concat!(
1790            "Offset of field: ",
1791            stringify!(proc_event__bindgen_ty_1_exit_proc_event),
1792            "::",
1793            stringify!(exit_code)
1794        )
1795    );
1796    assert_eq!(
1797        unsafe {
1798            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_exit_proc_event>())).exit_signal
1799                as *const _ as usize
1800        },
1801        12usize,
1802        concat!(
1803            "Offset of field: ",
1804            stringify!(proc_event__bindgen_ty_1_exit_proc_event),
1805            "::",
1806            stringify!(exit_signal)
1807        )
1808    );
1809    assert_eq!(
1810        unsafe {
1811            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_exit_proc_event>())).parent_pid
1812                as *const _ as usize
1813        },
1814        16usize,
1815        concat!(
1816            "Offset of field: ",
1817            stringify!(proc_event__bindgen_ty_1_exit_proc_event),
1818            "::",
1819            stringify!(parent_pid)
1820        )
1821    );
1822    assert_eq!(
1823        unsafe {
1824            &(*(::core::ptr::null::<proc_event__bindgen_ty_1_exit_proc_event>())).parent_tgid
1825                as *const _ as usize
1826        },
1827        20usize,
1828        concat!(
1829            "Offset of field: ",
1830            stringify!(proc_event__bindgen_ty_1_exit_proc_event),
1831            "::",
1832            stringify!(parent_tgid)
1833        )
1834    );
1835}
1836#[test]
1837fn bindgen_test_layout_proc_event__bindgen_ty_1() {
1838    assert_eq!(
1839        ::core::mem::size_of::<proc_event__bindgen_ty_1>(),
1840        24usize,
1841        concat!("Size of: ", stringify!(proc_event__bindgen_ty_1))
1842    );
1843    assert_eq!(
1844        ::core::mem::align_of::<proc_event__bindgen_ty_1>(),
1845        4usize,
1846        concat!("Alignment of ", stringify!(proc_event__bindgen_ty_1))
1847    );
1848    assert_eq!(
1849        unsafe { &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).ack as *const _ as usize },
1850        0usize,
1851        concat!(
1852            "Offset of field: ",
1853            stringify!(proc_event__bindgen_ty_1),
1854            "::",
1855            stringify!(ack)
1856        )
1857    );
1858    assert_eq!(
1859        unsafe { &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).fork as *const _ as usize },
1860        0usize,
1861        concat!(
1862            "Offset of field: ",
1863            stringify!(proc_event__bindgen_ty_1),
1864            "::",
1865            stringify!(fork)
1866        )
1867    );
1868    assert_eq!(
1869        unsafe { &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).exec as *const _ as usize },
1870        0usize,
1871        concat!(
1872            "Offset of field: ",
1873            stringify!(proc_event__bindgen_ty_1),
1874            "::",
1875            stringify!(exec)
1876        )
1877    );
1878    assert_eq!(
1879        unsafe { &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).id as *const _ as usize },
1880        0usize,
1881        concat!(
1882            "Offset of field: ",
1883            stringify!(proc_event__bindgen_ty_1),
1884            "::",
1885            stringify!(id)
1886        )
1887    );
1888    assert_eq!(
1889        unsafe { &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).sid as *const _ as usize },
1890        0usize,
1891        concat!(
1892            "Offset of field: ",
1893            stringify!(proc_event__bindgen_ty_1),
1894            "::",
1895            stringify!(sid)
1896        )
1897    );
1898    assert_eq!(
1899        unsafe {
1900            &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).ptrace as *const _ as usize
1901        },
1902        0usize,
1903        concat!(
1904            "Offset of field: ",
1905            stringify!(proc_event__bindgen_ty_1),
1906            "::",
1907            stringify!(ptrace)
1908        )
1909    );
1910    assert_eq!(
1911        unsafe { &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).comm as *const _ as usize },
1912        0usize,
1913        concat!(
1914            "Offset of field: ",
1915            stringify!(proc_event__bindgen_ty_1),
1916            "::",
1917            stringify!(comm)
1918        )
1919    );
1920    assert_eq!(
1921        unsafe {
1922            &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).coredump as *const _ as usize
1923        },
1924        0usize,
1925        concat!(
1926            "Offset of field: ",
1927            stringify!(proc_event__bindgen_ty_1),
1928            "::",
1929            stringify!(coredump)
1930        )
1931    );
1932    assert_eq!(
1933        unsafe { &(*(::core::ptr::null::<proc_event__bindgen_ty_1>())).exit as *const _ as usize },
1934        0usize,
1935        concat!(
1936            "Offset of field: ",
1937            stringify!(proc_event__bindgen_ty_1),
1938            "::",
1939            stringify!(exit)
1940        )
1941    );
1942}
1943#[test]
1944fn bindgen_test_layout_proc_event() {
1945    assert_eq!(
1946        ::core::mem::size_of::<proc_event>(),
1947        40usize,
1948        concat!("Size of: ", stringify!(proc_event))
1949    );
1950    assert_eq!(
1951        ::core::mem::align_of::<proc_event>(),
1952        8usize,
1953        concat!("Alignment of ", stringify!(proc_event))
1954    );
1955    assert_eq!(
1956        unsafe { &(*(::core::ptr::null::<proc_event>())).what as *const _ as usize },
1957        0usize,
1958        concat!(
1959            "Offset of field: ",
1960            stringify!(proc_event),
1961            "::",
1962            stringify!(what)
1963        )
1964    );
1965    assert_eq!(
1966        unsafe { &(*(::core::ptr::null::<proc_event>())).cpu as *const _ as usize },
1967        4usize,
1968        concat!(
1969            "Offset of field: ",
1970            stringify!(proc_event),
1971            "::",
1972            stringify!(cpu)
1973        )
1974    );
1975    assert_eq!(
1976        unsafe { &(*(::core::ptr::null::<proc_event>())).timestamp_ns as *const _ as usize },
1977        8usize,
1978        concat!(
1979            "Offset of field: ",
1980            stringify!(proc_event),
1981            "::",
1982            stringify!(timestamp_ns)
1983        )
1984    );
1985    assert_eq!(
1986        unsafe { &(*(::core::ptr::null::<proc_event>())).event_data as *const _ as usize },
1987        16usize,
1988        concat!(
1989            "Offset of field: ",
1990            stringify!(proc_event),
1991            "::",
1992            stringify!(event_data)
1993        )
1994    );
1995}