1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
// This file is part of linux-support. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-support/master/COPYRIGHT. No part of linux-support, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2020 The developers of linux-support. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-support/master/COPYRIGHT.
//! #linux-support
//!
//! This library provides wrappers and additional functionality to make use of a panoply of miscellaneous Linux (and, sometimes, POSIX) features.
//!
//! See <https://github.com/lemonrock/linux-support> for far more detail.
use assert_cfg;
assert_cfg!;
assert_cfg!;
use crateHyperThread;
use crateNumaNode;
use cratePathExt;
use CacheInfo;
use CacheInfoType;
use CacheType;
use CpuId;
use CacheParameter;
use DatType;
use FeatureInfo;
use ExtendedFunctionInfo;
use ExtendedFeatures;
use ExtendedState;
use ExtendedTopologyLevel;
use Hypervisor;
use L2Associativity;
use SgxSectionInfo;
use TopologyType;
use ArrayVec;
use CapacityError;
use bitflags;
use DateTime;
use Datelike;
use SecondsFormat;
use Timelike;
use Utc;
use cfn_assert;
use cfn_assert_eq;
use cfn_assert_ne;
use cfn_debug_assert;
use cfn_debug_assert_eq;
use cfn_debug_assert_ne;
use ArrayQueue;
use Either;
use Left;
use Right;
use Errno;
use errno;
use set_errno;
use indexset;
use IndexSet;
use lazy_static;
use _IOLBF;
use _SC_NPROCESSORS_CONF;
use AF_IB;
use AF_INET6;
use AF_INET;
use AF_NETLINK;
use AF_PACKET;
use AF_UNIX;
use AF_UNSPEC;
use AT_EACCESS;
use AT_EMPTY_PATH;
use AT_FDCWD;
use AT_NO_AUTOMOUNT;
use AT_REMOVEDIR;
use AT_SYMLINK_FOLLOW;
use AT_SYMLINK_NOFOLLOW;
use E2BIG;
use EACCES;
use EADDRINUSE;
use EADDRNOTAVAIL;
use EAFNOSUPPORT;
use EAGAIN;
use EALREADY;
use EBADF;
use EBADR;
use EBUSY;
use ECANCELED;
use ECONNABORTED;
use ECONNREFUSED;
use ECONNRESET;
use EDEADLK;
use EDESTADDRREQ;
use EDQUOT;
use EEXIST;
use EFAULT;
use EFBIG;
use EINPROGRESS;
use EINTR;
use EINVAL;
use EIO;
use EISCONN;
use EISDIR;
use ELOOP;
use EMFILE;
use EMSGSIZE;
use ENAMETOOLONG;
use ENETDOWN;
use ENETUNREACH;
use ENFILE;
use ENOBUFS;
use ENODATA;
use ENODEV;
use ENOENT;
use ENOLCK;
use ENOMEM;
use ENOPROTOOPT;
use ENOSPC;
use ENOSR;
use ENOSYS;
use ENOTBLK;
use ENOTCONN;
use ENOTDIR;
use ENOTSOCK;
use ENOTTY;
use ENXIO;
use EOPNOTSUPP;
use EOVERFLOW;
use EPERM;
use EPIPE;
use EPROTO;
use EPROTONOSUPPORT;
use ERANGE;
use EROFS;
use ESOCKTNOSUPPORT;
use ESPIPE;
use ESRCH;
use ETIME;
use ETIMEDOUT;
use ETXTBSY;
use EWOULDBLOCK;
use EXDEV;
use FD_CLOEXEC;
use FIONREAD;
use F_ADD_SEALS;
use F_DUPFD_CLOEXEC;
use F_GETFD;
use F_GETFL;
use F_GETLEASE;
use F_GETLK;
use F_GETPIPE_SZ;
use F_GET_SEALS;
use F_OFD_GETLK;
use F_OFD_SETLK;
use F_OFD_SETLKW;
use F_OK;
use F_RDLCK;
use F_SEAL_FUTURE_WRITE;
use F_SEAL_GROW;
use F_SEAL_SEAL;
use F_SEAL_SHRINK;
use F_SEAL_WRITE;
use F_SETFD;
use F_SETFL;
use F_SETLEASE;
use F_SETLK;
use F_SETLKW;
use F_SETPIPE_SZ;
use F_UNLCK;
use F_WRLCK;
use FILE;
use IFA_F_DADFAILED;
use IFA_F_DEPRECATED;
use IFA_F_HOMEADDRESS;
use IFA_F_NODAD;
use IFA_F_OPTIMISTIC;
use IFA_F_PERMANENT;
use IFA_F_SECONDARY;
use IFA_F_TENTATIVE;
use IFNAMSIZ;
use IPPROTO_TCP;
use IPPROTO_UDP;
use LC_ALL;
use LOCK_EX;
use LOCK_NB;
use LOCK_SH;
use LOCK_UN;
use LOG_NDELAY;
use LOG_PERROR;
use LOG_PID;
use MAP_ANONYMOUS;
use MAP_FAILED;
use MAP_FIXED;
use MAP_HUGETLB;
use MAP_NORESERVE;
use MAP_POPULATE;
use MAP_PRIVATE;
use MCL_CURRENT;
use MCL_FUTURE;
use MNT_DETACH;
use MNT_EXPIRE;
use MNT_FORCE;
use MREMAP_FIXED;
use MREMAP_MAYMOVE;
use MS_ASYNC;
use MS_BIND;
use MS_DIRSYNC;
use MS_MANDLOCK;
use MS_MOVE;
use MS_NOATIME;
use MS_NODEV;
use MS_NODIRATIME;
use MS_NOEXEC;
use MS_NOSUID;
use MS_INVALIDATE;
use MS_REC;
use MS_RELATIME;
use MS_SILENT;
use MS_STRICTATIME;
use MS_SYNC;
use MS_SYNCHRONOUS;
use NETLINK_ROUTE;
use NLMSG_DONE;
use NLMSG_ERROR;
use NLMSG_NOOP;
use NLMSG_OVERRUN;
use NLM_F_ACK;
use NLM_F_APPEND;
use NLM_F_ATOMIC;
use NLM_F_CREATE;
use NLM_F_DUMP_FILTERED;
use NLM_F_DUMP_INTR;
use NLM_F_ECHO;
use NLM_F_EXCL;
use NLM_F_MATCH;
use NLM_F_MULTI;
use NLM_F_REPLACE;
use NLM_F_REQUEST;
use NLM_F_ROOT;
use O_APPEND;
use O_CLOEXEC;
use O_CREAT;
use O_DIRECT;
use O_DIRECTORY;
use O_DSYNC;
use O_EXCL;
use O_LARGEFILE;
use O_NOATIME;
use O_NOCTTY;
use O_NOFOLLOW;
use O_NONBLOCK;
use O_PATH;
use O_RDONLY;
use O_RDWR;
use O_SYNC;
use O_TMPFILE;
use O_TRUNC;
use O_WRONLY;
use poll;
use pollfd;
use POLLERR;
use POLLHUP;
use POLLIN;
use POLLNVAL;
use POLLOUT;
use POLLPRI;
use POLLRDBAND;
use POLLRDNORM;
use POSIX_FADV_DONTNEED;
use POSIX_FADV_NOREUSE;
use POSIX_FADV_NORMAL;
use POSIX_FADV_RANDOM;
use POSIX_FADV_SEQUENTIAL;
use POSIX_FADV_WILLNEED;
use PR_CAP_AMBIENT;
use PR_CAP_AMBIENT_CLEAR_ALL;
use PR_CAP_AMBIENT_IS_SET;
use PR_CAP_AMBIENT_LOWER;
use PR_CAP_AMBIENT_RAISE;
use PR_CAPBSET_DROP;
use PR_CAPBSET_READ;
use PR_GET_CHILD_SUBREAPER;
use PR_GET_DUMPABLE;
use PR_GET_KEEPCAPS;
use PR_GET_PDEATHSIG;
use PR_GET_NO_NEW_PRIVS;
use PR_GET_SECUREBITS;
use PR_GET_THP_DISABLE;
use PR_GET_TIMERSLACK;
use PR_GET_TSC;
use PR_SET_CHILD_SUBREAPER;
use PR_SET_DUMPABLE;
use PR_SET_NO_NEW_PRIVS;
use PR_SET_PDEATHSIG;
use PR_SET_SECUREBITS;
use PR_SET_THP_DISABLE;
use PR_SET_TIMERSLACK;
use PR_SET_TSC;
use PR_TASK_PERF_EVENTS_DISABLE;
use PR_TASK_PERF_EVENTS_ENABLE;
use PR_MCE_KILL;
use PR_MCE_KILL_CLEAR;
use PR_MCE_KILL_DEFAULT;
use PR_MCE_KILL_EARLY;
use PR_MCE_KILL_GET;
use PR_MCE_KILL_LATE;
use PR_MCE_KILL_SET;
use PRIO_PGRP;
use PRIO_PROCESS;
use PRIO_USER;
use PROT_EXEC;
use PROT_GROWSDOWN;
use PROT_GROWSUP;
use PROT_NONE;
use PROT_READ;
use PROT_WRITE;
use PR_GET_NAME;
use PR_SET_NAME;
use RLIM_INFINITY;
use RLIMIT_AS;
use RLIMIT_CORE;
use RLIMIT_CPU;
use RLIMIT_DATA;
use RLIMIT_FSIZE;
use RLIMIT_MEMLOCK;
use RLIMIT_MSGQUEUE;
use RLIMIT_NICE;
use RLIMIT_NOFILE;
use RLIMIT_NPROC;
use RLIMIT_RSS;
use RLIMIT_RTPRIO;
use RLIMIT_RTTIME;
use RLIMIT_SIGPENDING;
use RLIMIT_STACK;
use RENAME_EXCHANGE;
use RENAME_NOREPLACE;
use RENAME_WHITEOUT;
use R_OK;
use SEEK_CUR;
use SEEK_END;
use SEEK_SET;
use SIG_BLOCK;
use SIG_DFL;
use SIG_SETMASK;
use SOCK_DGRAM;
use SOCK_RAW;
use SOCK_STREAM;
use ST_MANDLOCK;
use ST_NOATIME;
use ST_NODEV;
use ST_NODIRATIME;
use ST_NOEXEC;
use ST_NOSUID;
use ST_RDONLY;
use ST_SYNCHRONOUS;
use SYNC_FILE_RANGE_WAIT_AFTER;
use SYNC_FILE_RANGE_WAIT_BEFORE;
use SYNC_FILE_RANGE_WRITE;
use S_IFBLK;
use S_IFCHR;
use S_IFDIR;
use S_IFIFO;
use S_IFLNK;
use S_IFMT;
use S_IFREG;
use S_IFSOCK;
use S_IRUSR;
use S_IRWXG;
use S_IRWXO;
use S_IRWXU;
use S_IWUSR;
use UTIME_NOW;
use UTIME_OMIT;
use W_OK;
use XATTR_CREATE;
use XATTR_REPLACE;
use X_OK;
use c_char;
use c_int;
use c_long;
use c_longlong;
use c_short;
use c_uchar;
use c_uint;
use c_ulong;
use c_ulonglong;
use c_ushort;
use c_void;
use clearenv;
use clock_t;
use close;
use cpu_set_t;
use dev_t;
use dup2;
use endmntent;
use faccessat;
use fallocate;
use fchdir;
use fchmodat;
use fchownat;
use fcntl;
use fdatasync;
use fgetxattr;
use flistxattr;
use fork;
use fremovexattr;
use fsetxattr;
use fstatat;
use fstatvfs;
use fsync;
use getegid;
use geteuid;
use getgid;
use getgroups;
use getmntent;
use getpagesize;
use getpgid;
use getpid;
use getpriority;
use getresgid;
use getresuid;
use getrlimit;
use getsid;
use getuid;
use gid_t;
use in_addr_t;
use in_port_t;
use ino_t;
use ioctl;
use iovec;
use linkat;
use loff_t;
use lseek;
use madvise;
use mkdirat;
use mknodat;
use mlockall;
use mmap;
use mntent;
use mode_t;
use mount;
use mprotect;
use mremap;
use msync;
use munlock;
use munlockall;
use munmap;
use nlink_t;
use off_t;
use open;
use openat;
use openlog;
use pid_t;
use posix_fadvise;
use prctl;
use pread;
use process_vm_readv;
use process_vm_writev;
use pthread_self;
use pthread_setaffinity_np;
use pthread_sigmask;
use pthread_t;
use pwrite;
use readahead;
use recv;
use rlim_t;
use rlimit;
use sa_family_t;
use sched_getaffinity;
use sched_getcpu;
use sched_rr_get_interval;
use sched_setaffinity;
use send;
use sendfile;
use setdomainname;
use setenv;
use setfsgid;
use setfsuid;
use setgroups;
use sethostname;
use setlocale;
use setlogmask;
use setmntent;
use setpriority;
use setresgid;
use setresuid;
use setrlimit;
use setsid;
use setvbuf;
use sigaddset;
use sigdelset;
use sigemptyset;
use sigfillset;
use siginfo_t;
use sigtimedwait;
use sigset_t;
use size_t;
use socklen_t;
use ssize_t;
use stat;
use statvfs;
use strnlen;
use strsignal;
use swapoff;
use symlinkat;
use sync;
use sync_file_range;
use sysconf;
use sysinfo;
use time_t;
use timespec;
use timeval;
use uid_t;
use umask;
use umount2;
use unlink;
use unlinkat;
use utimensat;
use cookie_io_functions_t;
use fopencookie;
use program_invocation_short_name;
use stdio;
use likely;
use unlikely;
use btreeset;
use Memchr;
use memchr2;
use memchr3;
use memchr;
use memchr_iter;
use memrchr;
use offset_of;
use AsPrimitive;
use Unsigned;
use Deserialize;
use Deserializer;
use Serialize;
use Serializer;
use de;
use DeserializeOwned;
use Unexpected;
use Visitor;
use big_array;
use ByteBuf;
use Any;
use TypeId;
use TryFromSliceError;
use Borrow;
use BorrowMut;
use Cow;
use Cell;
use Ref;
use RefCell;
use UnsafeCell;
use Eq;
use Ord;
use Ordering;
use PartialEq;
use PartialOrd;
use max;
use min;
use BTreeMap;
use BTreeSet;
use AsRef;
use Infallible;
use TryFrom;
use TryInto;
use args_os;
use current_dir;
use current_exe;
use JoinPathsError;
use join_paths;
use set_current_dir;
use set_var;
use var_os;
use vars_os;
use error;
use Error;
use CStr;
use CString;
use FromBytesWithNulError;
use NulError;
use OsStr;
use OsString;
use fmt;
use Arguments;
use Debug;
use Display;
use Formatter;
use create_dir_all;
use DirBuilder;
use DirEntry;
use File;
use OpenOptions;
use metadata;
use Permissions;
use remove_dir;
use remove_file;
use set_permissions;
use Hash;
use Hasher;
use Step;
use io;
use BufRead;
use BufReader;
use BufWriter;
use ErrorKind;
use Initializer;
use IoSlice;
use IoSliceMut;
use Read;
use Seek;
use SeekFrom;
use Stderr;
use Stdin;
use Stdout;
use Write;
use stderr;
use stdin;
use stdout;
use SyncOnceCell;
use PhantomData;
use ManuallyDrop;
use MaybeUninit;
use align_of;
use forget;
use size_of;
use transmute;
use transmute_copy;
use IpAddr;
use Ipv4Addr;
use Ipv6Addr;
use SocketAddr;
use SocketAddrV4;
use SocketAddrV6;
use NonZeroI32;
use NonZeroU128;
use NonZeroU16;
use NonZeroU32;
use NonZeroU64;
use NonZeroU8;
use NonZeroUsize;
use ParseIntError;
use TryFromIntError;
use Add;
use AddAssign;
use BitAnd;
use BitOr;
use BitXorAssign;
use Deref;
use DerefMut;
use Div;
use Mul;
use Not;
use Range;
use RangeFull;
use RangeFrom;
use RangeInclusive;
use RangeTo;
use RangeToInclusive;
use Shl;
use Shr;
use Sub;
use SubAssign;
use OsStrExt;
use OsStringExt;
use DirBuilderExt;
use FileExt;
use PermissionsExt;
use AsRawFd;
use FromRawFd;
use IntoRawFd;
use RawFd;
use JoinHandleExt;
use AssertUnwindSafe;
use RefUnwindSafe;
use catch_unwind;
use resume_unwind;
use set_hook;
use Path;
use PathBuf;
use Command;
use Stdio;
use exit;
use addr_of;
use NonNull;
use null;
use null_mut;
use read;
use read_volatile;
use write;
use write_bytes;
use write_volatile;
use Rc;
use Weak;
use from_raw_parts;
use from_raw_parts_mut;
use Utf8Error;
use from_utf8;
use from_utf8_unchecked;
use Arc;
use Mutex;
use MutexGuard;
use AtomicBool;
use AtomicU32;
use Acquire;
use Release;
use Builder;
use JoinHandle;
use Thread;
use ThreadId;
use current;
use panicking;
use park;
use sleep;
use yield_now;
use Duration;
use SystemTime;
use UNIX_EPOCH;
use StreamingIterator;
use EnumCount;
use EnumMessage;
use IntoEnumIterator;
use EnumCount;
use EnumDiscriminants;
use EnumIter;
use EnumMessage;
use IntoStaticStr;
use bit_set_aware;
use fast_secure_hash_map;
use fast_secure_hash_set;
use LoadNonAtomically;
use move_to_front_of_vec;
use StaticInitializedOnce;
use unreachable_code;
use unreachable_code_const;
use VariablySized;
use BigEndianU16;
use BigEndianU32;
use BigEndianU128;
use BitsInAByte;
use BitSet;
use BitSetAware;
use BitSetAwareTryFromU16Error;
use BitSetIterator;
use IntoBitMask;
use IntoList;
use ListParseError;
use PerBitSetAwareData;
use io_error_invalid_data;
use io_error_not_found;
use io_error_other;
use io_error_permission_denied;
use io_error_timed_out;
use AsUsizeIndex;
use GetUnchecked;
use BestForCompilationTargetSpinLock;
use busy_wait_spin_loop_hint;
use SpinLock;
use FastSecureHashMap as HashMap;
use FastSecureHashMapEntry;
use FastSecureHashSet as HashSet;
use InternetProtocolAddress;
use InternetProtocolAddressWithMask;
use new_non_null;
use new_non_zero_i32;
use new_non_zero_u128;
use new_non_zero_u16;
use new_non_zero_u32;
use new_non_zero_u64;
use new_non_zero_u8;
use new_non_zero_usize;
use path_bytes_without_trailing_nul;
use PathBufExt;
use SplitBytes;
use c_string_pointer_to_path_buf;
use ConstCStr;
use CStringExt;
use format_escaped_ascii_string;
use FromBytes;
use LinuxStringEscapeSequence;
use NonNumericDigitCase;
use NulTerminatedCStringArray;
use OsStrExtMore;
use parse_ascii_nul_string_values;
use path_to_cstring;
use Radix;
use replace;
use without_suffix;
use IntegerIntoLineFeedTerminatedByteString;
use IntoLineFeedTerminatedByteString;
use UnpaddedDecimalInteger;
use ZeroPaddedLowerCaseHexadecimalInteger;
use ParseNumber;
use ParseNumberError;
use ParseNumberOption;
use NumberAsBytes;
use unsafe_uninitialized;
use unsafe_zeroed;
use ParsedPanic;
use ParsedPanicErrorLogger;
use SimpleTerminate;
use Terminate;
/// Vectored reads and writes.
/// Berkeley Packet Filter (BPF) and Extended Berkeley Packet Filter (eBPF).
/// Capabilities and privileges.
///
/// * Manage capability sets for security.
/// * Disable the 'dumpable' flag for security.
/// * Lock down a process to remove privileges.
/// Core dump settings.
/// Cgroups (containers).
/// Configuration.
/// CPU.
///
/// * Cpu features wrapper.
/// * A proper CPU count that takes into account NUMA nodes, hotplugs, etc.
/// * Hyper thread (SMT) insight, status, usage, etc.
/// * Turn off and on
/// * Mappings to NUMA nodes
/// * And lots more
/// Block and character device abstractions.
/// Diagnostics.
/// Environment variables.
///
/// * Find the original environment of a process.
/// * Find the command line of a process.
/// * Create a clean environment for a process with just essential variables set (a security and reproducibility protection).
/// eXpress Data Path (XDP).
///
/// Start by creating an instance of `ExpressDataPathInstance`.
/// Extended file attributes.
/// File handles.
/// File systems.
/// Inode.
///
/// A wrapper type for Inodes.
/// Interrupt requests in `/proc`.
/// `ioprio` and scheduling.
///
/// Also known as `ionice`.
/// io_uring.
/// ioctl support, including const fn for creating ioctl constants.
/// Basic (for security) access io I/O ports on mip64, powerpc64 and x86_64.
/// Linux kernel command line.
/// Also known as `KAIO`.
///
/// Support for functions such as `io_submit()` in `linuxaio.h`.
///
/// This is *NOT* POSIX AIO.
///
/// Very basic support.
/// Linux kernel lock down; allows protection of the kernel from the root user using either the integrity or, stronger, confidentiality, setting.
/// Linux kernel modules.
/// Linux kernel panic.
/// Linux kernel version.
/// Logging.
///
/// Miscellany support for using syslog with a Rust process, including:-
///
/// * Redirecting standard out and standard error to syslog;
/// * Logging process terminating signals to syslog.
/// * Logging panics to syslog.
/// * Configuring syslog.
/// Memory.
///
/// * Detailed, comprehensive and insightful NUMA node level information.
/// * Proper, modern Linux support for huge pages and mapping huge pages into memory.
/// * Memory usage and insight.
/// * A Linux-specific wrapper for mmap and related functionality that makes it *much* harder to misconfigure.
/// * Wrapper types for virtual and physical addreses.
/// * Wrapper types for number of pages.
/// * Efficient enums for page size and huge page sizes.
/// * Insight into memory maps
/// * For finding physical addresses from virtual memory addresses
/// Mounts.
/// Namespaces.
/// Network devices.
/// Perf(ormance) Event.
/// Very basic `poll` support.
/// Some common process (and thread) control, viz `prctl()` that doesn't sit in a more specific module.
/// Nice.
/// Paths.
/// Linux personality.
///
/// A mostly broken and discarded concept, but we should check we're running as a standard Linux process.
/// PCI Express (PCIe).
/// Pressure stall.
/// Process.
/// Resource limits.
/// Seccomp.
/// Signals.
/// Speculation mitigation.
/// Swap.
/// Support for raw syscalls.
/// Support for terminals.
/// Support for time and clocks.
/// Support for threads.
/// User and groups.
include!;
include!;
include!;
include!;
include!;
include!;
include!;
include!;
include!;
include!;