11#[ cfg( any(
22 bsd,
33 linux_android,
4- target_os = "illumos" ,
4+ solarish ,
55 target_os = "haiku" ,
66 target_os = "fuchsia" ,
77 target_os = "aix" ,
@@ -230,7 +230,7 @@ pub enum AddressFamily {
230230 #[ cfg( bsd) ]
231231 Hylink = libc:: AF_HYLINK ,
232232 /// Link layer interface
233- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
233+ #[ cfg( any( bsd, solarish ) ) ]
234234 Link = libc:: AF_LINK ,
235235 /// connection-oriented IP, aka ST II
236236 #[ cfg( bsd) ]
@@ -265,7 +265,7 @@ impl AddressFamily {
265265 libc:: PF_ROUTE => Some ( AddressFamily :: Route ) ,
266266 #[ cfg( linux_android) ]
267267 libc:: AF_PACKET => Some ( AddressFamily :: Packet ) ,
268- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
268+ #[ cfg( any( bsd, solarish ) ) ]
269269 libc:: AF_LINK => Some ( AddressFamily :: Link ) ,
270270 #[ cfg( any( linux_android, apple_targets) ) ]
271271 libc:: AF_VSOCK => Some ( AddressFamily :: Vsock ) ,
@@ -506,7 +506,7 @@ impl UnixAddr {
506506 cfg_if ! {
507507 if #[ cfg( any( linux_android,
508508 target_os = "fuchsia" ,
509- target_os = "illumos" ,
509+ solarish ,
510510 target_os = "redox" ,
511511 ) ) ]
512512 {
@@ -547,7 +547,7 @@ impl SockaddrLike for UnixAddr {
547547 cfg_if ! {
548548 if #[ cfg( any( linux_android,
549549 target_os = "fuchsia" ,
550- target_os = "illumos" ,
550+ solarish ,
551551 target_os = "redox" ,
552552 ) ) ] {
553553 let su_len = len. unwrap_or(
@@ -577,7 +577,7 @@ impl SockaddrLike for UnixAddr {
577577 cfg_if ! {
578578 if #[ cfg( any( linux_android,
579579 target_os = "fuchsia" ,
580- target_os = "illumos" ,
580+ solarish ,
581581 target_os = "redox" ,
582582 ) ) ] {
583583 self . sun_len = new_length as u8 ;
@@ -1101,7 +1101,7 @@ impl SockaddrLike for SockaddrStorage {
11011101 #[ cfg( any(
11021102 linux_android,
11031103 target_os = "fuchsia" ,
1104- target_os = "illumos" ,
1104+ solarish ,
11051105 ) ) ]
11061106 if i32:: from ( ss. ss_family ) == libc:: AF_UNIX {
11071107 // Safe because we UnixAddr is strictly smaller than
@@ -1131,7 +1131,7 @@ impl SockaddrLike for SockaddrStorage {
11311131 libc:: AF_INET6 => unsafe {
11321132 SockaddrIn6 :: from_raw ( addr, l) . map ( |sin6| Self { sin6 } )
11331133 } ,
1134- #[ cfg( any( bsd, target_os = "illumos" , target_os = "haiku" ) ) ]
1134+ #[ cfg( any( bsd, solarish , target_os = "haiku" ) ) ]
11351135 #[ cfg( feature = "net" ) ]
11361136 libc:: AF_LINK => unsafe {
11371137 LinkAddr :: from_raw ( addr, l) . map ( |dl| Self { dl } )
@@ -1158,7 +1158,7 @@ impl SockaddrLike for SockaddrStorage {
11581158 }
11591159 }
11601160
1161- #[ cfg( any( linux_android, target_os = "fuchsia" , target_os = "illumos" ) ) ]
1161+ #[ cfg( any( linux_android, target_os = "fuchsia" , solarish ) ) ]
11621162 fn len ( & self ) -> libc:: socklen_t {
11631163 match self . as_unix_addr ( ) {
11641164 // The UnixAddr type knows its own length
@@ -1219,7 +1219,7 @@ impl SockaddrStorage {
12191219 cfg_if ! {
12201220 if #[ cfg( any( linux_android,
12211221 target_os = "fuchsia" ,
1222- target_os = "illumos" ,
1222+ solarish ,
12231223 ) ) ]
12241224 {
12251225 let p = unsafe { & self . ss as * const libc:: sockaddr_storage } ;
@@ -1248,7 +1248,7 @@ impl SockaddrStorage {
12481248 cfg_if ! {
12491249 if #[ cfg( any( linux_android,
12501250 target_os = "fuchsia" ,
1251- target_os = "illumos" ,
1251+ solarish ,
12521252 ) ) ]
12531253 {
12541254 let p = unsafe { & self . ss as * const libc:: sockaddr_storage } ;
@@ -1282,7 +1282,7 @@ impl SockaddrStorage {
12821282 as_link_addr, as_link_addr_mut, LinkAddr ,
12831283 AddressFamily :: Packet , libc:: sockaddr_ll, dl}
12841284
1285- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
1285+ #[ cfg( any( bsd, solarish ) ) ]
12861286 #[ cfg( feature = "net" ) ]
12871287 accessors ! {
12881288 as_link_addr, as_link_addr_mut, LinkAddr ,
@@ -1332,7 +1332,7 @@ impl fmt::Display for SockaddrStorage {
13321332 libc:: AF_INET => self . sin . fmt ( f) ,
13331333 #[ cfg( feature = "net" ) ]
13341334 libc:: AF_INET6 => self . sin6 . fmt ( f) ,
1335- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
1335+ #[ cfg( any( bsd, solarish ) ) ]
13361336 #[ cfg( feature = "net" ) ]
13371337 libc:: AF_LINK => self . dl . fmt ( f) ,
13381338 #[ cfg( linux_android) ]
@@ -1394,7 +1394,7 @@ impl Hash for SockaddrStorage {
13941394 libc:: AF_INET => self . sin . hash ( s) ,
13951395 #[ cfg( feature = "net" ) ]
13961396 libc:: AF_INET6 => self . sin6 . hash ( s) ,
1397- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
1397+ #[ cfg( any( bsd, solarish ) ) ]
13981398 #[ cfg( feature = "net" ) ]
13991399 libc:: AF_LINK => self . dl . hash ( s) ,
14001400 #[ cfg( linux_android) ]
@@ -1424,7 +1424,7 @@ impl PartialEq for SockaddrStorage {
14241424 ( libc:: AF_INET , libc:: AF_INET ) => self . sin == other. sin ,
14251425 #[ cfg( feature = "net" ) ]
14261426 ( libc:: AF_INET6 , libc:: AF_INET6 ) => self . sin6 == other. sin6 ,
1427- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
1427+ #[ cfg( any( bsd, solarish ) ) ]
14281428 #[ cfg( feature = "net" ) ]
14291429 ( libc:: AF_LINK , libc:: AF_LINK ) => self . dl == other. dl ,
14301430 #[ cfg( linux_android) ]
@@ -1854,7 +1854,7 @@ mod datalink {
18541854 }
18551855}
18561856
1857- #[ cfg( any( bsd, target_os = "illumos" , target_os = "haiku" , target_os = "aix" ) ) ]
1857+ #[ cfg( any( bsd, solarish , target_os = "haiku" , target_os = "aix" ) ) ]
18581858mod datalink {
18591859 feature ! {
18601860 #![ feature = "net" ]
@@ -2128,7 +2128,7 @@ mod tests {
21282128 mod link {
21292129 #![ allow( clippy:: cast_ptr_alignment) ]
21302130
2131- #[ cfg( any( apple_targets, target_os = "illumos" ) ) ]
2131+ #[ cfg( any( apple_targets, solarish ) ) ]
21322132 use super :: super :: super :: socklen_t;
21332133 use super :: * ;
21342134
@@ -2215,9 +2215,9 @@ mod tests {
22152215 }
22162216 }
22172217
2218- #[ cfg( target_os = "illumos" ) ]
2218+ #[ cfg( solarish ) ]
22192219 #[ test]
2220- fn illumos_tap ( ) {
2220+ fn solarish_tap ( ) {
22212221 let bytes = [ 25u8 , 0 , 0 , 0 , 6 , 0 , 6 , 0 , 24 , 101 , 144 , 221 , 76 , 176 ] ;
22222222 let ptr = bytes. as_ptr ( ) ;
22232223 let sa = ptr as * const libc:: sockaddr ;
0 commit comments