1
1
#[ cfg( any(
2
2
bsd,
3
3
linux_android,
4
- target_os = "illumos" ,
4
+ solarish ,
5
5
target_os = "haiku" ,
6
6
target_os = "fuchsia" ,
7
7
target_os = "aix" ,
@@ -230,7 +230,7 @@ pub enum AddressFamily {
230
230
#[ cfg( bsd) ]
231
231
Hylink = libc:: AF_HYLINK ,
232
232
/// Link layer interface
233
- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
233
+ #[ cfg( any( bsd, solarish ) ) ]
234
234
Link = libc:: AF_LINK ,
235
235
/// connection-oriented IP, aka ST II
236
236
#[ cfg( bsd) ]
@@ -265,7 +265,7 @@ impl AddressFamily {
265
265
libc:: PF_ROUTE => Some ( AddressFamily :: Route ) ,
266
266
#[ cfg( linux_android) ]
267
267
libc:: AF_PACKET => Some ( AddressFamily :: Packet ) ,
268
- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
268
+ #[ cfg( any( bsd, solarish ) ) ]
269
269
libc:: AF_LINK => Some ( AddressFamily :: Link ) ,
270
270
#[ cfg( any( linux_android, apple_targets) ) ]
271
271
libc:: AF_VSOCK => Some ( AddressFamily :: Vsock ) ,
@@ -506,7 +506,7 @@ impl UnixAddr {
506
506
cfg_if ! {
507
507
if #[ cfg( any( linux_android,
508
508
target_os = "fuchsia" ,
509
- target_os = "illumos" ,
509
+ solarish ,
510
510
target_os = "redox" ,
511
511
) ) ]
512
512
{
@@ -547,7 +547,7 @@ impl SockaddrLike for UnixAddr {
547
547
cfg_if ! {
548
548
if #[ cfg( any( linux_android,
549
549
target_os = "fuchsia" ,
550
- target_os = "illumos" ,
550
+ solarish ,
551
551
target_os = "redox" ,
552
552
) ) ] {
553
553
let su_len = len. unwrap_or(
@@ -577,7 +577,7 @@ impl SockaddrLike for UnixAddr {
577
577
cfg_if ! {
578
578
if #[ cfg( any( linux_android,
579
579
target_os = "fuchsia" ,
580
- target_os = "illumos" ,
580
+ solarish ,
581
581
target_os = "redox" ,
582
582
) ) ] {
583
583
self . sun_len = new_length as u8 ;
@@ -1101,7 +1101,7 @@ impl SockaddrLike for SockaddrStorage {
1101
1101
#[ cfg( any(
1102
1102
linux_android,
1103
1103
target_os = "fuchsia" ,
1104
- target_os = "illumos" ,
1104
+ solarish ,
1105
1105
) ) ]
1106
1106
if i32:: from ( ss. ss_family ) == libc:: AF_UNIX {
1107
1107
// Safe because we UnixAddr is strictly smaller than
@@ -1131,7 +1131,7 @@ impl SockaddrLike for SockaddrStorage {
1131
1131
libc:: AF_INET6 => unsafe {
1132
1132
SockaddrIn6 :: from_raw ( addr, l) . map ( |sin6| Self { sin6 } )
1133
1133
} ,
1134
- #[ cfg( any( bsd, target_os = "illumos" , target_os = "haiku" ) ) ]
1134
+ #[ cfg( any( bsd, solarish , target_os = "haiku" ) ) ]
1135
1135
#[ cfg( feature = "net" ) ]
1136
1136
libc:: AF_LINK => unsafe {
1137
1137
LinkAddr :: from_raw ( addr, l) . map ( |dl| Self { dl } )
@@ -1158,7 +1158,7 @@ impl SockaddrLike for SockaddrStorage {
1158
1158
}
1159
1159
}
1160
1160
1161
- #[ cfg( any( linux_android, target_os = "fuchsia" , target_os = "illumos" ) ) ]
1161
+ #[ cfg( any( linux_android, target_os = "fuchsia" , solarish ) ) ]
1162
1162
fn len ( & self ) -> libc:: socklen_t {
1163
1163
match self . as_unix_addr ( ) {
1164
1164
// The UnixAddr type knows its own length
@@ -1219,7 +1219,7 @@ impl SockaddrStorage {
1219
1219
cfg_if ! {
1220
1220
if #[ cfg( any( linux_android,
1221
1221
target_os = "fuchsia" ,
1222
- target_os = "illumos" ,
1222
+ solarish ,
1223
1223
) ) ]
1224
1224
{
1225
1225
let p = unsafe { & self . ss as * const libc:: sockaddr_storage } ;
@@ -1248,7 +1248,7 @@ impl SockaddrStorage {
1248
1248
cfg_if ! {
1249
1249
if #[ cfg( any( linux_android,
1250
1250
target_os = "fuchsia" ,
1251
- target_os = "illumos" ,
1251
+ solarish ,
1252
1252
) ) ]
1253
1253
{
1254
1254
let p = unsafe { & self . ss as * const libc:: sockaddr_storage } ;
@@ -1282,7 +1282,7 @@ impl SockaddrStorage {
1282
1282
as_link_addr, as_link_addr_mut, LinkAddr ,
1283
1283
AddressFamily :: Packet , libc:: sockaddr_ll, dl}
1284
1284
1285
- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
1285
+ #[ cfg( any( bsd, solarish ) ) ]
1286
1286
#[ cfg( feature = "net" ) ]
1287
1287
accessors ! {
1288
1288
as_link_addr, as_link_addr_mut, LinkAddr ,
@@ -1332,7 +1332,7 @@ impl fmt::Display for SockaddrStorage {
1332
1332
libc:: AF_INET => self . sin . fmt ( f) ,
1333
1333
#[ cfg( feature = "net" ) ]
1334
1334
libc:: AF_INET6 => self . sin6 . fmt ( f) ,
1335
- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
1335
+ #[ cfg( any( bsd, solarish ) ) ]
1336
1336
#[ cfg( feature = "net" ) ]
1337
1337
libc:: AF_LINK => self . dl . fmt ( f) ,
1338
1338
#[ cfg( linux_android) ]
@@ -1394,7 +1394,7 @@ impl Hash for SockaddrStorage {
1394
1394
libc:: AF_INET => self . sin . hash ( s) ,
1395
1395
#[ cfg( feature = "net" ) ]
1396
1396
libc:: AF_INET6 => self . sin6 . hash ( s) ,
1397
- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
1397
+ #[ cfg( any( bsd, solarish ) ) ]
1398
1398
#[ cfg( feature = "net" ) ]
1399
1399
libc:: AF_LINK => self . dl . hash ( s) ,
1400
1400
#[ cfg( linux_android) ]
@@ -1424,7 +1424,7 @@ impl PartialEq for SockaddrStorage {
1424
1424
( libc:: AF_INET , libc:: AF_INET ) => self . sin == other. sin ,
1425
1425
#[ cfg( feature = "net" ) ]
1426
1426
( libc:: AF_INET6 , libc:: AF_INET6 ) => self . sin6 == other. sin6 ,
1427
- #[ cfg( any( bsd, target_os = "illumos" ) ) ]
1427
+ #[ cfg( any( bsd, solarish ) ) ]
1428
1428
#[ cfg( feature = "net" ) ]
1429
1429
( libc:: AF_LINK , libc:: AF_LINK ) => self . dl == other. dl ,
1430
1430
#[ cfg( linux_android) ]
@@ -1854,7 +1854,7 @@ mod datalink {
1854
1854
}
1855
1855
}
1856
1856
1857
- #[ cfg( any( bsd, target_os = "illumos" , target_os = "haiku" , target_os = "aix" ) ) ]
1857
+ #[ cfg( any( bsd, solarish , target_os = "haiku" , target_os = "aix" ) ) ]
1858
1858
mod datalink {
1859
1859
feature ! {
1860
1860
#![ feature = "net" ]
@@ -2128,7 +2128,7 @@ mod tests {
2128
2128
mod link {
2129
2129
#![ allow( clippy:: cast_ptr_alignment) ]
2130
2130
2131
- #[ cfg( any( apple_targets, target_os = "illumos" ) ) ]
2131
+ #[ cfg( any( apple_targets, solarish ) ) ]
2132
2132
use super :: super :: super :: socklen_t;
2133
2133
use super :: * ;
2134
2134
@@ -2215,9 +2215,9 @@ mod tests {
2215
2215
}
2216
2216
}
2217
2217
2218
- #[ cfg( target_os = "illumos" ) ]
2218
+ #[ cfg( solarish ) ]
2219
2219
#[ test]
2220
- fn illumos_tap ( ) {
2220
+ fn solarish_tap ( ) {
2221
2221
let bytes = [ 25u8 , 0 , 0 , 0 , 6 , 0 , 6 , 0 , 24 , 101 , 144 , 221 , 76 , 176 ] ;
2222
2222
let ptr = bytes. as_ptr ( ) ;
2223
2223
let sa = ptr as * const libc:: sockaddr ;
0 commit comments