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
use super::types::{mode_t, key_t, poll_t};
pub const S_IRUSR: mode_t = 0o400;
pub const S_IWUSR: mode_t = 0o200;
pub const S_IXUSR: mode_t = 0o100;
pub const S_IRWXU: mode_t = S_IRUSR | S_IWUSR | S_IXUSR;
pub const S_IRGRP: mode_t = S_IRUSR >> 3;
pub const S_IWGRP: mode_t = S_IWUSR >> 3;
pub const S_IXGRP: mode_t = S_IXUSR >> 3;
pub const S_IRWXG: mode_t = S_IRWXU >> 3;
pub const S_IROTH: mode_t = S_IRGRP >> 3;
pub const S_IWOTH: mode_t = S_IWGRP >> 3;
pub const S_IXOTH: mode_t = S_IXGRP >> 3;
pub const S_IRWXO: mode_t = S_IRWXG >> 3;
pub const O_RDONLY: i32 = 0o0;
pub const O_WRONLY: i32 = 0o1;
pub const O_RDWR: i32 = 0o2;
pub const O_ACCMODE: i32 = 0o003;
pub const O_CREAT: i32 = 0o100;
pub const O_EXCL: i32 = 0o200;
pub const O_NOCTTY: i32 = 0o400;
pub const O_TRUNC: i32 = 0o1000;
pub const O_APPEND: i32 = 0o2000;
pub const O_NONBLOCK: i32 = 0o4000;
pub const O_DSYNC: i32 = 0o10000;
pub const O_ASYNC: i32 = 0o20000;
pub const O_DIRECT: i32 = 0o40000;
pub const O_LARGEFILE: i32 = 0o100000;
pub const O_DIRECTORY: i32 = 0o200000;
pub const O_NOFOLLOW: i32 = 0o400000;
pub const O_NOATIME: i32 = 0o1000000;
pub const O_CLOEXEC: i32 = 0o2000000;
pub const O_SYNC: i32 = 0o4010000;
pub const O_FSYNC: i32 = O_SYNC;
pub const O_PATH: i32 = 0o10000000;
pub const O_TMPFILE: i32 = (0o20000000 | O_DIRECTORY);
pub const O_TMPFILE_MASK: i32 = (O_TMPFILE | O_CREAT);
pub const F_DUPFD: i32 = 0 ;
pub const F_GETFD: i32 = 1;
pub const F_SETFD: i32 = 2;
pub const F_GETFL: i32 = 3;
pub const F_SETFL: i32 = 4;
pub const F_GETLK: i32 = 5;
pub const F_SETLK: i32 = 6;
pub const F_SETLKW: i32 = 7;
pub const F_SETOWN: i32 = 8;
pub const F_GETOWN: i32 = 9;
pub const F_SETSIG: i32 = 10;
pub const F_GETSIG: i32 = 11;
pub const F_GETLK64: i32 = 12;
pub const F_SETLK64: i32 = 13;
pub const F_SETLKW64: i32 = 14;
pub const F_SETOWN_EX: i32 = 15;
pub const F_GETOWN_EX: i32 = 16;
pub const F_GETOWNER_UIDS: i32 = 17;
pub const F_OFD_GETLK: i32 = 36;
pub const F_OFD_SETLK: i32 = 37;
pub const F_OFD_SETLKW: i32 = 38;
pub const F_OWNER_TID: i32 = 0;
pub const F_OWNER_PID: i32 = 1;
pub const F_OWNER_PGRP: i32 = 2;
pub const FD_CLOEXEC: i32 = 1;
pub const F_RDLCK: i32 = 0;
pub const F_WRLCK: i32 = 1;
pub const F_UNLCK: i32 = 2;
pub const F_EXLCK: i32 = 4;
pub const F_SHLCK: i32 = 8;
pub const LOCK_SH: i32 = 1;
pub const LOCK_EX: i32 = 2;
pub const LOCK_NB: i32 = 4;
pub const LOCK_UN: i32 = 8;
pub const LOCK_ATOMIC: i32 = 16;
pub const LOCK_MAND: i32 = 32;
pub const LOCK_READ: i32 = 64;
pub const LOCK_WRITE: i32 = 128;
pub const LOCK_RW: i32 = 192;
pub const F_LINUX_SPECIFIC_BASE: i32 = 1024;
pub const R_OK: i32 = 4;
pub const W_OK: i32 = 2;
pub const X_OK: i32 = 1;
pub const F_OK: i32 = 0;
pub const SYNC_FILE_RANGE_WAIT_BEFORE: i32 = 1;
pub const SYNC_FILE_RANGE_WRITE: i32 = 2;
pub const SYNC_FILE_RANGE_WAIT_AFTER: i32 = 4;
pub const SPLICE_F_MOVE: i32 = 1;
pub const SPLICE_F_NONBLOCK: i32 = 2;
pub const SPLICE_F_MORE: i32 = 4;
pub const SPLICE_F_GIFT: i32 = 8;
pub const SIG_BLOCK: i32 = 0;
pub const SIG_UNBLOCK: i32 = 1;
pub const SIG_SETMASK: i32 = 2;
pub const SIGHUP: i32 = 1;
pub const SIGINT: i32 = 2;
pub const SIGQUIT: i32 = 3;
pub const SIGILL: i32 = 4;
pub const SIGTRAP: i32 = 5;
pub const SIGABRT: i32 = 6;
pub const SIGIOT: i32 = 6;
pub const SIGBUS: i32 = 7;
pub const SIGFPE: i32 = 8;
pub const SIGKILL: i32 = 9;
pub const SIGUSR1: i32 = 10;
pub const SIGSEGV: i32 = 11;
pub const SIGUSR2: i32 = 12;
pub const SIGPIPE: i32 = 13;
pub const SIGALRM: i32 = 14;
pub const SIGTERM: i32 = 15;
pub const SIGSTKFLT: i32 = 16;
pub const SIGCHLD: i32 = 17;
pub const SIGCONT: i32 = 18;
pub const SIGSTOP: i32 = 19;
pub const SIGTSTP: i32 = 20;
pub const SIGTTIN: i32 = 21;
pub const SIGTTOU: i32 = 22;
pub const SIGURG: i32 = 23;
pub const SIGXCPU: i32 = 24;
pub const SIGXFSZ: i32 = 25;
pub const SIGVTALRM: i32 = 26;
pub const SIGPROF: i32 = 27;
pub const SIGWINCH: i32 = 28;
pub const SIGIO: i32 = 29;
pub const SIGPOLL: i32 = 29;
pub const SIGPWR: i32 = 30;
pub const SIGSYS: i32 = 31;
pub const SIGUNUSED: i32 = 31;
pub const SIG_RT_MIN: i32 = 32;
pub const SIG_RTMAX: i32 = 64;
pub const SA_NOCLDSTOP: i32 = 1;
pub const SA_NOCLDWAIT: i32 = 2;
pub const SA_SIGINFO: i32 = 4;
pub const SA_ONSTACK: i32 = 0x08000000;
pub const SA_RESTART: i32 = 0x10000000;
pub const SA_INTERRUPT: i32 = 0x20000000;
pub const SA_NODEFER: i32 = 0x40000000;
#[allow(overflowing_literals)]
pub const SA_RESETHAND: i32 = 0x80000000;
pub const SEEK_SET: i32 = 0;
pub const SEEK_CUR: i32 = 1;
pub const SEEK_END: i32 = 2;
pub const SEEK_DATA: i32 = 3;
pub const SEEK_HOLE: i32 = 4;
pub const SEEK_MAX: i32 = SEEK_HOLE;
pub const RENAME_NOREPLACE: i32 = 1;
pub const RENAME_EXCHANGE: i32 = 2;
pub const RENAME_WHITEOUT: i32 = 4;
pub const POLLIN: i32 = 0x001;
pub const POLLPRI: i32 = 0x002;
pub const POLLOUT: i32 = 0x004;
pub const POLLERR: i32 = 0x008;
pub const POLLHUP: i32 = 0x010;
pub const POLLNVAL: i32 = 0x020;
pub const POLLRDNORM: i32 = 0x040;
pub const POLLRDBAND: i32 = 0x080;
pub const POLLWRNORM: i32 = 0x100;
pub const POLLWRBAND: i32 = 0x200;
pub const PROT_NONE: i32 = 0x0;
pub const PROT_READ: i32 = 0x1;
pub const PROT_WRITE: i32 = 0x2;
pub const PROT_EXEC: i32 = 0x4;
pub const PROT_SEM: i32 = 0x8;
pub const PROT_GROWSDOWN: i32 = 0x01000000;
pub const PROT_GROWSUP: i32 = 0x02000000;
pub const MAP_UNINITIALIZED: i32 = 0x00;
pub const MAP_SHARED: i32 = 0x01;
pub const MAP_PRIVATE: i32 = 0x02;
pub const MAP_SHARED_VALIDATE: i32 = 0x03;
pub const MAP_TYPE: i32 = 0x0f;
pub const MAP_FIXED: i32 = 0x10;
pub const MAP_ANONYMOUS: i32 = 0x20;
pub const MAP_GROWSDOWN: i32 = 0x0100;
pub const MAP_DENYWRITE: i32 = 0x0800;
pub const MAP_EXECUTABLE: i32 = 0x1000;
pub const MAP_LOCKED: i32 = 0x2000;
pub const MAP_NORESERVE: i32 = 0x4000;
pub const MAP_POPULATE: i32 = 0x8000;
pub const MAP_NONBLOCK: i32 = 0x10000;
pub const MAP_STACK: i32 = 0x20000;
pub const MAP_HUGETLB: i32 = 0x40000;
pub const MAP_SYNC: i32 = 0x80000;
pub const MAP_FIXED_NOREPLACE: i32 = 0x100000;
pub const MAP_FAILED: i32 = -1;
pub const MCL_CURRENT: i32 = 1;
pub const MCL_FUTURE: i32 = 2;
pub const MCL_ONFAULT: i32 = 4;
pub const MS_ASYNC: i32 = 1;
pub const MS_INVALIDATE: i32 = 2;
pub const MS_SYNC: i32 = 4;
pub const IPC_CREAT: i32 = 0o1000;
pub const IPC_EXCL: i32 = 0o2000;
pub const IPC_NOWAIT: i32 = 0o4000;
pub const IPC_RMID: i32 = 0;
pub const IPC_SET: i32 = 1;
pub const IPC_STAT: i32 = 2;
pub const IPC_INFO: i32 = 3;
pub const IPC_PRIVATE: key_t = 0;
pub const MSG_NOERROR: i32 = 010000;
pub const MSG_EXCEPT: i32 = 020000;
pub const MSG_COPY: i32 = 040000;
pub const MSG_STAT: i32 = 11;
pub const MSG_INFO: i32 = 12;
pub const MSG_STAT_ANY: i32 = 13;
pub const SOCK_STREAM: i32 = 1;
pub const SOCK_DGRAM: i32 = 2;
pub const SOCK_RAW: i32 = 3;
pub const SOCK_RDM: i32 = 4;
pub const SOCK_SEQPACKET: i32 = 5;
pub const SOCK_DCCP: i32 = 6;
pub const SOCK_PACKET: i32 = 10;
pub const SOCK_CLOEXEC: i32 = 0o2000000;
pub const SOCK_NONBLOCK: i32 = 0o0004000;
pub const PF_UNSPEC: i32 = 0;
pub const PF_LOCAL: i32 = 1;
pub const PF_UNIX: i32 = PF_LOCAL;
pub const PF_FILE: i32 = PF_LOCAL;
pub const PF_INET: i32 = 2;
pub const PF_AX25: i32 = 3;
pub const PF_IPX: i32 = 4;
pub const PF_APPLETALK: i32 = 5;
pub const PF_NETROM: i32 = 6;
pub const PF_BRIDGE: i32 = 7;
pub const PF_ATMPVC: i32 = 8;
pub const PF_X25: i32 = 9;
pub const PF_INET6: i32 = 10;
pub const PF_ROSE: i32 = 11;
#[allow(non_upper_case_globals)]
pub const PF_DECnet: i32 = 12;
pub const PF_NETBEUI: i32 = 13;
pub const PF_SECURITY: i32 = 14;
pub const PF_KEY: i32 = 15;
pub const PF_NETLINK: i32 = 16;
pub const PF_ROUTE: i32 = PF_NETLINK;
pub const PF_PACKET: i32 = 17;
pub const PF_ASH: i32 = 18;
pub const PF_ECONET: i32 = 19;
pub const PF_ATMSVC: i32 = 20;
pub const PF_RDS: i32 = 21;
pub const PF_SNA: i32 = 22;
pub const PF_IRDA: i32 = 23;
pub const PF_PPPOX: i32 = 24;
pub const PF_WANPIPE: i32 = 25;
pub const PF_LLC: i32 = 26;
pub const PF_IB: i32 = 27;
pub const PF_MPLS: i32 = 28;
pub const PF_CAN: i32 = 29;
pub const PF_TIPC: i32 = 30;
pub const PF_BLUETOOTH: i32 = 31;
pub const PF_IUCV: i32 = 32;
pub const PF_RXRPC: i32 = 33;
pub const PF_ISDN: i32 = 34;
pub const PF_PHONET: i32 = 35;
pub const PF_IEEE802154: i32 = 36;
pub const PF_CAIF: i32 = 37;
pub const PF_ALG: i32 = 38;
pub const PF_NFC: i32 = 39;
pub const PF_VSOCK: i32 = 40;
pub const PF_KCM: i32 = 41;
pub const PF_QIPCRTR: i32 = 42;
pub const PF_SMC: i32 = 43;
pub const PF_MAX: i32 = 44;
pub const AF_UNSPEC: i32 = PF_UNSPEC;
pub const AF_LOCAL: i32 = PF_LOCAL;
pub const AF_UNIX: i32 = PF_UNIX;
pub const AF_FILE: i32 = PF_FILE;
pub const AF_INET: i32 = PF_INET;
pub const AF_AX25: i32 = PF_AX25;
pub const AF_IPX: i32 = PF_IPX;
pub const AF_APPLETALK: i32 = PF_APPLETALK;
pub const AF_NETROM: i32 = PF_NETROM;
pub const AF_BRIDGE: i32 = PF_BRIDGE;
pub const AF_ATMPVC: i32 = PF_ATMPVC;
pub const AF_X25: i32 = PF_X25;
pub const AF_INET6: i32 = PF_INET6;
pub const AF_ROSE: i32 = PF_ROSE;
#[allow(non_upper_case_globals)]
pub const AF_DECnet: i32 = PF_DECnet;
pub const AF_NETBEUI: i32 = PF_NETBEUI;
pub const AF_SECURITY: i32 = PF_SECURITY;
pub const AF_KEY: i32 = PF_KEY;
pub const AF_NETLINK: i32 = PF_NETLINK;
pub const AF_ROUTE: i32 = PF_ROUTE;
pub const AF_PACKET: i32 = PF_PACKET;
pub const AF_ASH: i32 = PF_ASH;
pub const AF_ECONET: i32 = PF_ECONET;
pub const AF_ATMSVC: i32 = PF_ATMSVC;
pub const AF_RDS: i32 = PF_RDS;
pub const AF_SNA: i32 = PF_SNA;
pub const AF_IRDA: i32 = PF_IRDA;
pub const AF_PPPOX: i32 = PF_PPPOX;
pub const AF_WANPIPE: i32 = PF_WANPIPE;
pub const AF_LLC: i32 = PF_LLC;
pub const AF_IB: i32 = PF_IB;
pub const AF_MPLS: i32 = PF_MPLS;
pub const AF_CAN: i32 = PF_CAN;
pub const AF_TIPC: i32 = PF_TIPC;
pub const AF_BLUETOOTH: i32 = PF_BLUETOOTH;
pub const AF_IUCV: i32 = PF_IUCV;
pub const AF_RXRPC: i32 = PF_RXRPC;
pub const AF_ISDN: i32 = PF_ISDN;
pub const AF_PHONET: i32 = PF_PHONET;
pub const AF_IEEE802154: i32 = PF_IEEE802154;
pub const AF_CAIF: i32 = PF_CAIF;
pub const AF_ALG: i32 = PF_ALG;
pub const AF_NFC: i32 = PF_NFC;
pub const AF_VSOCK: i32 = PF_VSOCK;
pub const AF_KCM: i32 = PF_KCM;
pub const AF_QIPCRTR: i32 = PF_QIPCRTR;
pub const AF_SMC: i32 = PF_SMC;
pub const AF_MAX: i32 = PF_MAX;
pub const IPPROTO_IP: i32 = 0;
pub const IPPROTO_ICMP: i32 = 1;
pub const IPPROTO_IGMP: i32 = 2;
pub const IPPROTO_IPIP: i32 = 4;
pub const IPPROTO_TCP: i32 = 6;
pub const IPPROTO_EGP: i32 = 8;
pub const IPPROTO_PUP: i32 = 12;
pub const IPPROTO_UDP: i32 = 17;
pub const IPPROTO_IDP: i32 = 22;
pub const IPPROTO_TP: i32 = 29;
pub const IPPROTO_DCCP: i32 = 33;
pub const IPPROTO_IPV6: i32 = 41;
pub const IPPROTO_RSVP: i32 = 46;
pub const IPPROTO_GRE: i32 = 47;
pub const IPPROTO_ESP: i32 = 50;
pub const IPPROTO_AH: i32 = 51;
pub const IPPROTO_MTP: i32 = 92;
pub const IPPROTO_BEETPH: i32 = 94;
pub const IPPROTO_ENCAP: i32 = 98;
pub const IPPROTO_PIM: i32 = 103;
pub const IPPROTO_COMP: i32 = 108;
pub const IPPROTO_SCTP: i32 = 132;
pub const IPPROTO_UDPLITE: i32 = 136;
pub const IPPROTO_MPLS: i32 = 137;
pub const IPPROTO_RAW: i32 = 255;
pub const IPPROTO_MAX: i32 = 256;
pub const IP_TOS: i32 = 1;
pub const IP_TTL: i32 = 2;
pub const IP_HDRINCL: i32 = 3;
pub const IP_OPTIONS: i32 = 4;
pub const IP_ROUTER_ALERT: i32 =5;
pub const IP_RECVOPTS: i32 = 6;
pub const IP_RETOPTS: i32 = 7;
pub const IP_PKTINFO: i32 = 8;
pub const IP_PKTOPTIONS: i32 = 9;
pub const IP_MTU_DISCOVER: i32 = 10;
pub const IP_RECVERR: i32 = 11;
pub const IP_RECVTTL: i32 = 12;
pub const IP_RECVTOS: i32 = 13;
pub const IP_MTU: i32 = 14;
pub const IP_FREEBIND: i32 = 15;
pub const IP_IPSEC_POLICY: i32 = 16;
pub const IP_XFRM_POLICY: i32 = 17;
pub const IP_PASSSEC: i32 = 18;
pub const IP_TRANSPARENT: i32 = 19;
pub const IP_RECVRETOPTS: i32 = IP_RETOPTS;
pub const IP_ORIGDSTADDR: i32 = 20;
pub const IP_RECVORIGDSTADDR: i32 = IP_ORIGDSTADDR;
pub const IP_MINTTL: i32 = 21;
pub const IP_NODEFRAG: i32 = 22;
pub const IP_CHECKSUM: i32 = 23;
pub const IP_BIND_ADDRESS_NO_PORT: i32 = 24;
pub const IP_RECVFRAGSIZE: i32 = 25;
pub const TCP_MSS_DEFAULT: i32 = 536;
pub const TCP_MSS_DESIRED: i32 = 1220;
pub const TCP_NODELAY: i32 = 1;
pub const TCP_MAXSEG: i32 = 2;
pub const TCP_CORK: i32 = 3;
pub const TCP_KEEPIDLE: i32 = 4;
pub const TCP_KEEPINTVL: i32 = 5;
pub const TCP_KEEPCNT: i32 = 6;
pub const TCP_SYNCNT: i32 = 7;
pub const TCP_LINGER2: i32 = 8;
pub const TCP_DEFER_ACCEPT: i32 = 9;
pub const TCP_WINDOW_CLAMP: i32 = 10;
pub const TCP_INFO: i32 = 11;
pub const TCP_QUICKACK: i32 = 12;
pub const TCP_CONGESTION: i32 = 13;
pub const TCP_MD5SIG: i32 = 14;
pub const TCP_THIN_LINEAR_TIMEOUTS: i32 = 16;
pub const TCP_THIN_DUPACK: i32 = 17;
pub const TCP_USER_TIMEOUT: i32 = 18;
pub const TCP_REPAIR: i32 = 19;
pub const TCP_REPAIR_QUEUE: i32 = 20;
pub const TCP_QUEUE_SEQ: i32 = 21;
pub const TCP_REPAIR_OPTIONS: i32 = 22;
pub const TCP_FASTOPEN: i32 = 23;
pub const TCP_TIMESTAMP: i32 = 24;
pub const TCP_NOTSENT_LOWAT: i32 = 25;
pub const TCP_CC_INFO: i32 = 26;
pub const TCP_SAVE_SYN: i32 = 27;
pub const TCP_SAVED_SYN: i32 = 28;
pub const TCP_REPAIR_WINDOW: i32 = 29;
pub const TCP_FASTOPEN_CONNECT: i32 = 30;
pub const TCP_ULP: i32 = 31;
pub const TCP_MD5SIG_EXT: i32 = 32;
pub const TCP_FASTOPEN_KEY: i32 = 33;
pub const TCP_FASTOPEN_NO_COOKIE: i32 = 34;
pub const TCP_ZEROCOPY_RECEIVE: i32 = 35;
pub const TCP_INQ: i32 = 36;
pub const TCP_CM_INQ: i32 = TCP_INQ;
pub const TCP_REPAIR_ON: i32 = 1;
pub const TCP_REPAIR_OFF: i32 = 0;
pub const TCP_REPAIR_OFF_NO_WP: i32 = -1;
pub const AT_FDCWD: i32 = -100;
pub const AT_SYMLINK_NOFOLLOW: i32 = 0x100;
pub const AT_REMOVEDIR: i32 = 0x200;
pub const AT_EACCESS: i32 = 0x200;
pub const AT_SYMLINK_FOLLOW: i32 = 0x400;
pub const AT_NO_AUTOMOUNT: i32 = 0x800;
pub const AT_EMPTY_PATH: i32 = 0x1000;
pub const AT_STATX_SYNC_AS_STAT: i32 = 0x0000;
pub const AT_STATX_FORCE_SYNC: i32 = 0x2000;
pub const AT_STATX_DONT_SYNC: i32 = 0x4000;
pub const AT_STATX_SYNC_TYPE: i32 = 0x6000;
#[allow(overflowing_literals)]
pub const LINUX_REBOOT_MAGIC1: i32 = 0xfee1dead;
pub const LINUX_REBOOT_MAGIC2: i32 = 672274793;
pub const LINUX_REBOOT_MAGIC2A: i32 = 85072278;
pub const LINUX_REBOOT_MAGIC2B: i32 = 369367448;
pub const LINUX_REBOOT_MAGIC2C: i32 = 537993216;
pub const LINUX_REBOOT_CMD_RESTART: u32 = 0x01234567;
pub const LINUX_REBOOT_CMD_HALT: u32 = 0xCDEF0123;
pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 0x89ABCDEF;
pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0x00000000;
pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 0x4321FEDC;
pub const LINUX_REBOOT_CMD_RESTART2: u32 = 0xA1B2C3D4;
pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 0xD000FCE2;
pub const LINUX_REBOOT_CMD_KEXEC: u32 = 0x45584543;
pub const RLIMIT_CPU: i32 = 0;
pub const RLIMIT_FSIZE: i32 = 1;
pub const RLIMIT_DATA: i32 = 2;
pub const RLIMIT_STACK: i32 = 3;
pub const RLIMIT_CORE: i32 = 4;
pub const RLIMIT_RSS: i32 = 5;
pub const RLIMIT_NPROC: i32 = 6;
pub const RLIMIT_NOFILE: i32 = 7;
pub const RLIMIT_AS: i32 = 9;
pub const RLIMIT_MEMLOCK: i32 = 8;
pub const RLIMIT_LOCKS: i32 = 10;
pub const RLIMIT_SIGPENDING: i32 = 11;
pub const RLIMIT_MSGQUEUE: i32 = 12;
pub const RLIMIT_NICE: i32 = 13;
pub const RLIMIT_RTPRIO: i32 = 14;
pub const RLIMIT_RTTIME: i32 = 15;
pub const RLIMIT_NLIMITS: i32 = 16;
pub const SYSLOG_ACTION_CLOSE: i32 = 0;
pub const SYSLOG_ACTION_OPEN: i32 = 1;
pub const SYSLOG_ACTION_READ: i32 = 2;
pub const SYSLOG_ACTION_READ_ALL: i32 = 3;
pub const SYSLOG_ACTION_READ_CLEAR: i32 = 4;
pub const SYSLOG_ACTION_CLEAR: i32 = 5;
pub const SYSLOG_ACTION_CONSOLE_OFF: i32 = 6;
pub const SYSLOG_ACTION_CONSOLE_ON: i32 = 7;
pub const SYSLOG_ACTION_CONSOLE_LEVEL: i32 = 8;
pub const SYSLOG_ACTION_SIZE_UNREAD: i32 = 9;
pub const SYSLOG_ACTION_SIZE_BUFFER: i32 = 10;
pub const SYSLOG_FROM_READER: i32 = 0;
pub const SYSLOG_FROM_PROC: i32 = 1;
pub const PRIO_MIN: i32 = -20;
pub const PRIO_MAX: i32 = 20;
pub const PRIO_PROCESS: i32 = 0;
pub const PRIO_PGRP: i32 = 1;
pub const PRIO_USER: i32 = 2;
pub const CTL_MAXNAME: i32 = 10;
pub const CTL_KERN: i32 = 1;
pub const CTL_VM: i32 = 2;
pub const CTL_NET: i32 = 3;
pub const CTL_PROC: i32 = 4;
pub const CTL_FS: i32 = 5;
pub const CTL_DEBUG: i32 = 6;
pub const CTL_DEV: i32 = 7;
pub const CTL_BUS: i32 = 8;
pub const CTL_ABI: i32 = 9;
pub const CTL_CPU: i32 = 10;
pub const CTL_ARLAN: i32 = 254;
pub const CTL_S390DBF: i32 = 5677;
pub const CTL_SUNRPC: i32 = 7249;
pub const CTL_PM: i32 = 9899;
pub const CTL_FRV: i32 = 9898;
pub const CTL_BUS_ISA: i32 = 1;
pub const PR_SET_PDEATHSIG: i32 = 1;
pub const PR_GET_PDEATHSIG: i32 = 2;
pub const PR_GET_DUMPABLE: i32 = 3;
pub const PR_SET_DUMPABLE: i32 = 4;
pub const PR_GET_UNALIGN: i32 = 5;
pub const PR_SET_UNALIGN: i32 = 6;
pub const PR_GET_KEEPCAPS: i32 = 7;
pub const PR_SET_KEEPCAPS: i32 = 8;
pub const PR_GET_FPEMU: i32 = 9;
pub const PR_SET_FPEMU: i32 = 10;
pub const PR_GET_FPEXC: i32 = 11;
pub const PR_SET_FPEXC: i32 = 12;
pub const PR_GET_TIMING: i32 = 13;
pub const PR_SET_TIMING: i32 = 14;
pub const PR_SET_NAME: i32 = 15;
pub const PR_GET_NAME: i32 = 16;
pub const PR_GET_ENDIAN: i32 = 19;
pub const PR_SET_ENDIAN: i32 = 20;
pub const PR_GET_SECCOMP: i32 = 21;
pub const PR_SET_SECCOMP: i32 = 22;
pub const PR_CAPBSET_READ: i32 = 23;
pub const PR_CAPBSET_DROP: i32 = 24;
pub const PR_GET_TSC: i32 = 25;
pub const PR_SET_TSC: i32 = 26;
pub const PR_GET_SECUREBITS: i32 = 27;
pub const PR_SET_SECUREBITS: i32 = 28;
pub const PR_SET_TIMERSLACK: i32 = 29;
pub const PR_GET_TIMERSLACK: i32 = 30;
pub const PR_TASK_PERF_EVENTS_DISABLE: i32 = 31;
pub const PR_TASK_PERF_EVENTS_ENABLE: i32 = 32;
pub const PR_MCE_KILL: i32 = 33;
pub const PR_MCE_KILL_GET: i32 = 34;
pub const PR_SET_MM: i32 = 35;
pub const PR_UNALIGN_NOPRINT: i32 = 1;
pub const PR_UNALIGN_SIGBUS: i32 = 2;
pub const PR_FPEMU_NOPRINT: i32 = 1;
pub const PR_FPEMU_SIGFPE: i32 = 2;
pub const PR_FP_EXC_DISABLED: i32 = 0;
pub const PR_FP_EXC_NONRECOV: i32 = 1;
pub const PR_FP_EXC_ASYNC: i32 = 2;
pub const PR_FP_EXC_PRECISE: i32 = 3;
pub const PR_FP_EXC_SW_ENABLE: i32 = 0x80;
pub const PR_FP_EXC_DIV: i32 = 0x010000;
pub const PR_FP_EXC_OVF: i32 = 0x020000;
pub const PR_FP_EXC_UND: i32 = 0x040000;
pub const PR_FP_EXC_RES: i32 = 0x080000;
pub const PR_FP_EXC_INV: i32 = 0x100000;
pub const PR_TIMING_STATISTICAL: i32 = 0;
pub const PR_TIMING_TIMESTAMP: i32 = 1;
pub const PR_ENDIAN_BIG: i32 = 0;
pub const PR_ENDIAN_LITTLE: i32 = 1;
pub const PR_ENDIAN_PPC_LITTLE: i32 = 2;
pub const PR_TSC_ENABLE: i32 = 1;
pub const PR_TSC_SIGSEGV: i32 = 2;
pub const PR_MCE_KILL_CLEAR: i32 = 0;
pub const PR_MCE_KILL_SET: i32 = 1;
pub const PR_MCE_KILL_LATE: i32 = 0;
pub const PR_MCE_KILL_EARLY: i32 = 1;
pub const PR_MCE_KILL_DEFAULT: i32 = 2;
pub const PR_SET_MM_START_CODE: i32 = 1;
pub const PR_SET_MM_END_CODE: i32 = 2;
pub const PR_SET_MM_START_DATA: i32 = 3;
pub const PR_SET_MM_END_DATA: i32 = 4;
pub const PR_SET_MM_START_STACK: i32 = 5;
pub const PR_SET_MM_START_BRK: i32 = 6;
pub const PR_SET_MM_BRK: i32 = 7;
pub const PR_SET_MM_ARG_START: i32 = 8;
pub const PR_SET_MM_ARG_END: i32 = 9;
pub const PR_SET_MM_ENV_START: i32 = 10;
pub const PR_SET_MM_ENV_END: i32 = 11;
pub const PR_SET_MM_AUXV: i32 = 12;
pub const PR_SET_MM_EXE_FILE: i32 = 13;
pub const PR_SET_MM_MAP: i32 = 14;
pub const PR_SET_MM_MAP_SIZE: i32 = 15;
pub const ADJ_OFFSET: i32 = 0x0001;
pub const ADJ_FREQUENCY: i32 = 0x0002;
pub const ADJ_MAXERROR: i32 = 0x0004;
pub const ADJ_ESTERROR: i32 = 0x0008;
pub const ADJ_STATUS: i32 = 0x0010;
pub const ADJ_TIMECONST: i32 = 0x0020;
pub const ADJ_TAI: i32 = 0x0080;
pub const ADJ_SETOFFSET: i32 = 0x0100;
pub const ADJ_MICRO: i32 = 0x1000;
pub const ADJ_NANO: i32 = 0x2000;
pub const ADJ_TICK: i32 = 0x4000;
pub const STA_PLL: i32 = 0x0001;
pub const STA_PPSFREQ: i32 = 0x0002;
pub const STA_PPSTIME: i32 = 0x0004;
pub const STA_FLL: i32 = 0x0008;
pub const STA_INS: i32 = 0x0010;
pub const STA_DEL: i32 = 0x0020;
pub const STA_UNSYNC: i32 = 0x0040;
pub const STA_FREQHOLD: i32 = 0x0080;
pub const STA_PPSSIGNAL: i32 = 0x0100;
pub const STA_PPSJITTER: i32 = 0x0200;
pub const STA_PPSWANDER: i32 = 0x0400;
pub const STA_PPSERROR: i32 = 0x0800;
pub const STA_CLOCKERR: i32 = 0x1000;
pub const STA_NANO: i32 = 0x2000;
pub const STA_MODE: i32 = 0x4000;
pub const STA_CLK: i32 = 0x8000;
pub const TIME_OK: i32 = 0;
pub const TIME_INS: i32 = 1;
pub const TIME_DEL: i32 = 2;
pub const TIME_OOP: i32 = 3;
pub const TIME_WAIT: i32 = 4;
pub const TIME_ERROR: i32 = 5;
pub const TIME_BAD: i32 = TIME_ERROR;
pub const ITIMER_REAL: i32 = 0;
pub const ITIMER_VIRTUAL: i32 = 1;
pub const ITIMER_PROF: i32 = 2;
pub const CLOCK_REALTIME: i32 = 0;
pub const CLOCK_MONOTONIC: i32 = 1;
pub const CLOCK_PROCESS_CPUTIME_ID: i32 = 2;
pub const CLOCK_THREAD_CPUTIME_ID: i32 = 3;
pub const CLOCK_MONOTONIC_RAW: i32 = 4;
pub const CLOCK_REALTIME_COARSE: i32 = 5;
pub const CLOCK_MONOTONIC_COARSE: i32 = 6;
pub const CLOCK_BOOTTIME: i32 = 7;
pub const CLOCK_REALTIME_ALARM: i32 = 8;
pub const CLOCK_BOOTTIME_ALARM: i32 = 9;
pub const CLOCK_SGI_CYCLE: i32 = 10;
pub const CLOCK_TAI: i32 = 11;
pub const CLOCKS_MASK: i32 = (CLOCK_REALTIME | CLOCK_MONOTONIC);
pub const CLOCKS_MONO: i32 = CLOCK_MONOTONIC;
pub const MAX_CLOCKS: i32 = 16;
pub const TIMER_ABSTIME: i32 = 0x01;
pub const WNOHANG: i32 = 0x00000001;
pub const WUNTRACED: i32 = 0x00000002;
pub const WSTOPPED: i32 = WUNTRACED;
pub const WEXITED: i32 = 0x00000004;
pub const WCONTINUED: i32 = 0x00000008;
pub const WNOWAIT: i32 = 0x01000000;
pub const WNOTHREAD: i32 = 0x20000000;
pub const WALL: i32 = 0x40000000;
#[allow(overflowing_literals)]
pub const WCLONE: i32 = 0x80000000;
pub const P_AL: i32 = 0;
pub const P_PID: i32 = 1;
pub const P_PGID: i32 = 2;
pub const EFD_SEMAPHORE: i32 = (1 << 0);
pub const EFD_CLOEXEC: i32 = O_CLOEXEC;
pub const EFD_NONBLOCK: i32 = O_NONBLOCK;
pub const EFD_SHARED_FCNTL_FLAGS: i32 = (O_CLOEXEC | O_NONBLOCK);
pub const EFD_FLAGS_SET: i32 = (EFD_SHARED_FCNTL_FLAGS | EFD_SEMAPHORE);
pub const STATX_TYPE: u32 = 0x00000001;
pub const STATX_MODE: u32 = 0x00000002;
pub const STATX_NLINK: u32 = 0x00000004;
pub const STATX_UID: u32 = 0x00000008;
pub const STATX_GID: u32 = 0x00000010;
pub const STATX_ATIME: u32 = 0x00000020;
pub const STATX_MTIME: u32 = 0x00000040;
pub const STATX_CTIME: u32 = 0x00000080;
pub const STATX_INO: u32 = 0x00000100;
pub const STATX_SIZE: u32 = 0x00000200;
pub const STATX_BLOCKS: u32 = 0x00000400;
pub const STATX_BASIC_STATS: u32 = 0x000007ff;
pub const STATX_BTIME: u32 = 0x00000800;
pub const STATX_ALL: u32 = 0x00000fff;
pub const STATX__RESERVED: u32 = 0x80000000;
pub const STATX_ATTR_COMPRESSED: i32 = 0x00000004;
pub const STATX_ATTR_IMMUTABLE: i32 = 0x00000010;
pub const STATX_ATTR_APPEND: i32 = 0x00000020;
pub const STATX_ATTR_NODUMP: i32 = 0x00000040;
pub const STATX_ATTR_ENCRYPTED: i32 = 0x00000800;
pub const STATX_ATTR_AUTOMOUNT: i32 = 0x00001000;
pub const GRND_NONBLOCK: i32 = 0x0001;
pub const GRND_RANDOM: i32 = 0x0002;
pub const CSIGNAL: i32 = 0x000000ff;
pub const CLONE_VM: i32 = 0x00000100;
pub const CLONE_FS: i32 = 0x00000200;
pub const CLONE_FILES: i32 = 0x00000400;
pub const CLONE_SIGHAND: i32 = 0x00000800;
pub const CLONE_PTRACE: i32 = 0x00002000;
pub const CLONE_VFORK: i32 = 0x00004000;
pub const CLONE_PARENT: i32 = 0x00008000;
pub const CLONE_THREAD: i32 = 0x00010000;
pub const CLONE_NEWNS: i32 = 0x00020000;
pub const CLONE_SYSVSEM: i32 = 0x00040000;
pub const CLONE_SETTLS: i32 = 0x00080000;
pub const CLONE_PARENT_SETTID: i32 = 0x00100000;
pub const CLONE_CHILD_CLEARTID: i32 = 0x00200000;
pub const CLONE_DETACHED: i32 = 0x00400000;
pub const CLONE_UNTRACED: i32 = 0x00800000;
pub const CLONE_CHILD_SETTID: i32 = 0x01000000;
pub const CLONE_NEWCGROUP: i32 = 0x02000000;
pub const CLONE_NEWUTS: i32 = 0x04000000;
pub const CLONE_NEWIPC: i32 = 0x08000000;
pub const CLONE_NEWUSER: i32 = 0x10000000;
pub const CLONE_NEWPID: i32 = 0x20000000;
pub const CLONE_NEWNET: i32 = 0x40000000;
#[allow(overflowing_literals)]
pub const CLONE_IO: i32 = 0x80000000;
pub const SCHED_NORMAL: i32 = 0;
pub const SCHED_FIFO: i32 = 1;
pub const SCHED_RR: i32 = 2;
pub const SCHED_BATCH: i32 = 3;
pub const SCHED_IDLE: i32 = 5;
pub const SCHED_DEADLINE: i32 = 6;
pub const SCHED_RESET_ON_FORK: i32 = 0x40000000;
pub const SCHED_FLAG_RESET_ON_FORK: i32 = 0x01;
pub const SCHED_FLAG_RECLAIM: i32 = 0x02;
pub const SCHED_FLAG_DL_OVERRUN: i32 = 0x04;
pub const SCHED_FLAG_ALL: i32 = (SCHED_FLAG_RESET_ON_FORK | SCHED_FLAG_RECLAIM | SCHED_FLAG_DL_OVERRUN);
pub const SCHED_ATTR_SIZE_VER0: i32 = 48;
pub const MLOCK_ONFAULT: i32 = 0x01;
pub const MADV_NORMAL: i32 = 0;
pub const MADV_RANDOM: i32 = 1;
pub const MADV_SEQUENTIAL: i32 = 2;
pub const MADV_WILLNEED: i32 = 3;
pub const MADV_DONTNEED: i32 = 4;
pub const MADV_FREE: i32 = 8;
pub const MADV_REMOVE: i32 = 9;
pub const MADV_DONTFORK: i32 = 10;
pub const MADV_DOFORK: i32 = 11;
pub const MADV_MERGEABLE: i32 = 12;
pub const MADV_UNMERGEABLE: i32 = 13;
pub const MADV_HUGEPAGE: i32 = 14;
pub const MADV_NOHUGEPAGE: i32 = 15;
pub const MADV_DONTDUMP: i32 = 16;
pub const MADV_DODUMP: i32 = 17;
pub const MADV_WIPEONFORK: i32 = 18;
pub const MADV_KEEPONFORK: i32 = 19;
pub const MADV_HWPOISON: i32 = 100;
pub const MADV_SOFT_OFFLINE: i32 = 101;
pub const MAP_FILE: i32 = 0;
pub const PKEY_DISABLE_ACCESS: i32 = 0x1;
pub const PKEY_DISABLE_WRITE: i32 = 0x2;
pub const PKEY_ACCESS_MASK: i32 = (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE);
pub const FAN_ACCESS: i32 = 0x00000001;
pub const FAN_MODIFY: i32 = 0x00000002;
pub const FAN_ATTRIB: i32 = 0x00000004;
pub const FAN_CLOSE_WRITE: i32 = 0x00000008;
pub const FAN_CLOSE_NOWRITE: i32 = 0x00000010;
pub const FAN_OPEN: i32 = 0x00000020;
pub const FAN_MOVED_FROM: i32 = 0x00000040;
pub const FAN_MOVED_TO: i32 = 0x00000080;
pub const FAN_CREATE: i32 = 0x00000100;
pub const FAN_DELETE: i32 = 0x00000200;
pub const FAN_DELETE_SELF: i32 = 0x00000400;
pub const FAN_MOVE_SELF: i32 = 0x00000800;
pub const FAN_OPEN_EXEC: i32 = 0x00001000;
pub const FAN_Q_OVERFLOW: i32 = 0x00004000;
pub const FAN_OPEN_PERM: i32 = 0x00010000;
pub const FAN_ACCESS_PERM: i32 = 0x00020000;
pub const FAN_OPEN_EXEC_PERM: i32 = 0x00040000;
pub const FAN_ONDIR: i32 = 0x40000000;
pub const FAN_EVENT_ON_CHILD: i32 = 0x08000000;
pub const FAN_CLOSE: i32 = (FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE);
pub const FAN_MOVE: i32 = (FAN_MOVED_FROM | FAN_MOVED_TO);
pub const FAN_CLOEXEC: i32 = 0x00000001;
pub const FAN_NONBLOCK: i32 =0x00000002;
pub const FAN_CLASS_NOTIF: i32 = 0x00000000;
pub const FAN_CLASS_CONTENT: i32 = 0x00000004;
pub const FAN_CLASS_PRE_CONTENT: i32 = 0x00000008;
pub const FAN_UNLIMITED_QUEUE: i32 = 0x00000010;
pub const FAN_UNLIMITED_MARKS: i32 = 0x00000020;
pub const FAN_ENABLE_AUDIT: i32 = 0x00000040;
pub const FAN_REPORT_TID: i32 = 0x00000100;
pub const FAN_REPORT_FID: i32 = 0x00000200;
pub const FAN_MARK_ADD: i32 = 0x00000001;
pub const FAN_MARK_REMOVE: i32 = 0x00000002;
pub const FAN_MARK_DONT_FOLLOW: i32 = 0x00000004;
pub const FAN_MARK_ONLYDIR: i32 = 0x00000008;
pub const FAN_MARK_IGNORED_MASK: i32 = 0x00000020;
pub const FAN_MARK_IGNORED_SURV_MODIFY: i32 = 0x00000040;
pub const FAN_MARK_FLUSH: i32 = 0x00000080;
pub const FAN_MARK_INODE: i32 = 0x00000000;
pub const FAN_MARK_MOUNT: i32 = 0x00000010;
pub const FAN_MARK_FILESYSTEM: i32 = 0x00000100;
pub const FANOTIFY_METADATA_VERSION: i32 = 3;
pub const FAN_EVENT_INFO_TYPE_FID: i32 = 1;
pub const FAN_ALLOW: i32 = 0x01;
pub const FAN_DENY: i32 = 0x02;
pub const FAN_AUDIT: i32 = 0x10;
pub const FAN_NOFD: i32 = -1;
pub const NR_OPEN: i32 = 1024;
pub const NGROUPS_MAX: i32 = 65536;
pub const ARG_MAX: i32 = 131072;
pub const LINK_MAX: i32 = 127;
pub const MAX_CANON: i32 = 255;
pub const MAX_INPUT: i32 = 255;
pub const NAME_MAX: i32 = 255;
pub const PATH_MAX: i32 = 4096;
pub const PIPE_BUF: i32 = 4096;
pub const XATTR_NAME_MAX: i32 = 255;
pub const XATTR_SIZE_MAX: i32 = 65536;
pub const XATTR_LIST_MAX: i32 = 65536;
pub const RTSIG_MAX: i32 = 32;
pub const EPOLL_CLOEXEC: i32 = O_CLOEXEC;
pub const EPOLL_CTL_ADD: i32 = 1;
pub const EPOLL_CTL_DEL: i32 = 2;
pub const EPOLL_CTL_MOD: i32 = 3;
pub const EPOLLIN: poll_t = 0x00000001;
pub const EPOLLPRI: poll_t = 0x00000002;
pub const EPOLLOUT: poll_t = 0x00000004;
pub const EPOLLERR: poll_t = 0x00000008;
pub const EPOLLHUP: poll_t = 0x00000010;
pub const EPOLLNVAL: poll_t = 0x00000020;
pub const EPOLLRDNORM: poll_t = 0x00000040;
pub const EPOLLRDBAND: poll_t = 0x00000080;
pub const EPOLLWRNORM: poll_t = 0x00000100;
pub const EPOLLWRBAND: poll_t = 0x00000200;
pub const EPOLLMSG: poll_t = 0x00000400;
pub const EPOLLRDHUP: poll_t = 0x00002000;
pub const EPOLLEXCLUSIVE: poll_t = (1 << 28);
pub const EPOLLWAKEUP: poll_t = (1 << 29);
pub const EPOLLONESHOT: poll_t = (1 << 30);
pub const EPOLLET: poll_t = (1 << 31);
pub const TCGETS: i32 = 0x5401;
pub const TCSETS: i32 = 0x5402;
pub const TCSETSW: i32 = 0x5403;
pub const TCSETSF: i32 = 0x5404;
pub const TCGETA: i32 = 0x5405;
pub const TCSETA: i32 = 0x5406;
pub const TCSETAW: i32 = 0x5407;
pub const TCSETAF: i32 = 0x5408;
pub const TCSBRK: i32 = 0x5409;
pub const TCXONC: i32 = 0x540A;
pub const TCFLSH: i32 = 0x540B;
pub const TIOCEXCL: i32 = 0x540C;
pub const TIOCNXCL: i32 = 0x540D;
pub const TIOCSCTTY: i32 = 0x540E;
pub const TIOCGPGRP: i32 = 0x540F;
pub const TIOCSPGRP: i32 = 0x5410;
pub const TIOCOUTQ: i32 = 0x5411;
pub const TIOCSTI: i32 = 0x5412;
pub const TIOCGWINSZ: i32 = 0x5413;
pub const TIOCSWINSZ: i32 = 0x5414;
pub const TIOCMGET: i32 = 0x5415;
pub const TIOCMBIS: i32 = 0x5416;
pub const TIOCMBIC: i32 = 0x5417;
pub const TIOCMSET: i32 = 0x5418;
pub const TIOCGSOFTCAR: i32 = 0x5419;
pub const TIOCSSOFTCAR: i32 = 0x541A;
pub const FIONREAD: i32 = 0x541B;
pub const TIOCINQ: i32 = FIONREAD;
pub const TIOCLINUX: i32 = 0x541C;
pub const TIOCCONS: i32 = 0x541D;
pub const TIOCGSERIAL: i32 = 0x541E;
pub const TIOCSSERIAL: i32 = 0x541F;
pub const TIOCPKT: i32 = 0x5420;
pub const FIONBIO: i32 = 0x5421;
pub const TIOCNOTTY: i32 = 0x5422;
pub const TIOCSETD: i32 = 0x5423;
pub const TIOCGETD: i32 = 0x5424;
pub const TCSBRKP: i32 = 0x5425;
pub const TIOCSBRK: i32 = 0x5427;
pub const TIOCCBRK: i32 = 0x5428;
pub const TIOCGSID: i32 = 0x5429;
pub const TCGETS2: i32 = 0x402C542B;
#[allow(overflowing_literals)]
pub const TCSETS2: i32 = 0x802C542A;
pub const TCSETSW2: i32 = 0x402C542C;
pub const TCSETSF2: i32 = 0x402C542D;
pub const TIOCGRS485: i32 = 0x542E;
pub const TIOCSRS485: i32 = 0x542F;
#[allow(overflowing_literals)]
pub const TIOCGPTN: i32 = 0x80045430;
pub const TIOCSPTLCK: i32 = 0x40045431;
#[allow(overflowing_literals)]
pub const TIOCGDEV: i32 = 0x80045432;
pub const TCGETX: i32 = 0x5432;
pub const TCSETX: i32 = 0x5433;
pub const TCSETXF: i32 = 0x5434;
pub const TCSETXW: i32 = 0x5435;
pub const TIOCSIG: i32 = 0x40045436;
pub const TIOCVHANGUP: i32 = 0x5437;
#[allow(overflowing_literals)]
pub const TIOCGPKT: i32 = 0x80045438;
#[allow(overflowing_literals)]
pub const TIOCGPTLCK: i32 = 0x80045439;
#[allow(overflowing_literals)]
pub const TIOCGEXCL: i32 = 0x80045440;
pub const TIOCGPTPEER: i32 = 0x5441;
pub const FIONCLEX: i32 = 0x5450;
pub const FIOCLEX: i32 = 0x5451;
pub const TIOCSERCONFIG: i32 = 0x5453;
pub const TIOCSERGWILD: i32 = 0x5454;
pub const TIOCSERSWILD: i32 = 0x5455;
pub const TIOCGLCKTRMIOS: i32 = 0x5456;
pub const TIOCSLCKTRMIOS: i32 = 0x5457;
pub const TIOCSERGSTRUCT: i32 = 0x5458;
pub const TIOCSERGETLSR: i32 = 0x5459;
pub const TIOCSERGETMULTI: i32 = 0x545A;
pub const TIOCSERSETMULTI: i32 = 0x545B;
pub const TIOCMIWAIT: i32 = 0x545C;
pub const TIOCGICOUNT: i32 = 0x545D;
pub const FIOQSIZE: i32 = 0x5460;
pub const TIOCPKT_DATA: i32 = 0;
pub const TIOCPKT_FLUSHREAD: i32 = 1;
pub const TIOCPKT_FLUSHWRITE: i32 = 2;
pub const TIOCPKT_STOP: i32 = 4;
pub const TIOCPKT_START: i32 = 8;
pub const TIOCPKT_NOSTOP: i32 = 16;
pub const TIOCPKT_DOSTOP: i32 = 32;
pub const TIOCPKT_IOCTL: i32 = 64;
pub const TIOCSER_TEMT: i32 = 0x01;