Skip to content

Commit 3be2573

Browse files
committed
Added MSG_WAITFORONE to freebsd, openbsd, and illumos
1 parent 5744793 commit 3be2573

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,7 @@ MSG_NBIO
785785
MSG_NOERROR
786786
MSG_NOSIGNAL
787787
MSG_NOTIFICATION
788+
MSG_WAITFORONE
788789
NANOSECOND
789790
NETGRAPHDISC
790791
NET_RT_DUMP

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ MSG_CMSG_CLOEXEC
527527
MSG_DONTWAIT
528528
MSG_MCAST
529529
MSG_NOSIGNAL
530+
MSG_WAITFORONE
530531
MNT_LAZY
531532
MNT_NOWAIT
532533
MNT_WAIT

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3696,6 +3696,7 @@ pub const MSG_NBIO: ::c_int = 0x00004000;
36963696
pub const MSG_COMPAT: ::c_int = 0x00008000;
36973697
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x00040000;
36983698
pub const MSG_NOSIGNAL: ::c_int = 0x20000;
3699+
pub const MSG_WAITFORONE: ::c_int = 0x00080000;
36993700

37003701
// utmpx entry types
37013702
pub const EMPTY: ::c_short = 0;

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,8 @@ pub const IP_RECVIF: ::c_int = 30;
10731073
pub const TCP_MD5SIG: ::c_int = 0x04;
10741074
pub const TCP_NOPUSH: ::c_int = 0x10;
10751075

1076+
pub const MSG_WAITFORONE: ::c_int = 0x1000;
1077+
10761078
pub const AF_ECMA: ::c_int = 8;
10771079
pub const AF_ROUTE: ::c_int = 17;
10781080
pub const AF_ENCAP: ::c_int = 28;

src/unix/solarish/illumos.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ pub const TCP_KEEPCNT: ::c_int = 35;
3333
pub const TCP_KEEPINTVL: ::c_int = 36;
3434
pub const TCP_CONGESTION: ::c_int = 37;
3535

36+
pub const MSG_WAITFORONE: ::c_int = 0x80000;
37+
3638
// These constants are correct for 64-bit programs or 32-bit programs that are
3739
// not using large-file mode. If Rust ever supports anything other than 64-bit
3840
// compilation on illumos, this may require adjustment:

0 commit comments

Comments
 (0)