1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::core::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::core::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
#[repr(C)]
pub struct __BindgenUnionField<T>(::core::marker::PhantomData<T>);
impl<T> __BindgenUnionField<T> {
    #[inline]
    pub const fn new() -> Self {
        __BindgenUnionField(::core::marker::PhantomData)
    }
    #[inline]
    pub unsafe fn as_ref(&self) -> &T {
        ::core::mem::transmute(self)
    }
    #[inline]
    pub unsafe fn as_mut(&mut self) -> &mut T {
        ::core::mem::transmute(self)
    }
}
impl<T> ::core::default::Default for __BindgenUnionField<T> {
    #[inline]
    fn default() -> Self {
        Self::new()
    }
}
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
    #[inline]
    fn clone(&self) -> Self {
        Self::new()
    }
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
impl<T> ::core::fmt::Debug for __BindgenUnionField<T> {
    fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        fmt.write_str("__BindgenUnionField")
    }
}
impl<T> ::core::hash::Hash for __BindgenUnionField<T> {
    fn hash<H: ::core::hash::Hasher>(&self, _state: &mut H) {}
}
impl<T> ::core::cmp::PartialEq for __BindgenUnionField<T> {
    fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
        true
    }
}
impl<T> ::core::cmp::Eq for __BindgenUnionField<T> {}
#[allow(unused_imports)]
use self::super::root;
pub type __u_char = u8;
pub type __u_short = u16;
pub type __u_int = u32;
pub type __u_long = u64;
pub type __int8_t = i8;
pub type __uint8_t = u8;
pub type __int16_t = i16;
pub type __uint16_t = u16;
pub type __int32_t = i32;
pub type __uint32_t = u32;
pub type __int64_t = i64;
pub type __uint64_t = u64;
pub type __int_least8_t = root::__int8_t;
pub type __uint_least8_t = root::__uint8_t;
pub type __int_least16_t = root::__int16_t;
pub type __uint_least16_t = root::__uint16_t;
pub type __int_least32_t = root::__int32_t;
pub type __uint_least32_t = root::__uint32_t;
pub type __int_least64_t = root::__int64_t;
pub type __uint_least64_t = root::__uint64_t;
pub type __quad_t = i64;
pub type __u_quad_t = u64;
pub type __intmax_t = i64;
pub type __uintmax_t = u64;
pub type __dev_t = u64;
pub type __uid_t = u32;
pub type __gid_t = u32;
pub type __ino_t = u64;
pub type __ino64_t = u64;
pub type __mode_t = u32;
pub type __nlink_t = u64;
pub type __off_t = i64;
pub type __off64_t = i64;
pub type __pid_t = i32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [i32; 2usize],
}

pub type __clock_t = i64;
pub type __rlim_t = u64;
pub type __rlim64_t = u64;
pub type __id_t = u32;
pub type __time_t = i64;
pub type __useconds_t = u32;
pub type __suseconds_t = i64;
pub type __daddr_t = i32;
pub type __key_t = i32;
pub type __clockid_t = i32;
pub type __timer_t = *mut u8;
pub type __blksize_t = i64;
pub type __blkcnt_t = i64;
pub type __blkcnt64_t = i64;
pub type __fsblkcnt_t = u64;
pub type __fsblkcnt64_t = u64;
pub type __fsfilcnt_t = u64;
pub type __fsfilcnt64_t = u64;
pub type __fsword_t = i64;
pub type __ssize_t = i64;
pub type __syscall_slong_t = i64;
pub type __syscall_ulong_t = u64;
pub type __loff_t = root::__off64_t;
pub type __caddr_t = *mut u8;
pub type __intptr_t = i64;
pub type __socklen_t = u32;
pub type __sig_atomic_t = i32;
pub type int_least8_t = root::__int_least8_t;
pub type int_least16_t = root::__int_least16_t;
pub type int_least32_t = root::__int_least32_t;
pub type int_least64_t = root::__int_least64_t;
pub type uint_least8_t = root::__uint_least8_t;
pub type uint_least16_t = root::__uint_least16_t;
pub type uint_least32_t = root::__uint_least32_t;
pub type uint_least64_t = root::__uint_least64_t;
pub type int_fast8_t = i8;
pub type int_fast16_t = i64;
pub type int_fast32_t = i64;
pub type int_fast64_t = i64;
pub type uint_fast8_t = u8;
pub type uint_fast16_t = u64;
pub type uint_fast32_t = u64;
pub type uint_fast64_t = u64;
pub type intmax_t = root::__intmax_t;
pub type uintmax_t = root::__uintmax_t;
pub type size_t = u64;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
    pub __clang_max_align_nonce1: i64,
    pub __bindgen_padding_0: u64,
    pub __clang_max_align_nonce2: u128,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct imaxdiv_t {
    pub quot: i64,
    pub rem: i64,
}

