Skip to content

Commit ac40e64

Browse files
committed
Auto merge of #2707 - devnexen:solarish_ninumericservconst, r=Amanieu
solarish adding newdb constants
2 parents 7650116 + d046869 commit ac40e64

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,7 @@ pub const ST_RDONLY: ::c_ulong = 1;
12471247
pub const ST_NOSUID: ::c_ulong = 2;
12481248

12491249
pub const NI_MAXHOST: ::socklen_t = 1025;
1250+
pub const NI_MAXSERV: ::socklen_t = 32;
12501251

12511252
pub const EXIT_FAILURE: ::c_int = 1;
12521253
pub const EXIT_SUCCESS: ::c_int = 0;
@@ -1584,6 +1585,14 @@ pub const EAI_SOCKTYPE: ::c_int = 10;
15841585
pub const EAI_SYSTEM: ::c_int = 11;
15851586
pub const EAI_OVERFLOW: ::c_int = 12;
15861587

1588+
pub const NI_NOFQDN: ::c_uint = 0x0001;
1589+
pub const NI_NUMERICHOST: ::c_uint = 0x0002;
1590+
pub const NI_NAMEREQD: ::c_uint = 0x0004;
1591+
pub const NI_NUMERICSERV: ::c_uint = 0x0008;
1592+
pub const NI_DGRAM: ::c_uint = 0x0010;
1593+
pub const NI_WITHSCOPEID: ::c_uint = 0x0020;
1594+
pub const NI_NUMERICSCOPE: ::c_uint = 0x0040;
1595+
15871596
pub const F_DUPFD: ::c_int = 0;
15881597
pub const F_DUP2FD: ::c_int = 9;
15891598
pub const F_DUP2FD_CLOEXEC: ::c_int = 36;

0 commit comments

Comments
 (0)