-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbindings.rs
3815 lines (3125 loc) · 196 KB
/
bindings.rs
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
# [repr ( C )] # [derive ( Default )] pub struct __IncompleteArrayField < T > (:: std :: marker :: PhantomData < T > , [ T ; 0 ]) ;
impl < T > __IncompleteArrayField < T > {
# [inline] pub const fn new () -> Self {
__IncompleteArrayField (:: std :: marker :: PhantomData , [ ])
}
# [inline] pub unsafe fn as_ptr (& self) -> * const T {
:: std :: mem :: transmute (self)
}
# [inline] pub unsafe fn as_mut_ptr (& mut self) -> * mut T {
:: std :: mem :: transmute (self)
}
# [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] {
:: std :: slice :: from_raw_parts (self . as_ptr ( ) , len)
}
# [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] {
:: std :: slice :: from_raw_parts_mut (self . as_mut_ptr ( ) , len)
}
}
impl < T > :: std :: fmt :: Debug for __IncompleteArrayField < T > {
fn fmt (& self , fmt : & mut :: std :: fmt :: Formatter < '_ >) -> :: std :: fmt :: Result {
fmt . write_str ("__IncompleteArrayField")
}
}
impl < T > :: std :: clone :: Clone for __IncompleteArrayField < T > {
# [inline] fn clone (& self) -> Self {
Self :: new ()
}
}
pub const VSFTP_DEFAULT_CONFIG : & 'static [u8 ; 17usize] = b"/etc/vsftpd.conf\0" ;
pub const VSFTP_COMMAND_FD : u32 = 0 ;
pub const VSFTP_PASSWORD_MAX : u32 = 128 ;
pub const VSFTP_USERNAME_MAX : u32 = 128 ;
pub const VSFTP_MAX_COMMAND_LINE : u32 = 4096 ;
pub const VSFTP_DATA_BUFSIZE : u32 = 65536 ;
pub const VSFTP_DIR_BUFSIZE : u32 = 16384 ;
pub const VSFTP_MATCHITERS_MAX : u32 = 1000 ;
pub const VSFTP_PATH_MAX : u32 = 4096 ;
pub const VSFTP_CONF_FILE_MAX : u32 = 100000 ;
pub const VSFTP_LISTEN_BACKLOG : u32 = 32 ;
pub const VSFTP_SECURE_UMASK : u32 = 63 ;
pub const VSFTP_ROOT_UID : u32 = 0 ;
pub const VSFTP_PRIVSOCK_MAXSTR : u32 = 131072 ;
pub const VSFTP_AS_LIMIT : u32 = 209715200 ;
pub const FTP_DATACONN : u32 = 150 ;
pub const FTP_NOOPOK : u32 = 200 ;
pub const FTP_TYPEOK : u32 = 200 ;
pub const FTP_PORTOK : u32 = 200 ;
pub const FTP_EPRTOK : u32 = 200 ;
pub const FTP_UMASKOK : u32 = 200 ;
pub const FTP_CHMODOK : u32 = 200 ;
pub const FTP_EPSVALLOK : u32 = 200 ;
pub const FTP_STRUOK : u32 = 200 ;
pub const FTP_MODEOK : u32 = 200 ;
pub const FTP_PBSZOK : u32 = 200 ;
pub const FTP_PROTOK : u32 = 200 ;
pub const FTP_OPTSOK : u32 = 200 ;
pub const FTP_ALLOOK : u32 = 202 ;
pub const FTP_FEAT : u32 = 211 ;
pub const FTP_STATOK : u32 = 211 ;
pub const FTP_SIZEOK : u32 = 213 ;
pub const FTP_MDTMOK : u32 = 213 ;
pub const FTP_STATFILE_OK : u32 = 213 ;
pub const FTP_SITEHELP : u32 = 214 ;
pub const FTP_HELP : u32 = 214 ;
pub const FTP_SYSTOK : u32 = 215 ;
pub const FTP_GREET : u32 = 220 ;
pub const FTP_GOODBYE : u32 = 221 ;
pub const FTP_ABOR_NOCONN : u32 = 225 ;
pub const FTP_TRANSFEROK : u32 = 226 ;
pub const FTP_ABOROK : u32 = 226 ;
pub const FTP_PASVOK : u32 = 227 ;
pub const FTP_EPSVOK : u32 = 229 ;
pub const FTP_LOGINOK : u32 = 230 ;
pub const FTP_AUTHOK : u32 = 234 ;
pub const FTP_CWDOK : u32 = 250 ;
pub const FTP_RMDIROK : u32 = 250 ;
pub const FTP_DELEOK : u32 = 250 ;
pub const FTP_RENAMEOK : u32 = 250 ;
pub const FTP_PWDOK : u32 = 257 ;
pub const FTP_MKDIROK : u32 = 257 ;
pub const FTP_GIVEPWORD : u32 = 331 ;
pub const FTP_RESTOK : u32 = 350 ;
pub const FTP_RNFROK : u32 = 350 ;
pub const FTP_IDLE_TIMEOUT : u32 = 421 ;
pub const FTP_DATA_TIMEOUT : u32 = 421 ;
pub const FTP_TOO_MANY_USERS : u32 = 421 ;
pub const FTP_IP_LIMIT : u32 = 421 ;
pub const FTP_IP_DENY : u32 = 421 ;
pub const FTP_TLS_FAIL : u32 = 421 ;
pub const FTP_BADSENDCONN : u32 = 425 ;
pub const FTP_BADSENDNET : u32 = 426 ;
pub const FTP_BADSENDFILE : u32 = 451 ;
pub const FTP_BADCMD : u32 = 500 ;
pub const FTP_BADOPTS : u32 = 501 ;
pub const FTP_COMMANDNOTIMPL : u32 = 502 ;
pub const FTP_NEEDUSER : u32 = 503 ;
pub const FTP_NEEDRNFR : u32 = 503 ;
pub const FTP_BADPBSZ : u32 = 503 ;
pub const FTP_BADPROT : u32 = 503 ;
pub const FTP_BADSTRU : u32 = 504 ;
pub const FTP_BADMODE : u32 = 504 ;
pub const FTP_BADAUTH : u32 = 504 ;
pub const FTP_NOSUCHPROT : u32 = 504 ;
pub const FTP_NEEDENCRYPT : u32 = 522 ;
pub const FTP_EPSVBAD : u32 = 522 ;
pub const FTP_DATATLSBAD : u32 = 522 ;
pub const FTP_LOGINERR : u32 = 530 ;
pub const FTP_NOHANDLEPROT : u32 = 536 ;
pub const FTP_FILEFAIL : u32 = 550 ;
pub const FTP_NOPERM : u32 = 550 ;
pub const FTP_UPLOADFAIL : u32 = 553 ;
pub const _SYS_TYPES_H : u32 = 1 ;
pub const _FEATURES_H : u32 = 1 ;
pub const _ISOC95_SOURCE : u32 = 1 ;
pub const _ISOC99_SOURCE : u32 = 1 ;
pub const _ISOC11_SOURCE : u32 = 1 ;
pub const _POSIX_SOURCE : u32 = 1 ;
pub const _POSIX_C_SOURCE : u32 = 200809 ;
pub const _XOPEN_SOURCE : u32 = 700 ;
pub const _XOPEN_SOURCE_EXTENDED : u32 = 1 ;
pub const _LARGEFILE64_SOURCE : u32 = 1 ;
pub const _DEFAULT_SOURCE : u32 = 1 ;
pub const _ATFILE_SOURCE : u32 = 1 ;
pub const __USE_ISOC11 : u32 = 1 ;
pub const __USE_ISOC99 : u32 = 1 ;
pub const __USE_ISOC95 : u32 = 1 ;
pub const __USE_ISOCXX11 : u32 = 1 ;
pub const __USE_POSIX : u32 = 1 ;
pub const __USE_POSIX2 : u32 = 1 ;
pub const __USE_POSIX199309 : u32 = 1 ;
pub const __USE_POSIX199506 : u32 = 1 ;
pub const __USE_XOPEN2K : u32 = 1 ;
pub const __USE_XOPEN2K8 : u32 = 1 ;
pub const __USE_XOPEN : u32 = 1 ;
pub const __USE_XOPEN_EXTENDED : u32 = 1 ;
pub const __USE_UNIX98 : u32 = 1 ;
pub const _LARGEFILE_SOURCE : u32 = 1 ;
pub const __USE_XOPEN2K8XSI : u32 = 1 ;
pub const __USE_XOPEN2KXSI : u32 = 1 ;
pub const __USE_LARGEFILE : u32 = 1 ;
pub const __USE_LARGEFILE64 : u32 = 1 ;
pub const __USE_MISC : u32 = 1 ;
pub const __USE_ATFILE : u32 = 1 ;
pub const __USE_GNU : u32 = 1 ;
pub const __USE_FORTIFY_LEVEL : u32 = 0 ;
pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 1 ;
pub const _STDC_PREDEF_H : u32 = 1 ;
pub const __STDC_IEC_559__ : u32 = 1 ;
pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ;
pub const __STDC_ISO_10646__ : u32 = 201706 ;
pub const __STDC_NO_THREADS__ : u32 = 1 ;
pub const __GNU_LIBRARY__ : u32 = 6 ;
pub const __GLIBC__ : u32 = 2 ;
pub const __GLIBC_MINOR__ : u32 = 27 ;
pub const _SYS_CDEFS_H : u32 = 1 ;
pub const __glibc_c99_flexarr_available : u32 = 1 ;
pub const __WORDSIZE : u32 = 64 ;
pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ;
pub const __SYSCALL_WORDSIZE : u32 = 64 ;
pub const __HAVE_GENERIC_SELECTION : u32 = 0 ;
pub const _BITS_TYPES_H : u32 = 1 ;
pub const _BITS_TYPESIZES_H : u32 = 1 ;
pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ;
pub const __INO_T_MATCHES_INO64_T : u32 = 1 ;
pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ;
pub const __FD_SETSIZE : u32 = 1024 ;
pub const __clock_t_defined : u32 = 1 ;
pub const __clockid_t_defined : u32 = 1 ;
pub const __time_t_defined : u32 = 1 ;
pub const __timer_t_defined : u32 = 1 ;
pub const _BITS_STDINT_INTN_H : u32 = 1 ;
pub const __BIT_TYPES_DEFINED__ : u32 = 1 ;
pub const _ENDIAN_H : u32 = 1 ;
pub const __LITTLE_ENDIAN : u32 = 1234 ;
pub const __BIG_ENDIAN : u32 = 4321 ;
pub const __PDP_ENDIAN : u32 = 3412 ;
pub const __BYTE_ORDER : u32 = 1234 ;
pub const __FLOAT_WORD_ORDER : u32 = 1234 ;
pub const LITTLE_ENDIAN : u32 = 1234 ;
pub const BIG_ENDIAN : u32 = 4321 ;
pub const PDP_ENDIAN : u32 = 3412 ;
pub const BYTE_ORDER : u32 = 1234 ;
pub const _BITS_BYTESWAP_H : u32 = 1 ;
pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ;
pub const _SYS_SELECT_H : u32 = 1 ;
pub const __FD_ZERO_STOS : & 'static [u8 ; 6usize] = b"stosq\0" ;
pub const __sigset_t_defined : u32 = 1 ;
pub const __timeval_defined : u32 = 1 ;
pub const __timespec_defined : u32 = 1 ;
pub const FD_SETSIZE : u32 = 1024 ;
pub const _SYS_SYSMACROS_H : u32 = 1 ;
pub const _BITS_SYSMACROS_H : u32 = 1 ;
pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ;
pub const _THREAD_SHARED_TYPES_H : u32 = 1 ;
pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ;
pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ;
pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ;
pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ;
pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ;
pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ;
pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ;
pub const __PTHREAD_MUTEX_LOCK_ELISION : u32 = 1 ;
pub const __PTHREAD_MUTEX_NUSERS_AFTER_KIND : u32 = 0 ;
pub const __PTHREAD_MUTEX_USE_UNION : u32 = 0 ;
pub const __PTHREAD_RWLOCK_INT_FLAGS_SHARED : u32 = 1 ;
pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ;
pub const __have_pthread_attr_t : u32 = 1 ;
pub const _SYS_SOCKET_H : u32 = 1 ;
pub const __iovec_defined : u32 = 1 ;
pub const PF_UNSPEC : u32 = 0 ;
pub const PF_LOCAL : u32 = 1 ;
pub const PF_UNIX : u32 = 1 ;
pub const PF_FILE : u32 = 1 ;
pub const PF_INET : u32 = 2 ;
pub const PF_AX25 : u32 = 3 ;
pub const PF_IPX : u32 = 4 ;
pub const PF_APPLETALK : u32 = 5 ;
pub const PF_NETROM : u32 = 6 ;
pub const PF_BRIDGE : u32 = 7 ;
pub const PF_ATMPVC : u32 = 8 ;
pub const PF_X25 : u32 = 9 ;
pub const PF_INET6 : u32 = 10 ;
pub const PF_ROSE : u32 = 11 ;
pub const PF_DECnet : u32 = 12 ;
pub const PF_NETBEUI : u32 = 13 ;
pub const PF_SECURITY : u32 = 14 ;
pub const PF_KEY : u32 = 15 ;
pub const PF_NETLINK : u32 = 16 ;
pub const PF_ROUTE : u32 = 16 ;
pub const PF_PACKET : u32 = 17 ;
pub const PF_ASH : u32 = 18 ;
pub const PF_ECONET : u32 = 19 ;
pub const PF_ATMSVC : u32 = 20 ;
pub const PF_RDS : u32 = 21 ;
pub const PF_SNA : u32 = 22 ;
pub const PF_IRDA : u32 = 23 ;
pub const PF_PPPOX : u32 = 24 ;
pub const PF_WANPIPE : u32 = 25 ;
pub const PF_LLC : u32 = 26 ;
pub const PF_IB : u32 = 27 ;
pub const PF_MPLS : u32 = 28 ;
pub const PF_CAN : u32 = 29 ;
pub const PF_TIPC : u32 = 30 ;
pub const PF_BLUETOOTH : u32 = 31 ;
pub const PF_IUCV : u32 = 32 ;
pub const PF_RXRPC : u32 = 33 ;
pub const PF_ISDN : u32 = 34 ;
pub const PF_PHONET : u32 = 35 ;
pub const PF_IEEE802154 : u32 = 36 ;
pub const PF_CAIF : u32 = 37 ;
pub const PF_ALG : u32 = 38 ;
pub const PF_NFC : u32 = 39 ;
pub const PF_VSOCK : u32 = 40 ;
pub const PF_KCM : u32 = 41 ;
pub const PF_QIPCRTR : u32 = 42 ;
pub const PF_SMC : u32 = 43 ;
pub const PF_MAX : u32 = 44 ;
pub const AF_UNSPEC : u32 = 0 ;
pub const AF_LOCAL : u32 = 1 ;
pub const AF_UNIX : u32 = 1 ;
pub const AF_FILE : u32 = 1 ;
pub const AF_INET : u32 = 2 ;
pub const AF_AX25 : u32 = 3 ;
pub const AF_IPX : u32 = 4 ;
pub const AF_APPLETALK : u32 = 5 ;
pub const AF_NETROM : u32 = 6 ;
pub const AF_BRIDGE : u32 = 7 ;
pub const AF_ATMPVC : u32 = 8 ;
pub const AF_X25 : u32 = 9 ;
pub const AF_INET6 : u32 = 10 ;
pub const AF_ROSE : u32 = 11 ;
pub const AF_DECnet : u32 = 12 ;
pub const AF_NETBEUI : u32 = 13 ;
pub const AF_SECURITY : u32 = 14 ;
pub const AF_KEY : u32 = 15 ;
pub const AF_NETLINK : u32 = 16 ;
pub const AF_ROUTE : u32 = 16 ;
pub const AF_PACKET : u32 = 17 ;
pub const AF_ASH : u32 = 18 ;
pub const AF_ECONET : u32 = 19 ;
pub const AF_ATMSVC : u32 = 20 ;
pub const AF_RDS : u32 = 21 ;
pub const AF_SNA : u32 = 22 ;
pub const AF_IRDA : u32 = 23 ;
pub const AF_PPPOX : u32 = 24 ;
pub const AF_WANPIPE : u32 = 25 ;
pub const AF_LLC : u32 = 26 ;
pub const AF_IB : u32 = 27 ;
pub const AF_MPLS : u32 = 28 ;
pub const AF_CAN : u32 = 29 ;
pub const AF_TIPC : u32 = 30 ;
pub const AF_BLUETOOTH : u32 = 31 ;
pub const AF_IUCV : u32 = 32 ;
pub const AF_RXRPC : u32 = 33 ;
pub const AF_ISDN : u32 = 34 ;
pub const AF_PHONET : u32 = 35 ;
pub const AF_IEEE802154 : u32 = 36 ;
pub const AF_CAIF : u32 = 37 ;
pub const AF_ALG : u32 = 38 ;
pub const AF_NFC : u32 = 39 ;
pub const AF_VSOCK : u32 = 40 ;
pub const AF_KCM : u32 = 41 ;
pub const AF_QIPCRTR : u32 = 42 ;
pub const AF_SMC : u32 = 43 ;
pub const AF_MAX : u32 = 44 ;
pub const SOL_RAW : u32 = 255 ;
pub const SOL_DECNET : u32 = 261 ;
pub const SOL_X25 : u32 = 262 ;
pub const SOL_PACKET : u32 = 263 ;
pub const SOL_ATM : u32 = 264 ;
pub const SOL_AAL : u32 = 265 ;
pub const SOL_IRDA : u32 = 266 ;
pub const SOL_NETBEUI : u32 = 267 ;
pub const SOL_LLC : u32 = 268 ;
pub const SOL_DCCP : u32 = 269 ;
pub const SOL_NETLINK : u32 = 270 ;
pub const SOL_TIPC : u32 = 271 ;
pub const SOL_RXRPC : u32 = 272 ;
pub const SOL_PPPOL2TP : u32 = 273 ;
pub const SOL_BLUETOOTH : u32 = 274 ;
pub const SOL_PNPIPE : u32 = 275 ;
pub const SOL_RDS : u32 = 276 ;
pub const SOL_IUCV : u32 = 277 ;
pub const SOL_CAIF : u32 = 278 ;
pub const SOL_ALG : u32 = 279 ;
pub const SOL_NFC : u32 = 280 ;
pub const SOL_KCM : u32 = 281 ;
pub const SOL_TLS : u32 = 282 ;
pub const SOMAXCONN : u32 = 128 ;
pub const _BITS_SOCKADDR_H : u32 = 1 ;
pub const _SS_SIZE : u32 = 128 ;
pub const FIOSETOWN : u32 = 35073 ;
pub const SIOCSPGRP : u32 = 35074 ;
pub const FIOGETOWN : u32 = 35075 ;
pub const SIOCGPGRP : u32 = 35076 ;
pub const SIOCATMARK : u32 = 35077 ;
pub const SIOCGSTAMP : u32 = 35078 ;
pub const SIOCGSTAMPNS : u32 = 35079 ;
pub const SOL_SOCKET : u32 = 1 ;
pub const SO_DEBUG : u32 = 1 ;
pub const SO_REUSEADDR : u32 = 2 ;
pub const SO_TYPE : u32 = 3 ;
pub const SO_ERROR : u32 = 4 ;
pub const SO_DONTROUTE : u32 = 5 ;
pub const SO_BROADCAST : u32 = 6 ;
pub const SO_SNDBUF : u32 = 7 ;
pub const SO_RCVBUF : u32 = 8 ;
pub const SO_SNDBUFFORCE : u32 = 32 ;
pub const SO_RCVBUFFORCE : u32 = 33 ;
pub const SO_KEEPALIVE : u32 = 9 ;
pub const SO_OOBINLINE : u32 = 10 ;
pub const SO_NO_CHECK : u32 = 11 ;
pub const SO_PRIORITY : u32 = 12 ;
pub const SO_LINGER : u32 = 13 ;
pub const SO_BSDCOMPAT : u32 = 14 ;
pub const SO_REUSEPORT : u32 = 15 ;
pub const SO_PASSCRED : u32 = 16 ;
pub const SO_PEERCRED : u32 = 17 ;
pub const SO_RCVLOWAT : u32 = 18 ;
pub const SO_SNDLOWAT : u32 = 19 ;
pub const SO_RCVTIMEO : u32 = 20 ;
pub const SO_SNDTIMEO : u32 = 21 ;
pub const SO_SECURITY_AUTHENTICATION : u32 = 22 ;
pub const SO_SECURITY_ENCRYPTION_TRANSPORT : u32 = 23 ;
pub const SO_SECURITY_ENCRYPTION_NETWORK : u32 = 24 ;
pub const SO_BINDTODEVICE : u32 = 25 ;
pub const SO_ATTACH_FILTER : u32 = 26 ;
pub const SO_DETACH_FILTER : u32 = 27 ;
pub const SO_GET_FILTER : u32 = 26 ;
pub const SO_PEERNAME : u32 = 28 ;
pub const SO_TIMESTAMP : u32 = 29 ;
pub const SCM_TIMESTAMP : u32 = 29 ;
pub const SO_ACCEPTCONN : u32 = 30 ;
pub const SO_PEERSEC : u32 = 31 ;
pub const SO_PASSSEC : u32 = 34 ;
pub const SO_TIMESTAMPNS : u32 = 35 ;
pub const SCM_TIMESTAMPNS : u32 = 35 ;
pub const SO_MARK : u32 = 36 ;
pub const SO_TIMESTAMPING : u32 = 37 ;
pub const SCM_TIMESTAMPING : u32 = 37 ;
pub const SO_PROTOCOL : u32 = 38 ;
pub const SO_DOMAIN : u32 = 39 ;
pub const SO_RXQ_OVFL : u32 = 40 ;
pub const SO_WIFI_STATUS : u32 = 41 ;
pub const SCM_WIFI_STATUS : u32 = 41 ;
pub const SO_PEEK_OFF : u32 = 42 ;
pub const SO_NOFCS : u32 = 43 ;
pub const SO_LOCK_FILTER : u32 = 44 ;
pub const SO_SELECT_ERR_QUEUE : u32 = 45 ;
pub const SO_BUSY_POLL : u32 = 46 ;
pub const SO_MAX_PACING_RATE : u32 = 47 ;
pub const SO_BPF_EXTENSIONS : u32 = 48 ;
pub const SO_INCOMING_CPU : u32 = 49 ;
pub const SO_ATTACH_BPF : u32 = 50 ;
pub const SO_DETACH_BPF : u32 = 27 ;
pub const SO_ATTACH_REUSEPORT_CBPF : u32 = 51 ;
pub const SO_ATTACH_REUSEPORT_EBPF : u32 = 52 ;
pub const SO_CNX_ADVICE : u32 = 53 ;
pub const SCM_TIMESTAMPING_OPT_STATS : u32 = 54 ;
pub const SO_MEMINFO : u32 = 55 ;
pub const SO_INCOMING_NAPI_ID : u32 = 56 ;
pub const SO_COOKIE : u32 = 57 ;
pub const SCM_TIMESTAMPING_PKTINFO : u32 = 58 ;
pub const SO_PEERGROUPS : u32 = 59 ;
pub const SO_ZEROCOPY : u32 = 60 ;
pub const __osockaddr_defined : u32 = 1 ;
pub const _SYS_MMAN_H : u32 = 1 ;
pub const MAP_32BIT : u32 = 64 ;
pub const MAP_GROWSDOWN : u32 = 256 ;
pub const MAP_DENYWRITE : u32 = 2048 ;
pub const MAP_EXECUTABLE : u32 = 4096 ;
pub const MAP_LOCKED : u32 = 8192 ;
pub const MAP_NORESERVE : u32 = 16384 ;
pub const MAP_POPULATE : u32 = 32768 ;
pub const MAP_NONBLOCK : u32 = 65536 ;
pub const MAP_STACK : u32 = 131072 ;
pub const MAP_HUGETLB : u32 = 262144 ;
pub const PROT_READ : u32 = 1 ;
pub const PROT_WRITE : u32 = 2 ;
pub const PROT_EXEC : u32 = 4 ;
pub const PROT_NONE : u32 = 0 ;
pub const PROT_GROWSDOWN : u32 = 16777216 ;
pub const PROT_GROWSUP : u32 = 33554432 ;
pub const MAP_SHARED : u32 = 1 ;
pub const MAP_PRIVATE : u32 = 2 ;
pub const MAP_TYPE : u32 = 15 ;
pub const MAP_FIXED : u32 = 16 ;
pub const MAP_FILE : u32 = 0 ;
pub const MAP_ANONYMOUS : u32 = 32 ;
pub const MAP_ANON : u32 = 32 ;
pub const MAP_HUGE_SHIFT : u32 = 26 ;
pub const MAP_HUGE_MASK : u32 = 63 ;
pub const MS_ASYNC : u32 = 1 ;
pub const MS_SYNC : u32 = 4 ;
pub const MS_INVALIDATE : u32 = 2 ;
pub const MREMAP_MAYMOVE : u32 = 1 ;
pub const MREMAP_FIXED : u32 = 2 ;
pub const MADV_NORMAL : u32 = 0 ;
pub const MADV_RANDOM : u32 = 1 ;
pub const MADV_SEQUENTIAL : u32 = 2 ;
pub const MADV_WILLNEED : u32 = 3 ;
pub const MADV_DONTNEED : u32 = 4 ;
pub const MADV_FREE : u32 = 8 ;
pub const MADV_REMOVE : u32 = 9 ;
pub const MADV_DONTFORK : u32 = 10 ;
pub const MADV_DOFORK : u32 = 11 ;
pub const MADV_MERGEABLE : u32 = 12 ;
pub const MADV_UNMERGEABLE : u32 = 13 ;
pub const MADV_HUGEPAGE : u32 = 14 ;
pub const MADV_NOHUGEPAGE : u32 = 15 ;
pub const MADV_DONTDUMP : u32 = 16 ;
pub const MADV_DODUMP : u32 = 17 ;
pub const MADV_WIPEONFORK : u32 = 18 ;
pub const MADV_KEEPONFORK : u32 = 19 ;
pub const MADV_HWPOISON : u32 = 100 ;
pub const POSIX_MADV_NORMAL : u32 = 0 ;
pub const POSIX_MADV_RANDOM : u32 = 1 ;
pub const POSIX_MADV_SEQUENTIAL : u32 = 2 ;
pub const POSIX_MADV_WILLNEED : u32 = 3 ;
pub const POSIX_MADV_DONTNEED : u32 = 4 ;
pub const MCL_CURRENT : u32 = 1 ;
pub const MCL_FUTURE : u32 = 2 ;
pub const MCL_ONFAULT : u32 = 4 ;
pub const MFD_CLOEXEC : u32 = 1 ;
pub const MFD_ALLOW_SEALING : u32 = 2 ;
pub const MFD_HUGETLB : u32 = 4 ;
pub const MLOCK_ONFAULT : u32 = 1 ;
pub const PKEY_DISABLE_ACCESS : u32 = 1 ;
pub const PKEY_DISABLE_WRITE : u32 = 2 ;
pub const _FILE_OFFSET_BITS : u32 = 64 ;
pub const PRIV_SOCK_LOGIN : u32 = 1 ;
pub const PRIV_SOCK_CHOWN : u32 = 2 ;
pub const PRIV_SOCK_GET_DATA_SOCK : u32 = 3 ;
pub const PRIV_SOCK_GET_USER_CMD : u32 = 4 ;
pub const PRIV_SOCK_WRITE_USER_RESP : u32 = 5 ;
pub const PRIV_SOCK_DO_SSL_HANDSHAKE : u32 = 6 ;
pub const PRIV_SOCK_DO_SSL_CLOSE : u32 = 7 ;
pub const PRIV_SOCK_DO_SSL_READ : u32 = 8 ;
pub const PRIV_SOCK_DO_SSL_WRITE : u32 = 9 ;
pub const PRIV_SOCK_PASV_CLEANUP : u32 = 10 ;
pub const PRIV_SOCK_PASV_ACTIVE : u32 = 11 ;
pub const PRIV_SOCK_PASV_LISTEN : u32 = 12 ;
pub const PRIV_SOCK_PASV_ACCEPT : u32 = 13 ;
pub const PRIV_SOCK_RESULT_OK : u32 = 1 ;
pub const PRIV_SOCK_RESULT_BAD : u32 = 2 ;
pub const PTRACE_SANDBOX_ERR_DEAD : i32 = - 1 ;
pub const PTRACE_SANDBOX_ERR_PTRACE : i32 = - 2 ;
pub const PTRACE_SANDBOX_ERR_WAITPID : i32 = - 3 ;
pub const PTRACE_SANDBOX_ERR_WAIT_STATUS : i32 = - 4 ;
pub const PTRACE_SANDBOX_ERR_POLICY_SYSCALL : i32 = - 5 ;
pub const PTRACE_SANDBOX_ERR_BAD_SYSCALL : i32 = - 6 ;
pub const PTRACE_SANDBOX_ERR_POLICY_ARGS : i32 = - 7 ;
pub const PTRACE_SANDBOX_ERR_API_ABUSE_STOPIT : i32 = - 8 ;
pub const VSF_SECUTIL_OPTION_CHROOT : u32 = 1 ;
pub const VSF_SECUTIL_OPTION_USE_GROUPS : u32 = 2 ;
pub const VSF_SECUTIL_OPTION_CHANGE_EUID : u32 = 4 ;
pub const VSF_SECUTIL_OPTION_NO_FDS : u32 = 8 ;
pub const VSF_SECUTIL_OPTION_NO_PROCS : u32 = 16 ;
pub const VSF_SECUTIL_OPTION_ALLOW_WRITEABLE_ROOT : u32 = 32 ;
pub const VSF_VERSION : & 'static [u8 ; 6usize] = b"3.0.3\0" ;
extern "C" {
# [link_name = "\u{1}_Z21vsf_access_check_filePK5mystr"] pub fn vsf_access_check_file (p_filename_str : * const mystr) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z29vsf_access_check_file_visiblePK5mystr"] pub fn vsf_access_check_file_visible (p_filename_str : * const mystr) -> :: std :: os :: raw :: c_int ;
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct ascii_to_bin_ret {
pub stored : :: std :: os :: raw :: c_uint , pub last_was_cr : :: std :: os :: raw :: c_int , pub p_buf : * mut :: std :: os :: raw :: c_char ,
}
# [test] fn bindgen_test_layout_ascii_to_bin_ret () {
assert_eq ! (:: std :: mem :: size_of :: < ascii_to_bin_ret > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( ascii_to_bin_ret ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < ascii_to_bin_ret > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( ascii_to_bin_ret ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < ascii_to_bin_ret > ( ) ) ) . stored as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ascii_to_bin_ret ) , "::" , stringify ! ( stored ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < ascii_to_bin_ret > ( ) ) ) . last_was_cr as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( ascii_to_bin_ret ) , "::" , stringify ! ( last_was_cr ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < ascii_to_bin_ret > ( ) ) ) . p_buf as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ascii_to_bin_ret ) , "::" , stringify ! ( p_buf ) )) ;
}
extern "C" {
# [link_name = "\u{1}_Z22vsf_ascii_ascii_to_binPcji"] pub fn vsf_ascii_ascii_to_bin (p_in : * mut :: std :: os :: raw :: c_char , in_len : :: std :: os :: raw :: c_uint , prev_cr : :: std :: os :: raw :: c_int) -> ascii_to_bin_ret ;
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct bin_to_ascii_ret {
pub stored : :: std :: os :: raw :: c_uint , pub last_was_cr : :: std :: os :: raw :: c_int ,
}
# [test] fn bindgen_test_layout_bin_to_ascii_ret () {
assert_eq ! (:: std :: mem :: size_of :: < bin_to_ascii_ret > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( bin_to_ascii_ret ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < bin_to_ascii_ret > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( bin_to_ascii_ret ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < bin_to_ascii_ret > ( ) ) ) . stored as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( bin_to_ascii_ret ) , "::" , stringify ! ( stored ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < bin_to_ascii_ret > ( ) ) ) . last_was_cr as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( bin_to_ascii_ret ) , "::" , stringify ! ( last_was_cr ) )) ;
}
extern "C" {
# [link_name = "\u{1}_Z22vsf_ascii_bin_to_asciiPKcPcji"] pub fn vsf_ascii_bin_to_ascii (p_in : * const :: std :: os :: raw :: c_char , p_out : * mut :: std :: os :: raw :: c_char , in_len : :: std :: os :: raw :: c_uint , prev_cr : :: std :: os :: raw :: c_int) -> bin_to_ascii_ret ;
}
extern "C" {
# [link_name = "\u{1}_Z22vsf_banner_dir_changedP11vsf_sessioni"] pub fn vsf_banner_dir_changed (p_sess : * mut vsf_session , ftpcode : :: std :: os :: raw :: c_int) ;
}
extern "C" {
# [link_name = "\u{1}_Z16vsf_banner_writeP11vsf_sessionP5mystri"] pub fn vsf_banner_write (p_sess : * mut vsf_session , p_str : * mut mystr , ftpcode : :: std :: os :: raw :: c_int) ;
}
extern "C" {
# [link_name = "\u{1}_Z5cryptPKcS0_"] pub fn crypt (arg1 : * const :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ;
}
extern "C" {
# [link_name = "\u{1}_Z11handle_featP11vsf_session"] pub fn handle_feat (p_sess : * mut vsf_session) ;
}
pub type filesize_t = :: std :: os :: raw :: c_longlong ;
extern "C" {
# [link_name = "\u{1}_Z12str_filereadP5mystrPKcj"] pub fn str_fileread (p_str : * mut mystr , p_filename : * const :: std :: os :: raw :: c_char , maxsize : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z20vsf_cmdio_sock_setupv"] pub fn vsf_cmdio_sock_setup () ;
}
extern "C" {
# [link_name = "\u{1}_Z15vsf_cmdio_writeP11vsf_sessioniPKc"] pub fn vsf_cmdio_write (p_sess : * mut vsf_session , status : :: std :: os :: raw :: c_int , p_text : * const :: std :: os :: raw :: c_char) ;
}
extern "C" {
# [link_name = "\u{1}_Z22vsf_cmdio_write_hyphenP11vsf_sessioniPKc"] pub fn vsf_cmdio_write_hyphen (p_sess : * mut vsf_session , status : :: std :: os :: raw :: c_int , p_text : * const :: std :: os :: raw :: c_char) ;
}
extern "C" {
# [link_name = "\u{1}_Z19vsf_cmdio_write_rawP11vsf_sessionPKc"] pub fn vsf_cmdio_write_raw (p_sess : * mut vsf_session , p_text : * const :: std :: os :: raw :: c_char) ;
}
extern "C" {
# [link_name = "\u{1}_Z20vsf_cmdio_write_exitP11vsf_sessioniPKci"] pub fn vsf_cmdio_write_exit (p_sess : * mut vsf_session , status : :: std :: os :: raw :: c_int , p_text : * const :: std :: os :: raw :: c_char , exit_val : :: std :: os :: raw :: c_int) ;
}
extern "C" {
# [link_name = "\u{1}_Z19vsf_cmdio_write_strP11vsf_sessioniPK5mystr"] pub fn vsf_cmdio_write_str (p_sess : * mut vsf_session , status : :: std :: os :: raw :: c_int , p_str : * const mystr) ;
}
extern "C" {
# [link_name = "\u{1}_Z26vsf_cmdio_write_str_hyphenP11vsf_sessioniPK5mystr"] pub fn vsf_cmdio_write_str_hyphen (p_sess : * mut vsf_session , status : :: std :: os :: raw :: c_int , p_str : * const mystr) ;
}
extern "C" {
# [link_name = "\u{1}_Z19vsf_cmdio_set_alarmP11vsf_session"] pub fn vsf_cmdio_set_alarm (p_sess : * mut vsf_session) ;
}
extern "C" {
# [link_name = "\u{1}_Z25vsf_cmdio_get_cmd_and_argP11vsf_sessionP5mystrS2_i"] pub fn vsf_cmdio_get_cmd_and_arg (p_sess : * mut vsf_session , p_cmd_str : * mut mystr , p_arg_str : * mut mystr , set_alarm : :: std :: os :: raw :: c_int) ;
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct vsf_sysutil_sockaddr {
_unused : [u8 ; 0] ,
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct vsf_sysutil_dir {
_unused : [u8 ; 0] ,
}
extern "C" {
# [link_name = "\u{1}_Z33vsf_ftpdataio_dispose_transfer_fdP11vsf_session"] pub fn vsf_ftpdataio_dispose_transfer_fd (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z25vsf_ftpdataio_get_pasv_fdP11vsf_session"] pub fn vsf_ftpdataio_get_pasv_fd (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z25vsf_ftpdataio_get_port_fdP11vsf_session"] pub fn vsf_ftpdataio_get_port_fd (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z31vsf_ftpdataio_post_mark_connectP11vsf_session"] pub fn vsf_ftpdataio_post_mark_connect (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_int ;
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct vsf_transfer_ret {
pub retval : :: std :: os :: raw :: c_int , pub transferred : filesize_t ,
}
# [test] fn bindgen_test_layout_vsf_transfer_ret () {
assert_eq ! (:: std :: mem :: size_of :: < vsf_transfer_ret > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( vsf_transfer_ret ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < vsf_transfer_ret > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( vsf_transfer_ret ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < vsf_transfer_ret > ( ) ) ) . retval as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( vsf_transfer_ret ) , "::" , stringify ! ( retval ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < vsf_transfer_ret > ( ) ) ) . transferred as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( vsf_transfer_ret ) , "::" , stringify ! ( transferred ) )) ;
}
extern "C" {
# [link_name = "\u{1}_Z27vsf_ftpdataio_transfer_fileP11vsf_sessioniiii"] pub fn vsf_ftpdataio_transfer_file (p_sess : * mut vsf_session , remote_fd : :: std :: os :: raw :: c_int , file_fd : :: std :: os :: raw :: c_int , is_recv : :: std :: os :: raw :: c_int , is_ascii : :: std :: os :: raw :: c_int) -> vsf_transfer_ret ;
}
extern "C" {
# [link_name = "\u{1}_Z26vsf_ftpdataio_transfer_dirP11vsf_sessioniP15vsf_sysutil_dirPK5mystrS5_S5_i"] pub fn vsf_ftpdataio_transfer_dir (p_sess : * mut vsf_session , is_control : :: std :: os :: raw :: c_int , p_dir : * mut vsf_sysutil_dir , p_base_dir_str : * const mystr , p_option_str : * const mystr , p_filter_str : * const mystr , is_verbose : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ;
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct pt_sandbox {
_unused : [u8 ; 0] ,
}
extern "C" {
# [link_name = "\u{1}_Z12policy_setupP10pt_sandboxPK11vsf_session"] pub fn policy_setup (p_sandbox : * mut pt_sandbox , p_sess : * const vsf_session) ;
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct hash {
_unused : [u8 ; 0] ,
}
pub type hashfunc_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : :: std :: os :: raw :: c_uint , arg2 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_uint > ;
extern "C" {
# [link_name = "\u{1}_Z10hash_allocjjjPFjjPvE"] pub fn hash_alloc (buckets : :: std :: os :: raw :: c_uint , key_size : :: std :: os :: raw :: c_uint , value_size : :: std :: os :: raw :: c_uint , hash_func : hashfunc_t) -> * mut hash ;
}
extern "C" {
# [link_name = "\u{1}_Z17hash_lookup_entryP4hashPv"] pub fn hash_lookup_entry (p_hash : * mut hash , p_key : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_void ;
}
extern "C" {
# [link_name = "\u{1}_Z14hash_add_entryP4hashPvS1_"] pub fn hash_add_entry (p_hash : * mut hash , p_key : * mut :: std :: os :: raw :: c_void , p_value : * mut :: std :: os :: raw :: c_void) ;
}
extern "C" {
# [link_name = "\u{1}_Z15hash_free_entryP4hashPv"] pub fn hash_free_entry (p_hash : * mut hash , p_key : * mut :: std :: os :: raw :: c_void) ;
}
extern "C" {
# [link_name = "\u{1}_Z22vsf_sysutil_parse_ipv6PK5mystr"] pub fn vsf_sysutil_parse_ipv6 (p_str : * const mystr) -> * const :: std :: os :: raw :: c_uchar ;
}
extern "C" {
# [link_name = "\u{1}_Z22vsf_sysutil_parse_ipv4PK5mystr"] pub fn vsf_sysutil_parse_ipv4 (p_str : * const mystr) -> * const :: std :: os :: raw :: c_uchar ;
}
extern "C" {
# [link_name = "\u{1}_Z34vsf_sysutil_parse_uchar_string_sepPK5mystrcPhj"] pub fn vsf_sysutil_parse_uchar_string_sep (p_str : * const mystr , sep : :: std :: os :: raw :: c_char , p_items : * mut :: std :: os :: raw :: c_uchar , items : :: std :: os :: raw :: c_uint) -> * const :: std :: os :: raw :: c_uchar ;
}
pub const EVSFLogEntryType_kVSFLogEntryNull : EVSFLogEntryType = 1 ;
pub const EVSFLogEntryType_kVSFLogEntryDownload : EVSFLogEntryType = 2 ;
pub const EVSFLogEntryType_kVSFLogEntryUpload : EVSFLogEntryType = 3 ;
pub const EVSFLogEntryType_kVSFLogEntryMkdir : EVSFLogEntryType = 4 ;
pub const EVSFLogEntryType_kVSFLogEntryLogin : EVSFLogEntryType = 5 ;
pub const EVSFLogEntryType_kVSFLogEntryFTPInput : EVSFLogEntryType = 6 ;
pub const EVSFLogEntryType_kVSFLogEntryFTPOutput : EVSFLogEntryType = 7 ;
pub const EVSFLogEntryType_kVSFLogEntryConnection : EVSFLogEntryType = 8 ;
pub const EVSFLogEntryType_kVSFLogEntryDelete : EVSFLogEntryType = 9 ;
pub const EVSFLogEntryType_kVSFLogEntryRename : EVSFLogEntryType = 10 ;
pub const EVSFLogEntryType_kVSFLogEntryRmdir : EVSFLogEntryType = 11 ;
pub const EVSFLogEntryType_kVSFLogEntryChmod : EVSFLogEntryType = 12 ;
pub const EVSFLogEntryType_kVSFLogEntryDebug : EVSFLogEntryType = 13 ;
pub type EVSFLogEntryType = u32 ;
extern "C" {
# [link_name = "\u{1}_Z12vsf_log_initP11vsf_session"] pub fn vsf_log_init (p_sess : * mut vsf_session) ;
}
extern "C" {
# [link_name = "\u{1}_Z19vsf_log_start_entryP11vsf_session16EVSFLogEntryType"] pub fn vsf_log_start_entry (p_sess : * mut vsf_session , what : EVSFLogEntryType) ;
}
extern "C" {
# [link_name = "\u{1}_Z21vsf_log_entry_pendingP11vsf_session"] pub fn vsf_log_entry_pending (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z19vsf_log_clear_entryP11vsf_session"] pub fn vsf_log_clear_entry (p_sess : * mut vsf_session) ;
}
extern "C" {
# [link_name = "\u{1}_Z14vsf_log_do_logP11vsf_sessioni"] pub fn vsf_log_do_log (p_sess : * mut vsf_session , succeeded : :: std :: os :: raw :: c_int) ;
}
extern "C" {
# [link_name = "\u{1}_Z12vsf_log_lineP11vsf_session16EVSFLogEntryTypeP5mystr"] pub fn vsf_log_line (p_sess : * mut vsf_session , what : EVSFLogEntryType , p_str : * mut mystr) ;
}
extern "C" {
# [link_name = "\u{1}_Z24vsf_ls_populate_dir_listP10mystr_listS0_P15vsf_sysutil_dirPK5mystrS5_S5_i"] pub fn vsf_ls_populate_dir_list (p_list : * mut mystr_list , p_subdir_list : * mut mystr_list , p_dir : * mut vsf_sysutil_dir , p_base_dir_str : * const mystr , p_option_str : * const mystr , p_filter_str : * const mystr , is_verbose : :: std :: os :: raw :: c_int) ;
}
extern "C" {
# [link_name = "\u{1}_Z26vsf_filename_passes_filterPK5mystrS1_Pj"] pub fn vsf_filename_passes_filter (p_filename_str : * const mystr , p_filter_str : * const mystr , iters : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ;
}
pub type str_netfd_read_t = :: std :: option :: Option < unsafe extern "C" fn (p_sess : * mut vsf_session , arg1 : * mut :: std :: os :: raw :: c_char , arg2 : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int > ;
extern "C" {
# [link_name = "\u{1}_Z15str_netfd_allocP11vsf_sessionP5mystrcPcjPFiS0_S3_jES5_"] pub fn str_netfd_alloc (p_sess : * mut vsf_session , p_str : * mut mystr , term : :: std :: os :: raw :: c_char , p_readbuf : * mut :: std :: os :: raw :: c_char , maxlen : :: std :: os :: raw :: c_uint , p_peekfunc : str_netfd_read_t , p_readfunc : str_netfd_read_t) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z14str_netfd_readP5mystrij"] pub fn str_netfd_read (p_str : * mut mystr , fd : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z15str_netfd_writePK5mystri"] pub fn str_netfd_write (p_str : * const mystr , fd : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z21vsf_one_process_startP11vsf_session"] pub fn vsf_one_process_start (p_sess : * mut vsf_session) ;
}
extern "C" {
# [link_name = "\u{1}_Z21vsf_one_process_loginP11vsf_sessionPK5mystr"] pub fn vsf_one_process_login (p_sess : * mut vsf_session , p_pass_str : * const mystr) ;
}
extern "C" {
# [link_name = "\u{1}_Z34vsf_one_process_get_priv_data_sockP11vsf_session"] pub fn vsf_one_process_get_priv_data_sock (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z28vsf_one_process_pasv_cleanupP11vsf_session"] pub fn vsf_one_process_pasv_cleanup (p_sess : * mut vsf_session) ;
}
extern "C" {
# [link_name = "\u{1}_Z27vsf_one_process_pasv_activeP11vsf_session"] pub fn vsf_one_process_pasv_active (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z22vsf_one_process_listenP11vsf_session"] pub fn vsf_one_process_listen (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_ushort ;
}
extern "C" {
# [link_name = "\u{1}_Z27vsf_one_process_get_pasv_fdP11vsf_session"] pub fn vsf_one_process_get_pasv_fd (p_sess : * mut vsf_session) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
# [link_name = "\u{1}_Z28vsf_one_process_chown_uploadP11vsf_sessioni"] pub fn vsf_one_process_chown_upload (p_sess : * mut vsf_session , fd : :: std :: os :: raw :: c_int) ;
}
extern "C" {
# [link_name = "\u{1}_Z11handle_optsP11vsf_session"] pub fn handle_opts (p_sess : * mut vsf_session) ;
}
extern "C" {
# [link_name = "\u{1}_Z23vsf_parseconf_load_filePKci"] pub fn vsf_parseconf_load_file (p_filename : * const :: std :: os :: raw :: c_char , errs_fatal : :: std :: os :: raw :: c_int) ;
}
extern "C" {
# [link_name = "\u{1}_Z26vsf_parseconf_load_settingPKci"] pub fn vsf_parseconf_load_setting (p_setting : * const :: std :: os :: raw :: c_char , errs_fatal : :: std :: os :: raw :: c_int) ;
}
pub type __u_char = :: std :: os :: raw :: c_uchar ;
pub type __u_short = :: std :: os :: raw :: c_ushort ;
pub type __u_int = :: std :: os :: raw :: c_uint ;
pub type __u_long = :: std :: os :: raw :: c_ulong ;
pub type __int8_t = :: std :: os :: raw :: c_schar ;
pub type __uint8_t = :: std :: os :: raw :: c_uchar ;
pub type __int16_t = :: std :: os :: raw :: c_short ;
pub type __uint16_t = :: std :: os :: raw :: c_ushort ;
pub type __int32_t = :: std :: os :: raw :: c_int ;
pub type __uint32_t = :: std :: os :: raw :: c_uint ;
pub type __int64_t = :: std :: os :: raw :: c_long ;
pub type __uint64_t = :: std :: os :: raw :: c_ulong ;
pub type __quad_t = :: std :: os :: raw :: c_long ;
pub type __u_quad_t = :: std :: os :: raw :: c_ulong ;
pub type __intmax_t = :: std :: os :: raw :: c_long ;
pub type __uintmax_t = :: std :: os :: raw :: c_ulong ;
pub type __dev_t = :: std :: os :: raw :: c_ulong ;
pub type __uid_t = :: std :: os :: raw :: c_uint ;
pub type __gid_t = :: std :: os :: raw :: c_uint ;
pub type __ino_t = :: std :: os :: raw :: c_ulong ;
pub type __ino64_t = :: std :: os :: raw :: c_ulong ;
pub type __mode_t = :: std :: os :: raw :: c_uint ;
pub type __nlink_t = :: std :: os :: raw :: c_ulong ;
pub type __off_t = :: std :: os :: raw :: c_long ;
pub type __off64_t = :: std :: os :: raw :: c_long ;
pub type __pid_t = :: std :: os :: raw :: c_int ;
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct __fsid_t {
pub __val : [:: std :: os :: raw :: c_int ; 2usize] ,
}
# [test] fn bindgen_test_layout___fsid_t () {
assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __fsid_t ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __fsid_t ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __fsid_t ) , "::" , stringify ! ( __val ) )) ;
}
pub type __clock_t = :: std :: os :: raw :: c_long ;
pub type __rlim_t = :: std :: os :: raw :: c_ulong ;
pub type __rlim64_t = :: std :: os :: raw :: c_ulong ;
pub type __id_t = :: std :: os :: raw :: c_uint ;
pub type __time_t = :: std :: os :: raw :: c_long ;
pub type __useconds_t = :: std :: os :: raw :: c_uint ;
pub type __suseconds_t = :: std :: os :: raw :: c_long ;
pub type __daddr_t = :: std :: os :: raw :: c_int ;
pub type __key_t = :: std :: os :: raw :: c_int ;
pub type __clockid_t = :: std :: os :: raw :: c_int ;
pub type __timer_t = * mut :: std :: os :: raw :: c_void ;
pub type __blksize_t = :: std :: os :: raw :: c_long ;
pub type __blkcnt_t = :: std :: os :: raw :: c_long ;
pub type __blkcnt64_t = :: std :: os :: raw :: c_long ;
pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ;
pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ;
pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ;
pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ;
pub type __fsword_t = :: std :: os :: raw :: c_long ;
pub type __ssize_t = :: std :: os :: raw :: c_long ;
pub type __syscall_slong_t = :: std :: os :: raw :: c_long ;
pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ;
pub type __loff_t = __off64_t ;
pub type __caddr_t = * mut :: std :: os :: raw :: c_char ;
pub type __intptr_t = :: std :: os :: raw :: c_long ;
pub type __socklen_t = :: std :: os :: raw :: c_uint ;
pub type __sig_atomic_t = :: std :: os :: raw :: c_int ;
pub type u_char = __u_char ;
pub type u_short = __u_short ;
pub type u_int = __u_int ;
pub type u_long = __u_long ;
pub type quad_t = __quad_t ;
pub type u_quad_t = __u_quad_t ;
pub type fsid_t = __fsid_t ;
pub type loff_t = __loff_t ;
pub type ino_t = __ino_t ;
pub type ino64_t = __ino64_t ;
pub type dev_t = __dev_t ;
pub type gid_t = __gid_t ;
pub type mode_t = __mode_t ;
pub type nlink_t = __nlink_t ;
pub type uid_t = __uid_t ;
pub type off_t = __off_t ;
pub type off64_t = __off64_t ;
pub type pid_t = __pid_t ;
pub type id_t = __id_t ;
pub type daddr_t = __daddr_t ;
pub type caddr_t = __caddr_t ;
pub type key_t = __key_t ;
pub type clock_t = __clock_t ;
pub type clockid_t = __clockid_t ;
pub type time_t = __time_t ;
pub type timer_t = __timer_t ;
pub type useconds_t = __useconds_t ;
pub type suseconds_t = __suseconds_t ;
pub type ulong = :: std :: os :: raw :: c_ulong ;
pub type ushort = :: std :: os :: raw :: c_ushort ;
pub type uint = :: std :: os :: raw :: c_uint ;
pub type u_int8_t = :: std :: os :: raw :: c_uchar ;
pub type u_int16_t = :: std :: os :: raw :: c_ushort ;
pub type u_int32_t = :: std :: os :: raw :: c_uint ;
pub type u_int64_t = :: std :: os :: raw :: c_ulong ;
pub type register_t = :: std :: os :: raw :: c_long ;
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct __sigset_t {
pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] ,
}
# [test] fn bindgen_test_layout___sigset_t () {
assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( __sigset_t ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __sigset_t ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __sigset_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __sigset_t ) , "::" , stringify ! ( __val ) )) ;
}
pub type sigset_t = __sigset_t ;
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct timeval {
pub tv_sec : __time_t , pub tv_usec : __suseconds_t ,
}
# [test] fn bindgen_test_layout_timeval () {
assert_eq ! (:: std :: mem :: size_of :: < timeval > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( timeval ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < timeval > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( timeval ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < timeval > ( ) ) ) . tv_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( timeval ) , "::" , stringify ! ( tv_sec ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < timeval > ( ) ) ) . tv_usec as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( timeval ) , "::" , stringify ! ( tv_usec ) )) ;
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct timespec {
pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t ,
}
# [test] fn bindgen_test_layout_timespec () {
assert_eq ! (:: std :: mem :: size_of :: < timespec > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( timespec ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < timespec > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( timespec ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < timespec > ( ) ) ) . tv_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( timespec ) , "::" , stringify ! ( tv_sec ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < timespec > ( ) ) ) . tv_nsec as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( timespec ) , "::" , stringify ! ( tv_nsec ) )) ;
}
pub type __fd_mask = :: std :: os :: raw :: c_long ;
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct fd_set {
pub fds_bits : [__fd_mask ; 16usize] ,
}
# [test] fn bindgen_test_layout_fd_set () {
assert_eq ! (:: std :: mem :: size_of :: < fd_set > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( fd_set ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < fd_set > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_set ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < fd_set > ( ) ) ) . fds_bits as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_set ) , "::" , stringify ! ( fds_bits ) )) ;
}
pub type fd_mask = __fd_mask ;
extern "C" {
pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ;
}
extern "C" {
pub fn gnu_dev_major (__dev : __dev_t) -> :: std :: os :: raw :: c_uint ;
}
extern "C" {
pub fn gnu_dev_minor (__dev : __dev_t) -> :: std :: os :: raw :: c_uint ;
}
extern "C" {
pub fn gnu_dev_makedev (__major : :: std :: os :: raw :: c_uint , __minor : :: std :: os :: raw :: c_uint) -> __dev_t ;
}
pub type blksize_t = __blksize_t ;
pub type blkcnt_t = __blkcnt_t ;
pub type fsblkcnt_t = __fsblkcnt_t ;
pub type fsfilcnt_t = __fsfilcnt_t ;
pub type blkcnt64_t = __blkcnt64_t ;
pub type fsblkcnt64_t = __fsblkcnt64_t ;
pub type fsfilcnt64_t = __fsfilcnt64_t ;
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct __pthread_rwlock_arch_t {
pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [:: std :: os :: raw :: c_uchar ; 7usize] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint ,
}
# [test] fn bindgen_test_layout___pthread_rwlock_arch_t () {
assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) )) ;
}
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct __pthread_internal_list {
pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list ,
}
# [test] fn bindgen_test_layout___pthread_internal_list () {
assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __pthread_internal_list ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_internal_list ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_internal_list > ( ) ) ) . __prev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_internal_list ) , "::" , stringify ! ( __prev ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_internal_list > ( ) ) ) . __next as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_internal_list ) , "::" , stringify ! ( __next ) )) ;
}
pub type __pthread_list_t = __pthread_internal_list ;
# [repr ( C )] # [derive ( Debug , Copy , Clone )] pub struct __pthread_mutex_s {
pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __elision : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t ,
}
# [test] fn bindgen_test_layout___pthread_mutex_s () {
assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __pthread_mutex_s ) )) ;
assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_mutex_s ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __lock ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __count as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __count ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __owner as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __owner ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __nusers as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __nusers ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __kind as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __kind ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __spins as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __spins ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __elision as * const _ as usize } , 22usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __elision ) )) ;
assert_eq ! (unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_mutex_s > ( ) ) ) . __list as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_mutex_s ) , "::" , stringify ! ( __list ) )) ;
}
# [repr ( C )] # [derive ( Copy , Clone )] pub struct __pthread_cond_s {
pub __bindgen_anon_1 : __pthread_cond_s__bindgen_ty_1 , pub __bindgen_anon_2 : __pthread_cond_s__bindgen_ty_2 , pub __g_refs : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] ,
}
# [repr ( C )] # [derive ( Copy , Clone )] pub union __pthread_cond_s__bindgen_ty_1 {
pub __wseq : :: std :: os :: raw :: c_ulonglong , pub __wseq32 : __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : u64 ,