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 Aug 21, 2023
1 parent 2d18d63 commit cf8f9d1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Removed `flock` from `::nix::fcntl` on Solaris. ([#2082](https://github.com/nix-rust/nix/pull/2082))
- Use I/O safety with `copy_file_range`, and expose it on FreeBSD.
(#[1906](https://github.com/nix-rust/nix/pull/1906))
- Added `MSG_WAITFORONE` to `MsgFlags` on Android, Fuchsia, Linux, NetBSD,
FreeBSD, OpenBSD, and Solaris.
([#2014](https://github.com/nix-rust/nix/pull/2014))

### Changed

Expand Down
11 changes: 11 additions & 0 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,17 @@ 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 = "freebsd",
target_os = "openbsd",
target_os = "solaris"))]
#[cfg_attr(docsrs, doc(cfg(all())))]
MSG_WAITFORONE;
}
}

Expand Down

0 comments on commit cf8f9d1

Please sign in to comment.