extern "C" {
    pub fn imaxabs(__n: root::intmax_t) -> root::intmax_t;
}
extern "C" {
    pub fn imaxdiv(__numer: root::intmax_t, __denom: root::intmax_t) -> root::imaxdiv_t;
}
extern "C" {
    pub fn strtoimax(
        __nptr: *const u8,
        __endptr: *mut *mut u8,
        __base: i32,
    ) -> root::intmax_t;
}
extern "C" {
    pub fn strtoumax(
        __nptr: *const u8,
        __endptr: *mut *mut u8,
        __base: i32,
    ) -> root::uintmax_t;
}
extern "C" {
    pub fn wcstoimax(
        __nptr: *const u32,
        __endptr: *mut *mut u32,
        __base: i32,
    ) -> root::intmax_t;
}
extern "C" {
    pub fn wcstoumax(
        __nptr: *const u32,
        __endptr: *mut *mut u32,
        __base: i32,
    ) -> root::uintmax_t;
}
extern "C" {
    #[link_name = "\u{1}__cxa_demangle"]
    pub fn cxa_demangle(
        symbol_name: *const u8,
        unk1: *const u8,
        unk2: *const u8,
        result: *mut u32,
    ) -> *mut u8;
}
pub type s8 = i8;
pub type s16 = i16;
pub type s32 = i32;
pub type s64 = i64;
pub type s128 = root::__int128_t;
pub type uchar = u8;
pub type ulong = u64;
pub type uint = u32;
pub type Result = u32;
pub type Handle = u32;
pub type ThreadFunc = ::core::option::Option<unsafe extern "C" fn(arg1: *mut u8)>;
pub const Module_Kernel: root::_bindgen_ty_1 = 1;
pub const Module_Libnx: root::_bindgen_ty_1 = 345;
pub const Module_HomebrewAbi: root::_bindgen_ty_1 = 346;
pub const Module_HomebrewLoader: root::_bindgen_ty_1 = 347;
pub const Module_LibnxNvidia: root::_bindgen_ty_1 = 348;
pub const Module_LibnxBinder: root::_bindgen_ty_1 = 349;
#[doc = " Module values"]
pub type _bindgen_ty_1 = u32;
pub const KernelError_OutOfSessions: root::_bindgen_ty_2 = 7;
pub const KernelError_InvalidCapabilityDescriptor: root::_bindgen_ty_2 = 14;
pub const KernelError_NotImplemented: root::_bindgen_ty_2 = 33;
pub const KernelError_ThreadTerminating: root::_bindgen_ty_2 = 59;
pub const KernelError_OutOfDebugEvents: root::_bindgen_ty_2 = 70;
pub const KernelError_InvalidSize: root::_bindgen_ty_2 = 101;
pub const KernelError_InvalidAddress: root::_bindgen_ty_2 = 102;
pub const KernelError_ResourceExhausted: root::_bindgen_ty_2 = 103;
pub const KernelError_OutOfMemory: root::_bindgen_ty_2 = 104;
pub const KernelError_OutOfHandles: root::_bindgen_ty_2 = 105;
pub const KernelError_InvalidMemoryState: root::_bindgen_ty_2 = 106;
pub const KernelError_InvalidMemoryPermissions: root::_bindgen_ty_2 = 108;
pub const KernelError_InvalidMemoryRange: root::_bindgen_ty_2 = 110;
pub const KernelError_InvalidPriority: root::_bindgen_ty_2 = 112;
pub const KernelError_InvalidCoreId: root::_bindgen_ty_2 = 113;
pub const KernelError_InvalidHandle: root::_bindgen_ty_2 = 114;
pub const KernelError_InvalidUserBuffer: root::_bindgen_ty_2 = 115;
pub const KernelError_InvalidCombination: root::_bindgen_ty_2 = 116;
pub const KernelError_TimedOut: root::_bindgen_ty_2 = 117;
pub const KernelError_Cancelled: root::_bindgen_ty_2 = 118;
pub const KernelError_OutOfRange: root::_bindgen_ty_2 = 119;
pub const KernelError_InvalidEnumValue: root::_bindgen_ty_2 = 120;
pub const KernelError_NotFound: root::_bindgen_ty_2 = 121;
pub const KernelError_AlreadyExists: root::_bindgen_ty_2 = 122;
pub const KernelError_ConnectionClosed: root::_bindgen_ty_2 = 123;
pub const KernelError_UnhandledUserInterrupt: root::_bindgen_ty_2 = 124;
pub const KernelError_InvalidState: root::_bindgen_ty_2 = 125;
pub const KernelError_ReservedValue: root::_bindgen_ty_2 = 126;
pub const KernelError_InvalidHwBreakpoint: root::_bindgen_ty_2 = 127;
pub const KernelError_FatalUserException: root::_bindgen_ty_2 = 128;
pub const KernelError_OwnedByAnotherProcess: root::_bindgen_ty_2 = 129;
pub const KernelError_ConnectionRefused: root::_bindgen_ty_2 = 131;
pub const KernelError_OutOfResource: root::_bindgen_ty_2 = 132;
pub const KernelError_IpcMapFailed: root::_bindgen_ty_2 = 259;
pub const KernelError_IpcCmdbufTooSmall: root::_bindgen_ty_2 = 260;
pub const KernelError_NotDebugged: root::_bindgen_ty_2 = 520;
#[doc = " Kernel error codes"]
pub type _bindgen_ty_2 = u32;
pub const LibnxError_BadReloc: root::_bindgen_ty_3 = 1;
pub const LibnxError_OutOfMemory: root::_bindgen_ty_3 = 2;
pub const LibnxError_AlreadyMapped: root::_bindgen_ty_3 = 3;
pub const LibnxError_BadGetInfo_Stack: root::_bindgen_ty_3 = 4;
pub const LibnxError_BadGetInfo_Heap: root::_bindgen_ty_3 = 5;
pub const LibnxError_BadQueryMemory: root::_bindgen_ty_3 = 6;
pub const LibnxError_AlreadyInitialized: root::_bindgen_ty_3 = 7;
pub const LibnxError_NotInitialized: root::_bindgen_ty_3 = 8;
pub const LibnxError_NotFound: root::_bindgen_ty_3 = 9;
pub const LibnxError_IoError: root::_bindgen_ty_3 = 10;
pub const LibnxError_BadInput: root::_bindgen_ty_3 = 11;
pub const LibnxError_BadReent: root::_bindgen_ty_3 = 12;
pub const LibnxError_BufferProducerError: root::_bindgen_ty_3 = 13;
pub const LibnxError_HandleTooEarly: root::_bindgen_ty_3 = 14;
pub const LibnxError_HeapAllocFailed: root::_bindgen_ty_3 = 15;
pub const LibnxError_TooManyOverrides: root::_bindgen_ty_3 = 16;
pub const LibnxError_ParcelError: root::_bindgen_ty_3 = 17;
pub const LibnxError_BadGfxInit: root::_bindgen_ty_3 = 18;
pub const LibnxError_BadGfxEventWait: root::_bindgen_ty_3 = 19;
pub const LibnxError_BadGfxQueueBuffer: root::_bindgen_ty_3 = 20;
pub const LibnxError_BadGfxDequeueBuffer: root::_bindgen_ty_3 = 21;
pub const LibnxError_AppletCmdidNotFound: root::_bindgen_ty_3 = 22;
pub const LibnxError_BadAppletReceiveMessage: root::_bindgen_ty_3 = 23;
pub const LibnxError_BadAppletNotifyRunning: root::_bindgen_ty_3 = 24;
pub const LibnxError_BadAppletGetCurrentFocusState: root::_bindgen_ty_3 = 25;
pub const LibnxError_BadAppletGetOperationMode: root::_bindgen_ty_3 = 26;
pub const LibnxError_BadAppletGetPerformanceMode: root::_bindgen_ty_3 = 27;
pub const LibnxError_BadUsbCommsRead: root::_bindgen_ty_3 = 28;
pub const LibnxError_BadUsbCommsWrite: root::_bindgen_ty_3 = 29;
pub const LibnxError_InitFail_SM: root::_bindgen_ty_3 = 30;
pub const LibnxError_InitFail_AM: root::_bindgen_ty_3 = 31;
pub const LibnxError_InitFail_HID: root::_bindgen_ty_3 = 32;
pub const LibnxError_InitFail_FS: root::_bindgen_ty_3 = 33;
pub const LibnxError_BadGetInfo_Rng: root::_bindgen_ty_3 = 34;
pub const LibnxError_JitUnavailable: root::_bindgen_ty_3 = 35;
pub const LibnxError_WeirdKernel: root::_bindgen_ty_3 = 36;
pub const LibnxError_IncompatSysVer: root::_bindgen_ty_3 = 37;
pub const LibnxError_InitFail_Time: root::_bindgen_ty_3 = 38;
pub const LibnxError_TooManyDevOpTabs: root::_bindgen_ty_3 = 39;
pub const LibnxError_DomainMessageUnknownType: root::_bindgen_ty_3 = 40;
pub const LibnxError_DomainMessageTooManyObjectIds: root::_bindgen_ty_3 = 41;
pub const LibnxError_AppletFailedToInitialize: root::_bindgen_ty_3 = 42;
pub const LibnxError_ApmFailedToInitialize: root::_bindgen_ty_3 = 43;
pub const LibnxError_NvinfoFailedToInitialize: root::_bindgen_ty_3 = 44;
pub const LibnxError_NvbufFailedToInitialize: root::_bindgen_ty_3 = 45;
pub const LibnxError_LibAppletBadExit: root::_bindgen_ty_3 = 46;
pub const LibnxError_InvalidCmifOutHeader: root::_bindgen_ty_3 = 47;
pub const LibnxError_ShouldNotHappen: root::_bindgen_ty_3 = 48;
#[doc = " libnx error codes"]
pub type _bindgen_ty_3 = u32;
pub const LibnxBinderError_Unknown: root::_bindgen_ty_4 = 1;
pub const LibnxBinderError_NoMemory: root::_bindgen_ty_4 = 2;
pub const LibnxBinderError_InvalidOperation: root::_bindgen_ty_4 = 3;
pub const LibnxBinderError_BadValue: root::_bindgen_ty_4 = 4;
pub const LibnxBinderError_BadType: root::_bindgen_ty_4 = 5;
pub const LibnxBinderError_NameNotFound: root::_bindgen_ty_4 = 6;
pub const LibnxBinderError_PermissionDenied: root::_bindgen_ty_4 = 7;
pub const LibnxBinderError_NoInit: root::_bindgen_ty_4 = 8;
pub const LibnxBinderError_AlreadyExists: root::_bindgen_ty_4 = 9;
pub const LibnxBinderError_DeadObject: root::_bindgen_ty_4 = 10;
pub const LibnxBinderError_FailedTransaction: root::_bindgen_ty_4 = 11;
pub const LibnxBinderError_BadIndex: root::_bindgen_ty_4 = 12;
pub const LibnxBinderError_NotEnoughData: root::_bindgen_ty_4 = 13;
pub const LibnxBinderError_WouldBlock: root::_bindgen_ty_4 = 14;
pub const LibnxBinderError_TimedOut: root::_bindgen_ty_4 = 15;
pub const LibnxBinderError_UnknownTransaction: root::_bindgen_ty_4 = 16;
pub const LibnxBinderError_FdsNotAllowed: root::_bindgen_ty_4 = 17;
#[doc = " libnx binder error codes"]
pub type _bindgen_ty_4 = u32;
pub const LibnxNvidiaError_Unknown: root::_bindgen_ty_5 = 1;
#[doc = "< Maps to Nvidia: 1"]
pub const LibnxNvidiaError_NotImplemented: root::_bindgen_ty_5 = 2;
#[doc = "< Maps to Nvidia: 2"]
pub const LibnxNvidiaError_NotSupported: root::_bindgen_ty_5 = 3;
#[doc = "< Maps to Nvidia: 3"]
pub const LibnxNvidiaError_NotInitialized: root::_bindgen_ty_5 = 4;
#[doc = "< Maps to Nvidia: 4"]
pub const LibnxNvidiaError_BadParameter: root::_bindgen_ty_5 = 5;
#[doc = "< Maps to Nvidia: 5"]
pub const LibnxNvidiaError_Timeout: root::_bindgen_ty_5 = 6;
#[doc = "< Maps to Nvidia: 6"]
pub const LibnxNvidiaError_InsufficientMemory: root::_bindgen_ty_5 = 7;
#[doc = "< Maps to Nvidia: 7"]
pub const LibnxNvidiaError_ReadOnlyAttribute: root::_bindgen_ty_5 = 8;
#[doc = "< Maps to Nvidia: 8"]
pub const LibnxNvidiaError_InvalidState: root::_bindgen_ty_5 = 9;
#[doc = "< Maps to Nvidia: 9"]
pub const LibnxNvidiaError_InvalidAddress: root::_bindgen_ty_5 = 10;
#[doc = "< Maps to Nvidia: 10"]
pub const LibnxNvidiaError_InvalidSize: root::_bindgen_ty_5 = 11;
#[doc = "< Maps to Nvidia: 11"]
pub const LibnxNvidiaError_BadValue: root::_bindgen_ty_5 = 12;
#[doc = "< Maps to Nvidia: 13"]
pub const LibnxNvidiaError_AlreadyAllocated: root::_bindgen_ty_5 = 13;
#[doc = "< Maps to Nvidia: 14"]
pub const LibnxNvidiaError_Busy: root::_bindgen_ty_5 = 14;
#[doc = "< Maps to Nvidia: 15"]
pub const LibnxNvidiaError_ResourceError: root::_bindgen_ty_5 = 15;
#[doc = "< Maps to Nvidia: 16"]
pub const LibnxNvidiaError_CountMismatch: root::_bindgen_ty_5 = 16;
#[doc = "< Maps to Nvidia: 0x1000"]
pub const LibnxNvidiaError_SharedMemoryTooSmall: root::_bindgen_ty_5 = 17;
#[doc = "< Maps to Nvidia: 0x30003"]
pub const LibnxNvidiaError_FileOperationFailed: root::_bindgen_ty_5 = 18;
#[doc = "< Maps to Nvidia: 0x3000F"]
pub const LibnxNvidiaError_IoctlFailed: root::_bindgen_ty_5 = 19;
#[doc = " libnx nvidia error codes"]
pub type _bindgen_ty_5 = u32;

