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,14 @@ 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(
401
+ any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ,
402
+ doc = "```no_run"
403
+ ) ]
404
+ #[ cfg_attr(
405
+ not( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ,
406
+ doc = "```ignore"
407
+ ) ]
402
408
/// #![feature(unix_socket_ancillary_data)]
403
409
/// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
404
410
/// use std::io::IoSliceMut;
@@ -428,7 +434,7 @@ impl UnixDatagram {
428
434
/// Ok(())
429
435
/// }
430
436
/// ```
431
- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
437
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
432
438
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
433
439
pub fn recv_vectored_with_ancillary_from (
434
440
& self ,
@@ -447,8 +453,14 @@ impl UnixDatagram {
447
453
///
448
454
/// # Examples
449
455
///
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" ) ]
456
+ #[ cfg_attr(
457
+ any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ,
458
+ doc = "```no_run"
459
+ ) ]
460
+ #[ cfg_attr(
461
+ not( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ,
462
+ doc = "```ignore"
463
+ ) ]
452
464
/// #![feature(unix_socket_ancillary_data)]
453
465
/// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
454
466
/// use std::io::IoSliceMut;
@@ -478,7 +490,7 @@ impl UnixDatagram {
478
490
/// Ok(())
479
491
/// }
480
492
/// ```
481
- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
493
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
482
494
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
483
495
pub fn recv_vectored_with_ancillary (
484
496
& self ,
@@ -588,8 +600,14 @@ impl UnixDatagram {
588
600
///
589
601
/// # Examples
590
602
///
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" ) ]
603
+ #[ cfg_attr(
604
+ any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ,
605
+ doc = "```no_run"
606
+ ) ]
607
+ #[ cfg_attr(
608
+ not( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ,
609
+ doc = "```ignore"
610
+ ) ]
593
611
/// #![feature(unix_socket_ancillary_data)]
594
612
/// use std::os::unix::net::{UnixDatagram, SocketAncillary};
595
613
/// use std::io::IoSlice;
@@ -613,7 +631,7 @@ impl UnixDatagram {
613
631
/// Ok(())
614
632
/// }
615
633
/// ```
616
- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
634
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
617
635
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
618
636
pub fn send_vectored_with_ancillary_to < P : AsRef < Path > > (
619
637
& self ,
@@ -630,8 +648,14 @@ impl UnixDatagram {
630
648
///
631
649
/// # Examples
632
650
///
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" ) ]
651
+ #[ cfg_attr(
652
+ any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ,
653
+ doc = "```no_run"
654
+ ) ]
655
+ #[ cfg_attr(
656
+ not( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ,
657
+ doc = "```ignore"
658
+ ) ]
635
659
/// #![feature(unix_socket_ancillary_data)]
636
660
/// use std::os::unix::net::{UnixDatagram, SocketAncillary};
637
661
/// use std::io::IoSlice;
@@ -655,7 +679,7 @@ impl UnixDatagram {
655
679
/// Ok(())
656
680
/// }
657
681
/// ```
658
- #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
682
+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
659
683
#[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
660
684
pub fn send_vectored_with_ancillary (
661
685
& self ,
0 commit comments