Skip to content

Commit

Permalink
Added MSG_WAITFORONE flag to MsgFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenengler committed Mar 22, 2023
1 parent b2318f9 commit f029aa2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Added `mq_timedreceive` to `::nix::mqueue`.
([#1966])(https://github.com/nix-rust/nix/pull/1966)
- Added `LocalPeerPid` to `nix::sys::socket::sockopt` for macOS. ([#1967](https://github.com/nix-rust/nix/pull/1967))
- Added `MSG_WAITFORONE` to `MsgFlags` on Android, Fuchsia, Linux, NetBSD, and Solaris.
([#2014](https://github.com/nix-rust/nix/pull/2014))

### Changed

Expand Down
9 changes: 9 additions & 0 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,15 @@ libc_bitflags! {
target_os = "solaris"))]
#[cfg_attr(docsrs, doc(cfg(all())))]
MSG_NOSIGNAL;
/// Turns on [`MSG_DONTWAIT`] after the first message has been received (only for
/// `recvmmsg()`).
#[cfg(any(target_os = "android",
target_os = "fuchsia",
target_os = "linux",
target_os = "netbsd",
target_os = "solaris"))]
#[cfg_attr(docsrs, doc(cfg(all())))]
MSG_WAITFORONE;
}
}

Expand Down

0 comments on commit f029aa2

Please sign in to comment.