File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ pub fn vmsplice(
638
638
}
639
639
}
640
640
641
- #[ cfg( any ( target_os = "linux" ) ) ]
641
+ #[ cfg( target_os = "linux" ) ]
642
642
#[ cfg( feature = "fs" ) ]
643
643
libc_bitflags ! (
644
644
/// Mode argument flags for fallocate determining operation performed on a given range.
@@ -678,7 +678,7 @@ feature! {
678
678
///
679
679
/// Allows the caller to directly manipulate the allocated disk space for the
680
680
/// file referred to by fd.
681
- #[ cfg( any ( target_os = "linux" ) ) ]
681
+ #[ cfg( target_os = "linux" ) ]
682
682
#[ cfg( feature = "fs" ) ]
683
683
pub fn fallocate(
684
684
fd: RawFd ,
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ pub enum SockProtocol {
229
229
EthAll = ( libc:: ETH_P_ALL as u16 ) . to_be ( ) as i32 ,
230
230
}
231
231
232
- #[ cfg( any ( target_os = "linux" ) ) ]
232
+ #[ cfg( target_os = "linux" ) ]
233
233
libc_bitflags ! {
234
234
/// Configuration flags for `SO_TIMESTAMPING` interface
235
235
///
Original file line number Diff line number Diff line change @@ -678,7 +678,7 @@ sockopt_impl!(
678
678
libc:: IP6T_SO_ORIGINAL_DST ,
679
679
libc:: sockaddr_in6
680
680
) ;
681
- #[ cfg( any ( target_os = "linux" ) ) ]
681
+ #[ cfg( target_os = "linux" ) ]
682
682
sockopt_impl ! (
683
683
/// Specifies exact type of timestamping information collected by the kernel
684
684
/// [Further reading](https://www.kernel.org/doc/html/latest/networking/timestamping.html)
@@ -697,7 +697,7 @@ sockopt_impl!(
697
697
libc:: SO_TIMESTAMP ,
698
698
bool
699
699
) ;
700
- #[ cfg( all ( target_os = "linux" ) ) ]
700
+ #[ cfg( target_os = "linux" ) ]
701
701
sockopt_impl ! (
702
702
/// Enable or disable the receiving of the `SO_TIMESTAMPNS` control message.
703
703
ReceiveTimestampns ,
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ mod linux_android {
238
238
use nix:: unistd:: { close, pipe, read, write} ;
239
239
240
240
use tempfile:: tempfile;
241
- #[ cfg( any ( target_os = "linux" ) ) ]
241
+ #[ cfg( target_os = "linux" ) ]
242
242
use tempfile:: NamedTempFile ;
243
243
244
244
use crate :: * ;
@@ -355,7 +355,7 @@ mod linux_android {
355
355
close ( wr) . unwrap ( ) ;
356
356
}
357
357
358
- #[ cfg( any ( target_os = "linux" ) ) ]
358
+ #[ cfg( target_os = "linux" ) ]
359
359
#[ test]
360
360
fn test_fallocate ( ) {
361
361
let tmp = NamedTempFile :: new ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments