Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/backend/libc/net/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pub(crate) mod ext;
windows,
target_os = "espidf",
target_os = "horizon",
target_os = "redox",
target_os = "vita"
)))]
pub(crate) mod msghdr;
Expand Down
13 changes: 4 additions & 9 deletions src/backend/libc/net/msghdr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use core::mem::zeroed;
not(any(windows, target_os = "espidf", target_os = "wasi")),
any(
target_os = "android",
target_os = "redox",
all(
target_os = "linux",
not(target_env = "musl"),
Expand All @@ -30,15 +31,10 @@ fn msg_iov_len(len: usize) -> c::size_t {

/// Convert the value to the `msg_iovlen` field of a `msghdr` struct.
#[cfg(all(
not(any(
windows,
target_os = "espidf",
target_os = "redox",
target_os = "vita",
target_os = "wasi"
)),
not(any(windows, target_os = "espidf", target_os = "vita", target_os = "wasi")),
not(any(
target_os = "android",
target_os = "redox",
all(
target_os = "linux",
not(target_env = "musl"),
Expand Down Expand Up @@ -83,7 +79,6 @@ fn msg_control_len(len: usize) -> c::socklen_t {
target_os = "haiku",
target_os = "hurd",
target_os = "nto",
target_os = "redox",
target_os = "vita",
target_os = "wasi",
)))]
Expand Down Expand Up @@ -179,7 +174,7 @@ pub(crate) unsafe fn with_msghdr<R>(
}

/// Create a zero-initialized message header struct value.
#[cfg(all(unix, not(target_os = "redox")))]
#[cfg(unix)]
pub(crate) fn zero_msghdr() -> c::msghdr {
// SAFETY: We can't initialize all the fields by value because on some
// platforms the `msghdr` struct in the libc crate contains private padding
Expand Down
4 changes: 0 additions & 4 deletions src/backend/libc/net/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use core::ptr::null_mut;
windows,
target_os = "espidf",
target_os = "horizon",
target_os = "redox",
target_os = "vita"
)))]
use {
Expand Down Expand Up @@ -187,7 +186,6 @@ pub(crate) fn accept(sockfd: BorrowedFd<'_>) -> io::Result<OwnedFd> {
windows,
target_os = "espidf",
target_os = "horizon",
target_os = "redox",
target_os = "vita"
)))]
pub(crate) fn recvmsg(
Expand Down Expand Up @@ -222,7 +220,6 @@ pub(crate) fn recvmsg(
windows,
target_os = "espidf",
target_os = "horizon",
target_os = "redox",
target_os = "vita"
)))]
pub(crate) fn sendmsg(
Expand All @@ -245,7 +242,6 @@ pub(crate) fn sendmsg(
windows,
target_os = "espidf",
target_os = "horizon",
target_os = "redox",
target_os = "vita"
)))]
pub(crate) fn sendmsg_addr(
Expand Down
2 changes: 0 additions & 2 deletions src/net/send_recv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ pub use backend::net::send_recv::{RecvFlags, ReturnFlags, SendFlags};
windows,
target_os = "espidf",
target_os = "horizon",
target_os = "redox",
target_os = "vita"
)))]
mod msg;
Expand All @@ -24,7 +23,6 @@ mod msg;
windows,
target_os = "espidf",
target_os = "horizon",
target_os = "redox",
target_os = "vita"
)))]
pub use msg::*;
Expand Down
Loading