Skip to content

Commit

Permalink
Added MSG_WAITFORONE flag
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenengler committed Mar 15, 2023
1 parent b2318f9 commit 0dba904
Showing 1 changed file with 9 additions and 0 deletions.
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 0dba904

Please sign in to comment.