#[repr(C)]
pub struct nnosMutexType {
    pub curState: u8,
    pub isRecursiveMutex: bool,
    pub lockLevel: root::s32,
    pub _6: [u8; 18usize],
}

pub type Elf32_Half = u16;
pub type Elf64_Half = u16;
pub type Elf32_Word = u32;
pub type Elf32_Sword = i32;
pub type Elf64_Word = u32;
pub type Elf64_Sword = i32;
pub type Elf32_Xword = u64;
pub type Elf32_Sxword = i64;
pub type Elf64_Xword = u64;
pub type Elf64_Sxword = i64;
pub type Elf32_Addr = u32;
pub type Elf64_Addr = u64;
pub type Elf32_Off = u32;
pub type Elf64_Off = u64;
pub type Elf32_Section = u16;
pub type Elf64_Section = u16;
pub type Elf32_Versym = root::Elf32_Half;
pub type Elf64_Versym = root::Elf64_Half;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Ehdr {
    pub e_ident: [u8; 16usize],
    pub e_type: root::Elf32_Half,
    pub e_machine: root::Elf32_Half,
    pub e_version: root::Elf32_Word,
    pub e_entry: root::Elf32_Addr,
    pub e_phoff: root::Elf32_Off,
    pub e_shoff: root::Elf32_Off,
    pub e_flags: root::Elf32_Word,
    pub e_ehsize: root::Elf32_Half,
    pub e_phentsize: root::Elf32_Half,
    pub e_phnum: root::Elf32_Half,
    pub e_shentsize: root::Elf32_Half,
    pub e_shnum: root::Elf32_Half,
    pub e_shstrndx: root::Elf32_Half,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Ehdr {
    pub e_ident: [u8; 16usize],
    pub e_type: root::Elf64_Half,
    pub e_machine: root::Elf64_Half,
    pub e_version: root::Elf64_Word,
    pub e_entry: root::Elf64_Addr,
    pub e_phoff: root::Elf64_Off,
    pub e_shoff: root::Elf64_Off,
    pub e_flags: root::Elf64_Word,
    pub e_ehsize: root::Elf64_Half,
    pub e_phentsize: root::Elf64_Half,
    pub e_phnum: root::Elf64_Half,
    pub e_shentsize: root::Elf64_Half,
    pub e_shnum: root::Elf64_Half,
    pub e_shstrndx: root::Elf64_Half,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Shdr {
    pub sh_name: root::Elf32_Word,
    pub sh_type: root::Elf32_Word,
    pub sh_flags: root::Elf32_Word,
    pub sh_addr: root::Elf32_Addr,
    pub sh_offset: root::Elf32_Off,
    pub sh_size: root::Elf32_Word,
    pub sh_link: root::Elf32_Word,
    pub sh_info: root::Elf32_Word,
    pub sh_addralign: root::Elf32_Word,
    pub sh_entsize: root::Elf32_Word,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Shdr {
    pub sh_name: root::Elf64_Word,
    pub sh_type: root::Elf64_Word,
    pub sh_flags: root::Elf64_Xword,
    pub sh_addr: root::Elf64_Addr,
    pub sh_offset: root::Elf64_Off,
    pub sh_size: root::Elf64_Xword,
    pub sh_link: root::Elf64_Word,
    pub sh_info: root::Elf64_Word,
    pub sh_addralign: root::Elf64_Xword,
    pub sh_entsize: root::Elf64_Xword,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Chdr {
    pub ch_type: root::Elf32_Word,
    pub ch_size: root::Elf32_Word,
    pub ch_addralign: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Chdr {
    pub ch_type: root::Elf64_Word,
    pub ch_reserved: root::Elf64_Word,
    pub ch_size: root::Elf64_Xword,
    pub ch_addralign: root::Elf64_Xword,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Sym {
    pub st_name: root::Elf32_Word,
    pub st_value: root::Elf32_Addr,
    pub st_size: root::Elf32_Word,
    pub st_info: u8,
    pub st_other: u8,
    pub st_shndx: root::Elf32_Section,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Sym {
    pub st_name: root::Elf64_Word,
    pub st_info: u8,
    pub st_other: u8,
    pub st_shndx: root::Elf64_Section,
    pub st_value: root::Elf64_Addr,
    pub st_size: root::Elf64_Xword,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Syminfo {
    pub si_boundto: root::Elf32_Half,
    pub si_flags: root::Elf32_Half,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Syminfo {
    pub si_boundto: root::Elf64_Half,
    pub si_flags: root::Elf64_Half,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Rel {
    pub r_offset: root::Elf32_Addr,
    pub r_info: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Rel {
    pub r_offset: root::Elf64_Addr,
    pub r_info: root::Elf64_Xword,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Rela {
    pub r_offset: root::Elf32_Addr,
    pub r_info: root::Elf32_Word,
    pub r_addend: root::Elf32_Sword,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Rela {
    pub r_offset: root::Elf64_Addr,
    pub r_info: root::Elf64_Xword,
    pub r_addend: root::Elf64_Sxword,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Phdr {
    pub p_type: root::Elf32_Word,
    pub p_offset: root::Elf32_Off,
    pub p_vaddr: root::Elf32_Addr,
    pub p_paddr: root::Elf32_Addr,
    pub p_filesz: root::Elf32_Word,
    pub p_memsz: root::Elf32_Word,
    pub p_flags: root::Elf32_Word,
    pub p_align: root::Elf32_Word,
}

pub struct Elf64_Phdr {
    pub p_type: root::Elf64_Word,
    pub p_flags: root::Elf64_Word,
    pub p_offset: root::Elf64_Off,
    pub p_vaddr: root::Elf64_Addr,
    pub p_paddr: root::Elf64_Addr,
    pub p_filesz: root::Elf64_Xword,
    pub p_memsz: root::Elf64_Xword,
    pub p_align: root::Elf64_Xword,
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct Elf32_Dyn {
    pub d_tag: root::Elf32_Sword,
    pub d_un: root::Elf32_Dyn__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union Elf32_Dyn__bindgen_ty_1 {
    pub d_val: root::Elf32_Word,
    pub d_ptr: root::Elf32_Addr,
    _bindgen_union_align: u32,
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct Elf64_Dyn {
    pub d_tag: root::Elf64_Sxword,
    pub d_un: root::Elf64_Dyn__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union Elf64_Dyn__bindgen_ty_1 {
    pub d_val: root::Elf64_Xword,
    pub d_ptr: root::Elf64_Addr,
    _bindgen_union_align: u64,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Verdef {
    pub vd_version: root::Elf32_Half,
    pub vd_flags: root::Elf32_Half,
    pub vd_ndx: root::Elf32_Half,
    pub vd_cnt: root::Elf32_Half,
    pub vd_hash: root::Elf32_Word,
    pub vd_aux: root::Elf32_Word,
    pub vd_next: root::Elf32_Word,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Verdef {
    pub vd_version: root::Elf64_Half,
    pub vd_flags: root::Elf64_Half,
    pub vd_ndx: root::Elf64_Half,
    pub vd_cnt: root::Elf64_Half,
    pub vd_hash: root::Elf64_Word,
    pub vd_aux: root::Elf64_Word,
    pub vd_next: root::Elf64_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Verdaux {
    pub vda_name: root::Elf32_Word,
    pub vda_next: root::Elf32_Word,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Verdaux {
    pub vda_name: root::Elf64_Word,
    pub vda_next: root::Elf64_Word,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Verneed {
    pub vn_version: root::Elf32_Half,
    pub vn_cnt: root::Elf32_Half,
    pub vn_file: root::Elf32_Word,
    pub vn_aux: root::Elf32_Word,
    pub vn_next: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Verneed {
    pub vn_version: root::Elf64_Half,
    pub vn_cnt: root::Elf64_Half,
    pub vn_file: root::Elf64_Word,
    pub vn_aux: root::Elf64_Word,
    pub vn_next: root::Elf64_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Vernaux {
    pub vna_hash: root::Elf32_Word,
    pub vna_flags: root::Elf32_Half,
    pub vna_other: root::Elf32_Half,
    pub vna_name: root::Elf32_Word,
    pub vna_next: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Vernaux {
    pub vna_hash: root::Elf64_Word,
    pub vna_flags: root::Elf64_Half,
    pub vna_other: root::Elf64_Half,
    pub vna_name: root::Elf64_Word,
    pub vna_next: root::Elf64_Word,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct Elf32_auxv_t {
    pub a_type: u32,
    pub a_un: root::Elf32_auxv_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union Elf32_auxv_t__bindgen_ty_1 {
    pub a_val: u32,
    _bindgen_union_align: u32,
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct Elf64_auxv_t {
    pub a_type: u64,
    pub a_un: root::Elf64_auxv_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union Elf64_auxv_t__bindgen_ty_1 {
    pub a_val: u64,
    _bindgen_union_align: u64,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Nhdr {
    pub n_namesz: root::Elf32_Word,
    pub n_descsz: root::Elf32_Word,
    pub n_type: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Nhdr {
    pub n_namesz: root::Elf64_Word,
    pub n_descsz: root::Elf64_Word,
    pub n_type: root::Elf64_Word,
}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Move {
    pub m_value: root::Elf32_Xword,
    pub m_info: root::Elf32_Word,
    pub m_poffset: root::Elf32_Word,
    pub m_repeat: root::Elf32_Half,
    pub m_stride: root::Elf32_Half,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Move {
    pub m_value: root::Elf64_Xword,
    pub m_info: root::Elf64_Xword,
    pub m_poffset: root::Elf64_Xword,
    pub m_repeat: root::Elf64_Half,
    pub m_stride: root::Elf64_Half,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union Elf32_gptab {
    pub gt_header: root::Elf32_gptab__bindgen_ty_1,
    pub gt_entry: root::Elf32_gptab__bindgen_ty_2,
    _bindgen_union_align: [u32; 2usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_gptab__bindgen_ty_1 {
    pub gt_current_g_value: root::Elf32_Word,
    pub gt_unused: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_gptab__bindgen_ty_2 {
    pub gt_g_value: root::Elf32_Word,
    pub gt_bytes: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_RegInfo {
    pub ri_gprmask: root::Elf32_Word,
    pub ri_cprmask: [root::Elf32_Word; 4usize],
    pub ri_gp_value: root::Elf32_Sword,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf_Options {
    pub kind: u8,
    pub size: u8,
    pub section: root::Elf32_Section,
    pub info: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf_Options_Hw {
    pub hwp_flags1: root::Elf32_Word,
    pub hwp_flags2: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf32_Lib {
    pub l_name: root::Elf32_Word,
    pub l_time_stamp: root::Elf32_Word,
    pub l_checksum: root::Elf32_Word,
    pub l_version: root::Elf32_Word,
    pub l_flags: root::Elf32_Word,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf64_Lib {
    pub l_name: root::Elf64_Word,
    pub l_time_stamp: root::Elf64_Word,
    pub l_checksum: root::Elf64_Word,
    pub l_version: root::Elf64_Word,
    pub l_flags: root::Elf64_Word,
}
pub type Elf32_Conflict = root::Elf32_Addr;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Elf_MIPS_ABIFlags_v0 {
    pub version: root::Elf32_Half,
    pub isa_level: u8,
    pub isa_rev: u8,
    pub gpr_size: u8,
    pub cpr1_size: u8,
    pub cpr2_size: u8,
    pub fp_abi: u8,
    pub isa_ext: root::Elf32_Word,
    pub ases: root::Elf32_Word,
    pub flags1: root::Elf32_Word,
    pub flags2: root::Elf32_Word,
}
pub const Val_GNU_MIPS_ABI_FP_ANY: root::_bindgen_ty_6 = 0;
pub const Val_GNU_MIPS_ABI_FP_DOUBLE: root::_bindgen_ty_6 = 1;
pub const Val_GNU_MIPS_ABI_FP_SINGLE: root::_bindgen_ty_6 = 2;
pub const Val_GNU_MIPS_ABI_FP_SOFT: root::_bindgen_ty_6 = 3;
pub const Val_GNU_MIPS_ABI_FP_OLD_64: root::_bindgen_ty_6 = 4;
pub const Val_GNU_MIPS_ABI_FP_XX: root::_bindgen_ty_6 = 5;
pub const Val_GNU_MIPS_ABI_FP_64: root::_bindgen_ty_6 = 6;
pub const Val_GNU_MIPS_ABI_FP_64A: root::_bindgen_ty_6 = 7;
pub const Val_GNU_MIPS_ABI_FP_MAX: root::_bindgen_ty_6 = 7;
pub type _bindgen_ty_6 = u32;

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct iovec {
    pub iov_base: *mut u8,
    pub iov_len: root::size_t,
}
pub type u_char = root::__u_char;
pub type u_short = root::__u_short;
pub type u_int = root::__u_int;
pub type u_long = root::__u_long;
pub type quad_t = root::__quad_t;
pub type u_quad_t = root::__u_quad_t;
pub type fsid_t = root::__fsid_t;
pub type loff_t = root::__loff_t;
pub type ino_t = root::__ino_t;
pub type ino64_t = root::__ino64_t;
pub type dev_t = root::__dev_t;
pub type gid_t = root::__gid_t;
pub type mode_t = root::__mode_t;
pub type nlink_t = root::__nlink_t;
pub type uid_t = root::__uid_t;
pub type off_t = root::__off_t;
pub type off64_t = root::__off64_t;
pub type pid_t = root::__pid_t;
pub type id_t = root::__id_t;
pub type ssize_t = root::__ssize_t;
pub type daddr_t = root::__daddr_t;
pub type caddr_t = root::__caddr_t;
pub type key_t = root::__key_t;
pub type clock_t = root::__clock_t;
pub type clockid_t = root::__clockid_t;
pub type time_t = root::__time_t;
pub type timer_t = root::__timer_t;
pub type useconds_t = root::__useconds_t;
pub type suseconds_t = root::__suseconds_t;
pub type ushort = u16;
pub type u_int8_t = root::__uint8_t;
pub type u_int16_t = root::__uint16_t;
pub type u_int32_t = root::__uint32_t;
pub type u_int64_t = root::__uint64_t;
pub type register_t = i64;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
    pub __val: [u64; 16usize],
}
pub type sigset_t = root::__sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
    pub tv_sec: root::__time_t,
    pub tv_usec: root::__suseconds_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
    pub tv_sec: root::__time_t,
    pub tv_nsec: root::__syscall_slong_t,
}
pub type __fd_mask = i64;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
    pub fds_bits: [root::__fd_mask; 16usize],
}
pub type fd_mask = root::__fd_mask;
pub type blksize_t = root::__blksize_t;
pub type blkcnt_t = root::__blkcnt_t;
pub type fsblkcnt_t = root::__fsblkcnt_t;
pub type fsfilcnt_t = root::__fsfilcnt_t;
pub type blkcnt64_t = root::__blkcnt64_t;
pub type fsblkcnt64_t = root::__fsblkcnt64_t;
pub type fsfilcnt64_t = root::__fsfilcnt64_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_rwlock_arch_t {
    pub __readers: u32,
    pub __writers: u32,
    pub __wrphase_futex: u32,
    pub __writers_futex: u32,
    pub __pad3: u32,
    pub __pad4: u32,
    pub __cur_writer: i32,
    pub __shared: i32,
    pub __rwelision: i8,
    pub __pad1: [u8; 7usize],
    pub __pad2: u64,
    pub __flags: u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
    pub __prev: *mut root::__pthread_internal_list,
    pub __next: *mut root::__pthread_internal_list,
}
pub type __pthread_list_t = root::__pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s {
    pub __lock: i32,
    pub __count: u32,
    pub __owner: i32,
    pub __nusers: u32,
    pub __kind: i32,
    pub __spins: i16,
    pub __elision: i16,
    pub __list: root::__pthread_list_t,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
    pub __bindgen_anon_1: root::__pthread_cond_s__bindgen_ty_1,
    pub __bindgen_anon_2: root::__pthread_cond_s__bindgen_ty_2,
    pub __g_refs: [u32; 2usize],
    pub __g_size: [u32; 2usize],
    pub __g1_orig_size: u32,
    pub __wrefs: u32,
    pub __g_signals: [u32; 2usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_1 {
    pub __wseq: u64,
    pub __wseq32: root::__pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
    _bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
    pub __low: u32,
    pub __high: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_2 {
    pub __g1_start: u64,
    pub __g1_start32: root::__pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
    _bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
    pub __low: u32,
    pub __high: u32,
}
pub type pthread_t = u64;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
    pub __size: [u8; 4usize],
    pub __align: i32,
    _bindgen_union_align: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
    pub __size: [u8; 4usize],
    pub __align: i32,
    _bindgen_union_align: u32,
}
pub type pthread_key_t = u32;
pub type pthread_once_t = i32;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
    pub __size: [u8; 56usize],
    pub __align: i64,
    _bindgen_union_align: [u64; 7usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
    pub __data: root::__pthread_mutex_s,
    pub __size: [u8; 40usize],
    pub __align: i64,
    _bindgen_union_align: [u64; 5usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
    pub __data: root::__pthread_cond_s,
    pub __size: [u8; 48usize],
    pub __align: i64,
    _bindgen_union_align: [u64; 6usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
    pub __data: root::__pthread_rwlock_arch_t,
    pub __size: [u8; 56usize],
    pub __align: i64,
    _bindgen_union_align: [u64; 7usize],
}

#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
    pub __size: [u8; 8usize],
    pub __align: i64,
    _bindgen_union_align: u64,
}
pub type pthread_spinlock_t = i32;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
    pub __size: [u8; 32usize],
    pub __align: i64,
    _bindgen_union_align: [u64; 4usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
    pub __size: [u8; 4usize],
    pub __align: i32,
    _bindgen_union_align: u32,
}
pub type socklen_t = root::__socklen_t;
pub const __socket_type_SOCK_STREAM: root::__socket_type = 1;
pub const __socket_type_SOCK_DGRAM: root::__socket_type = 2;
pub const __socket_type_SOCK_RAW: root::__socket_type = 3;
pub const __socket_type_SOCK_RDM: root::__socket_type = 4;
pub const __socket_type_SOCK_SEQPACKET: root::__socket_type = 5;
pub const __socket_type_SOCK_DCCP: root::__socket_type = 6;
pub const __socket_type_SOCK_PACKET: root::__socket_type = 10;
pub const __socket_type_SOCK_CLOEXEC: root::__socket_type = 524288;
pub const __socket_type_SOCK_NONBLOCK: root::__socket_type = 2048;
pub type __socket_type = u32;
pub type sa_family_t = u16;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr {
    pub sa_family: root::sa_family_t,
    pub sa_data: [u8; 14usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sockaddr_storage {
    pub ss_family: root::sa_family_t,
    pub __ss_padding: [u8; 118usize],
    pub __ss_align: u64,
}
pub const MSG_OOB: root::_bindgen_ty_7 = 1;
pub const MSG_PEEK: root::_bindgen_ty_7 = 2;
pub const MSG_DONTROUTE: root::_bindgen_ty_7 = 4;
pub const MSG_TRYHARD: root::_bindgen_ty_7 = 4;
pub const MSG_CTRUNC: root::_bindgen_ty_7 = 8;
pub const MSG_PROXY: root::_bindgen_ty_7 = 16;
pub const MSG_TRUNC: root::_bindgen_ty_7 = 32;
pub const MSG_DONTWAIT: root::_bindgen_ty_7 = 64;
pub const MSG_EOR: root::_bindgen_ty_7 = 128;
pub const MSG_WAITALL: root::_bindgen_ty_7 = 256;
pub const MSG_FIN: root::_bindgen_ty_7 = 512;
pub const MSG_SYN: root::_bindgen_ty_7 = 1024;
pub const MSG_CONFIRM: root::_bindgen_ty_7 = 2048;
pub const MSG_RST: root::_bindgen_ty_7 = 4096;
pub const MSG_ERRQUEUE: root::_bindgen_ty_7 = 8192;
pub const MSG_NOSIGNAL: root::_bindgen_ty_7 = 16384;
pub const MSG_MORE: root::_bindgen_ty_7 = 32768;
pub const MSG_WAITFORONE: root::_bindgen_ty_7 = 65536;
pub const MSG_BATCH: root::_bindgen_ty_7 = 262144;
pub const MSG_ZEROCOPY: root::_bindgen_ty_7 = 67108864;
pub const MSG_FASTOPEN: root::_bindgen_ty_7 = 536870912;
pub const MSG_CMSG_CLOEXEC: root::_bindgen_ty_7 = 1073741824;
pub type _bindgen_ty_7 = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct msghdr {
    pub msg_name: *mut u8,
    pub msg_namelen: root::socklen_t,
    pub msg_iov: *mut root::iovec,
    pub msg_iovlen: root::size_t,
    pub msg_control: *mut u8,
    pub msg_controllen: root::size_t,
    pub msg_flags: i32,
}
#[repr(C)]
#[derive(Debug)]
pub struct cmsghdr {
    pub cmsg_len: root::size_t,
    pub cmsg_level: i32,
    pub cmsg_type: i32,
    pub __cmsg_data: root::__IncompleteArrayField<u8>,
}
pub const SCM_RIGHTS: root::_bindgen_ty_8 = 1;
pub const SCM_CREDENTIALS: root::_bindgen_ty_8 = 2;
pub type _bindgen_ty_8 = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ucred {
    pub pid: root::pid_t,
    pub uid: root::uid_t,
    pub gid: root::gid_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __kernel_fd_set {
    pub fds_bits: [u64; 16usize],
}
pub type __kernel_sighandler_t =
    ::core::option::Option<unsafe extern "C" fn(arg1: i32)>;
pub type __kernel_key_t = i32;
pub type __kernel_mqd_t = i32;
pub type __kernel_old_uid_t = u16;
pub type __kernel_old_gid_t = u16;
pub type __kernel_old_dev_t = u64;
pub type __kernel_long_t = i64;
pub type __kernel_ulong_t = u64;
pub type __kernel_ino_t = root::__kernel_ulong_t;
pub type __kernel_mode_t = u32;
pub type __kernel_pid_t = i32;
pub type __kernel_ipc_pid_t = i32;
pub type __kernel_uid_t = u32;
pub type __kernel_gid_t = u32;
pub type __kernel_suseconds_t = root::__kernel_long_t;
pub type __kernel_daddr_t = i32;
pub type __kernel_uid32_t = u32;
pub type __kernel_gid32_t = u32;
pub type __kernel_size_t = root::__kernel_ulong_t;
pub type __kernel_ssize_t = root::__kernel_long_t;
pub type __kernel_ptrdiff_t = root::__kernel_long_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __kernel_fsid_t {
    pub val: [i32; 2usize],
}
pub type __kernel_off_t = root::__kernel_long_t;
pub type __kernel_loff_t = i64;
pub type __kernel_time_t = root::__kernel_long_t;
pub type __kernel_time64_t = i64;
pub type __kernel_clock_t = root::__kernel_long_t;
pub type __kernel_timer_t = i32;
pub type __kernel_clockid_t = i32;
pub type __kernel_caddr_t = *mut u8;
pub type __kernel_uid16_t = u16;
pub type __kernel_gid16_t = u16;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct linger {
    pub l_onoff: i32,
    pub l_linger: i32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct osockaddr {
    pub sa_family: u16,
    pub sa_data: [u8; 14usize],
}
pub const SHUT_RD: root::_bindgen_ty_9 = 0;
pub const SHUT_WR: root::_bindgen_ty_9 = 1;
pub const SHUT_RDWR: root::_bindgen_ty_9 = 2;
pub type _bindgen_ty_9 = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mmsghdr {
    pub msg_hdr: root::msghdr,
    pub msg_len: u32,
}
pub type __int128_t = i128;
pub type __uint128_t = u128;