14
14
use libc:: MSG_NOSIGNAL ;
15
15
16
16
use 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" ) ) ]
18
18
use 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" ) ) ]
20
20
use crate :: io:: { IoSlice , IoSliceMut } ;
21
21
use crate :: net:: Shutdown ;
22
22
use crate :: os:: unix:: io:: { AsFd , AsRawFd , BorrowedFd , FromRawFd , IntoRawFd , OwnedFd , RawFd } ;
@@ -397,8 +397,8 @@ impl UnixDatagram {
397
397
///
398
398
/// # Examples
399
399
///
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" ) ]
402
402
/// #![feature(unix_socket_ancillary_data)]
403
403
/// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
404
404
/// use std::io::IoSliceMut;
@@ -428,7 +428,7 @@ impl UnixDatagram {
428
428
/// Ok(())
429
429
/// }
430
430
/// ```
431
- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
431
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
432
432
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
433
433
pub fn recv_vectored_with_ancillary_from (
434
434
& self ,
@@ -447,8 +447,8 @@ impl UnixDatagram {
447
447
///
448
448
/// # Examples
449
449
///
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" ) ]
452
452
/// #![feature(unix_socket_ancillary_data)]
453
453
/// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
454
454
/// use std::io::IoSliceMut;
@@ -478,7 +478,7 @@ impl UnixDatagram {
478
478
/// Ok(())
479
479
/// }
480
480
/// ```
481
- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
481
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
482
482
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
483
483
pub fn recv_vectored_with_ancillary (
484
484
& self ,
@@ -588,8 +588,8 @@ impl UnixDatagram {
588
588
///
589
589
/// # Examples
590
590
///
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" ) ]
593
593
/// #![feature(unix_socket_ancillary_data)]
594
594
/// use std::os::unix::net::{UnixDatagram, SocketAncillary};
595
595
/// use std::io::IoSlice;
@@ -613,7 +613,7 @@ impl UnixDatagram {
613
613
/// Ok(())
614
614
/// }
615
615
/// ```
616
- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
616
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
617
617
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
618
618
pub fn send_vectored_with_ancillary_to < P : AsRef < Path > > (
619
619
& self ,
@@ -630,8 +630,8 @@ impl UnixDatagram {
630
630
///
631
631
/// # Examples
632
632
///
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" ) ]
635
635
/// #![feature(unix_socket_ancillary_data)]
636
636
/// use std::os::unix::net::{UnixDatagram, SocketAncillary};
637
637
/// use std::io::IoSlice;
@@ -655,7 +655,7 @@ impl UnixDatagram {
655
655
/// Ok(())
656
656
/// }
657
657
/// ```
658
- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
658
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
659
659
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
660
660
pub fn send_vectored_with_ancillary (
661
661
& self ,
0 commit comments