1414use libc:: MSG_NOSIGNAL ;
1515
1616use super :: { SocketAddr , sockaddr_un} ;
17- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
17+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
1818use super :: { SocketAncillary , recv_vectored_with_ancillary_from, send_vectored_with_ancillary_to} ;
19- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
19+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
2020use crate :: io:: { IoSlice , IoSliceMut } ;
2121use crate :: net:: Shutdown ;
2222use crate :: os:: unix:: io:: { AsFd , AsRawFd , BorrowedFd , FromRawFd , IntoRawFd , OwnedFd , RawFd } ;
@@ -397,8 +397,8 @@ impl UnixDatagram {
397397 ///
398398 /// # Examples
399399 ///
400- #[ cfg_attr( any( target_os = "android" , target_os = "linux" ) , doc = "```no_run" ) ]
401- #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" ) ) , doc = "```ignore" ) ]
400+ #[ cfg_attr( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) , doc = "```no_run" ) ]
401+ #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) , doc = "```ignore" ) ]
402402 /// #![feature(unix_socket_ancillary_data)]
403403 /// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
404404 /// use std::io::IoSliceMut;
@@ -428,7 +428,7 @@ impl UnixDatagram {
428428 /// Ok(())
429429 /// }
430430 /// ```
431- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
431+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
432432 #[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
433433 pub fn recv_vectored_with_ancillary_from (
434434 & self ,
@@ -447,8 +447,8 @@ impl UnixDatagram {
447447 ///
448448 /// # Examples
449449 ///
450- #[ cfg_attr( any( target_os = "android" , target_os = "linux" ) , doc = "```no_run" ) ]
451- #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" ) ) , doc = "```ignore" ) ]
450+ #[ cfg_attr( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) , doc = "```no_run" ) ]
451+ #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) , doc = "```ignore" ) ]
452452 /// #![feature(unix_socket_ancillary_data)]
453453 /// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
454454 /// use std::io::IoSliceMut;
@@ -478,7 +478,7 @@ impl UnixDatagram {
478478 /// Ok(())
479479 /// }
480480 /// ```
481- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
481+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
482482 #[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
483483 pub fn recv_vectored_with_ancillary (
484484 & self ,
@@ -588,8 +588,8 @@ impl UnixDatagram {
588588 ///
589589 /// # Examples
590590 ///
591- #[ cfg_attr( any( target_os = "android" , target_os = "linux" ) , doc = "```no_run" ) ]
592- #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" ) ) , doc = "```ignore" ) ]
591+ #[ cfg_attr( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) , doc = "```no_run" ) ]
592+ #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) , doc = "```ignore" ) ]
593593 /// #![feature(unix_socket_ancillary_data)]
594594 /// use std::os::unix::net::{UnixDatagram, SocketAncillary};
595595 /// use std::io::IoSlice;
@@ -613,7 +613,7 @@ impl UnixDatagram {
613613 /// Ok(())
614614 /// }
615615 /// ```
616- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
616+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
617617 #[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
618618 pub fn send_vectored_with_ancillary_to < P : AsRef < Path > > (
619619 & self ,
@@ -630,8 +630,8 @@ impl UnixDatagram {
630630 ///
631631 /// # Examples
632632 ///
633- #[ cfg_attr( any( target_os = "android" , target_os = "linux" ) , doc = "```no_run" ) ]
634- #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" ) ) , doc = "```ignore" ) ]
633+ #[ cfg_attr( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) , doc = "```no_run" ) ]
634+ #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) , doc = "```ignore" ) ]
635635 /// #![feature(unix_socket_ancillary_data)]
636636 /// use std::os::unix::net::{UnixDatagram, SocketAncillary};
637637 /// use std::io::IoSlice;
@@ -655,7 +655,7 @@ impl UnixDatagram {
655655 /// Ok(())
656656 /// }
657657 /// ```
658- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
658+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
659659 #[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
660660 pub fn send_vectored_with_ancillary (
661661 & self ,
0 commit comments