@@ -543,10 +543,24 @@ pub const MADV_INVAL: c_int = 10;
543543pub const MADV_SETMAP : c_int = 11 ;
544544pub const O_CLOEXEC : c_int = 0x00020000 ;
545545pub const O_DIRECTORY : c_int = 0x08000000 ;
546+ pub const O_FBLOCKING : c_int = 0x00040000 ;
547+ pub const O_FNONBLOCKING : c_int = 0x00080000 ;
548+ pub const O_FAPPEND : c_int = 0x00100000 ;
549+ pub const O_FOFFSET : c_int = 0x00200000 ;
550+ pub const O_FSYNCWRITE : c_int = 0x00400000 ;
551+ pub const O_FASYNCWRITE : c_int = 0x00800000 ;
552+ pub const O_FMASK : c_int =
553+ O_FBLOCKING | O_FNONBLOCKING | O_FAPPEND | O_FOFFSET | O_FSYNCWRITE | O_FASYNCWRITE ;
546554pub const F_GETLK : c_int = 7 ;
547555pub const F_SETLK : c_int = 8 ;
548556pub const F_SETLKW : c_int = 9 ;
549557pub const F_GETPATH : c_int = 19 ;
558+ pub const POSIX_FADV_NORMAL : c_int = 0 ;
559+ pub const POSIX_FADV_SEQUENTIAL : c_int = 1 ;
560+ pub const POSIX_FADV_RANDOM : c_int = 2 ;
561+ pub const POSIX_FADV_WILLNEED : c_int = 3 ;
562+ pub const POSIX_FADV_DONTNEED : c_int = 4 ;
563+ pub const POSIX_FADV_NOREUSE : c_int = 5 ;
550564pub const ENOMEDIUM : c_int = 93 ;
551565pub const ENOTRECOVERABLE : c_int = 94 ;
552566pub const EOWNERDEAD : c_int = 95 ;
@@ -607,7 +621,8 @@ pub const KERN_USRSTACK: c_int = 33;
607621pub const KERN_LOGSIGEXIT : c_int = 34 ;
608622pub const KERN_IOV_MAX : c_int = 35 ;
609623pub const KERN_MAXPOSIXLOCKSPERUID : c_int = 36 ;
610- pub const KERN_MAXID : c_int = 37 ;
624+ pub const KERN_STATIC_TLS_EXTRA : c_int = 37 ;
625+ pub const KERN_MAXID : c_int = 38 ;
611626pub const KERN_PROC_ALL : c_int = 0 ;
612627pub const KERN_PROC_PID : c_int = 1 ;
613628pub const KERN_PROC_PGRP : c_int = 2 ;
@@ -787,6 +802,7 @@ pub const IFF_NOARP: c_int = 0x80; // no address resolution protocol
787802pub const IFF_PROMISC : c_int = 0x100 ; // receive all packets
788803pub const IFF_ALLMULTI : c_int = 0x200 ; // receive all multicast packets
789804pub const IFF_OACTIVE_COMPAT : c_int = 0x400 ; // was transmission in progress
805+ pub const IFF_OACTIVE : c_int = IFF_OACTIVE_COMPAT ;
790806pub const IFF_SIMPLEX : c_int = 0x800 ; // can't hear own transmissions
791807pub const IFF_LINK0 : c_int = 0x1000 ; // per link layer defined bit
792808pub const IFF_LINK1 : c_int = 0x2000 ; // per link layer defined bit
@@ -1034,8 +1050,10 @@ pub const TCP_FASTKEEP: c_int = 128;
10341050pub const AF_BLUETOOTH : c_int = 33 ;
10351051pub const AF_MPLS : c_int = 34 ;
10361052pub const AF_IEEE80211 : c_int = 35 ;
1053+ pub const AF_ARP : c_int = 36 ;
10371054
10381055pub const PF_BLUETOOTH : c_int = AF_BLUETOOTH ;
1056+ pub const PF_ARP : c_int = AF_ARP ;
10391057
10401058pub const NET_RT_DUMP : c_int = 1 ;
10411059pub const NET_RT_FLAGS : c_int = 2 ;
@@ -1086,9 +1104,23 @@ pub const _UTX_USERSIZE: usize = 32;
10861104pub const _UTX_IDSIZE: usize = 4 ;
10871105pub const _UTX_HOSTSIZE: usize = 256 ;
10881106
1107+ pub const EXTATTR_NAMESPACE_EMPTY : c_int = 0 ;
1108+ pub const EXTATTR_NAMESPACE_USER : c_int = 1 ;
1109+ pub const EXTATTR_NAMESPACE_SYSTEM : c_int = 2 ;
1110+
10891111pub const GRND_NONBLOCK : c_uint = 0x2 ;
10901112pub const GRND_RANDOM : c_uint = 0x1 ;
10911113
1114+ pub const NI_NOFQDN : c_int = 0x00000001 ;
1115+ pub const NI_NUMERICHOST : c_int = 0x00000002 ;
1116+ pub const NI_NAMEREQD : c_int = 0x00000004 ;
1117+ pub const NI_NUMERICSERV : c_int = 0x00000008 ;
1118+ pub const NI_DGRAM : c_int = 0x00000010 ;
1119+ pub const NI_NUMERICSCOPE : c_int = 0x00000040 ;
1120+
1121+ pub const B460800 : crate :: speed_t = 460800 ;
1122+ pub const B921600 : crate :: speed_t = 921600 ;
1123+
10921124pub const LC_COLLATE_MASK : c_int = 1 << 0 ;
10931125pub const LC_CTYPE_MASK : c_int = 1 << 1 ;
10941126pub const LC_MONETARY_MASK : c_int = 1 << 2 ;
@@ -1112,6 +1144,8 @@ pub const TIOCMODG: c_ulong = 0x40047403;
11121144pub const TIOCMODS : c_ulong = 0x80047404 ;
11131145pub const TIOCREMOTE : c_ulong = 0x80047469 ;
11141146pub const TIOCTIMESTAMP : c_ulong = 0x40107459 ;
1147+ pub const BIOCSRTIMEOUT : c_ulong = 0x8010426d ;
1148+ pub const BIOCGRTIMEOUT : c_ulong = 0x4010426e ;
11151149
11161150// Constants used by "at" family of system calls.
11171151pub const AT_FDCWD : c_int = 0xFFFAFDCD ; // invalid file descriptor
@@ -1125,8 +1159,6 @@ pub const VCHECKPT: usize = 19;
11251159pub const _PC_2_SYMLINKS: c_int = 22 ;
11261160pub const _PC_TIMESTAMP_RESOLUTION: c_int = 23 ;
11271161
1128- pub const _CS_PATH: c_int = 1 ;
1129-
11301162pub const _SC_V7_ILP32_OFF32: c_int = 122 ;
11311163pub const _SC_V7_ILP32_OFFBIG: c_int = 123 ;
11321164pub const _SC_V7_LP64_OFF64: c_int = 124 ;
0 commit comments