use super::super::c;
use bitflags::bitflags;
bitflags! {
pub struct SendFlags: i32 {
#[cfg(not(any(
windows,
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
const CONFIRM = c::MSG_CONFIRM;
const DONTROUTE = c::MSG_DONTROUTE;
#[cfg(not(windows))]
const DONTWAIT = c::MSG_DONTWAIT;
#[cfg(not(windows))]
const EOT = c::MSG_EOR;
#[cfg(not(any(
windows,
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
const MORE = c::MSG_MORE;
#[cfg(not(any(windows, target_os = "ios", target_os = "macos")))]
const NOSIGNAL = c::MSG_NOSIGNAL;
const OOB = c::MSG_OOB;
}
}
bitflags! {
pub struct RecvFlags: i32 {
#[cfg(not(any(windows, target_os = "haiku", target_os = "illumos", target_os = "ios", target_os = "macos", target_os = "solaris")))]
const CMSG_CLOEXEC = c::MSG_CMSG_CLOEXEC;
#[cfg(not(windows))]
const DONTWAIT = c::MSG_DONTWAIT;
#[cfg(not(any(
windows,
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
const ERRQUEUE = c::MSG_ERRQUEUE;
const OOB = c::MSG_OOB;
const PEEK = c::MSG_PEEK;
const TRUNC = c::MSG_TRUNC as c::c_int;
const WAITALL = c::MSG_WAITALL;
}
}