diff options
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/unix/ext/net/datagram.rs | 38 | ||||
| -rw-r--r-- | library/std/src/sys/unix/ext/net/mod.rs | 18 | ||||
| -rw-r--r-- | library/std/src/sys/unix/ext/net/stream.rs | 18 | ||||
| -rw-r--r-- | library/std/src/sys/unix/ext/net/tests.rs | 11 |
4 files changed, 31 insertions, 54 deletions
diff --git a/library/std/src/sys/unix/ext/net/datagram.rs b/library/std/src/sys/unix/ext/net/datagram.rs index 5b813ac6481..116375ad48b 100644 --- a/library/std/src/sys/unix/ext/net/datagram.rs +++ b/library/std/src/sys/unix/ext/net/datagram.rs @@ -9,15 +9,9 @@ use crate::sys::unix::ext::net::addr::{sockaddr_un, SocketAddr}; target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", ))] use crate::sys::unix::ext::net::ancillary::{ @@ -367,15 +361,9 @@ impl UnixDatagram { target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] @@ -431,15 +419,9 @@ impl UnixDatagram { target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] @@ -539,6 +521,16 @@ impl UnixDatagram { /// Ok(()) /// } /// ``` + #[cfg(any( + target_os = "android", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "linux", + target_os = "netbsd", + target_os = "openbsd", + target_env = "uclibc", + ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub fn send_vectored_with_ancillary_to<P: AsRef<Path>>( &self, @@ -578,6 +570,16 @@ impl UnixDatagram { /// Ok(()) /// } /// ``` + #[cfg(any( + target_os = "android", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "linux", + target_os = "netbsd", + target_os = "openbsd", + target_env = "uclibc", + ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub fn send_vectored_with_ancillary( &self, diff --git a/library/std/src/sys/unix/ext/net/mod.rs b/library/std/src/sys/unix/ext/net/mod.rs index 1c792b251b6..366ee7edf2a 100644 --- a/library/std/src/sys/unix/ext/net/mod.rs +++ b/library/std/src/sys/unix/ext/net/mod.rs @@ -8,15 +8,9 @@ mod addr; target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", )))] #[cfg(any( @@ -25,15 +19,9 @@ mod addr; target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", ))] mod ancillary; @@ -51,15 +39,9 @@ pub use self::addr::*; target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] diff --git a/library/std/src/sys/unix/ext/net/stream.rs b/library/std/src/sys/unix/ext/net/stream.rs index 49f16861afc..671639949cb 100644 --- a/library/std/src/sys/unix/ext/net/stream.rs +++ b/library/std/src/sys/unix/ext/net/stream.rs @@ -21,15 +21,9 @@ use crate::sys::unix::ext::net::addr::{sockaddr_un, SocketAddr}; target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", ))] use crate::sys::unix::ext::net::ancillary::{ @@ -539,15 +533,9 @@ impl UnixStream { target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] @@ -595,15 +583,9 @@ impl UnixStream { target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", - target_os = "fuchsia", - target_os = "haiku", - target_os = "illumos", - target_os = "ios", target_os = "linux", - target_os = "macos", target_os = "netbsd", target_os = "openbsd", - target_os = "solaris", target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] diff --git a/library/std/src/sys/unix/ext/net/tests.rs b/library/std/src/sys/unix/ext/net/tests.rs index 6cb2e729143..7690590b68b 100644 --- a/library/std/src/sys/unix/ext/net/tests.rs +++ b/library/std/src/sys/unix/ext/net/tests.rs @@ -557,6 +557,17 @@ fn test_send_vectored_with_ancillary_to_unix_datagram() { } } +#[cfg(any( + doc, + target_os = "android", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "linux", + target_os = "netbsd", + target_os = "openbsd", + target_env = "uclibc", +))] #[test] fn test_send_vectored_with_ancillary_unix_datagram() { let dir = tmpdir(); |
