File tree 6 files changed +10
-2
lines changed
6 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -809,6 +809,8 @@ pub const VT1: ::c_int = 0x00010000;
809
809
pub const IUTF8 : :: tcflag_t = 0x00004000 ;
810
810
pub const CRTSCTS : :: tcflag_t = 0x00030000 ;
811
811
812
+ pub const NI_MAXHOST : :: socklen_t = 1025 ;
813
+
812
814
extern {
813
815
pub fn getnameinfo ( sa : * const :: sockaddr ,
814
816
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -557,6 +557,8 @@ pub const ST_NOSUID: ::c_ulong = 2;
557
557
558
558
pub const HW_AVAILCPU : :: c_int = 25 ;
559
559
560
+ pub const NI_MAXHOST : :: size_t = 1025 ;
561
+
560
562
extern {
561
563
pub fn getnameinfo ( sa : * const :: sockaddr ,
562
564
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -147,8 +147,6 @@ pub const IPV6_V6ONLY: ::c_int = 27;
147
147
148
148
pub const ST_RDONLY : :: c_ulong = 1 ;
149
149
150
- pub const NI_MAXHOST : :: socklen_t = 1025 ;
151
-
152
150
pub const CTL_HW : :: c_int = 6 ;
153
151
pub const HW_NCPU : :: c_int = 3 ;
154
152
Original file line number Diff line number Diff line change @@ -217,6 +217,8 @@ pub const KERN_PROC_ARGS: ::c_int = 55;
217
217
218
218
pub const TMP_MAX : :: c_uint = 0x7fffffff ;
219
219
220
+ pub const NI_MAXHOST : :: size_t = 256 ;
221
+
220
222
extern {
221
223
pub fn getnameinfo ( sa : * const :: sockaddr ,
222
224
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -322,6 +322,8 @@ pub const CRTSCTS: ::tcflag_t = 0x00010000;
322
322
323
323
pub const TMP_MAX : :: c_uint = 308915776 ;
324
324
325
+ pub const NI_MAXHOST : :: socklen_t = 1025 ;
326
+
325
327
extern {
326
328
pub fn getnameinfo ( sa : * const :: sockaddr ,
327
329
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -216,6 +216,8 @@ pub const KERN_PROC_ARGS: ::c_int = 55;
216
216
217
217
pub const TMP_MAX : :: c_uint = 0x7fffffff ;
218
218
219
+ pub const NI_MAXHOST : :: size_t = 256 ;
220
+
219
221
// syscall numbers
220
222
pub const SYS_getentropy : :: c_int = 7 ;
221
223
You can’t perform that action at this time.
0 commit comments