File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -701,7 +701,7 @@ pub fn vmsplice(
701
701
}
702
702
}
703
703
704
- #[ cfg( any ( target_os = "linux" ) ) ]
704
+ #[ cfg( target_os = "linux" ) ]
705
705
#[ cfg( feature = "fs" ) ]
706
706
libc_bitflags ! (
707
707
/// Mode argument flags for fallocate determining operation performed on a given range.
@@ -741,7 +741,7 @@ feature! {
741
741
///
742
742
/// Allows the caller to directly manipulate the allocated disk space for the
743
743
/// file referred to by fd.
744
- #[ cfg( any ( target_os = "linux" ) ) ]
744
+ #[ cfg( target_os = "linux" ) ]
745
745
#[ cfg( feature = "fs" ) ]
746
746
pub fn fallocate(
747
747
fd: RawFd ,
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ impl SockProtocol {
236
236
#[ allow( non_upper_case_globals) ]
237
237
pub const CanBcm : SockProtocol = SockProtocol :: NetlinkUserSock ; // Matches libc::CAN_BCM
238
238
}
239
- #[ cfg( any ( target_os = "linux" ) ) ]
239
+ #[ cfg( target_os = "linux" ) ]
240
240
libc_bitflags ! {
241
241
/// Configuration flags for `SO_TIMESTAMPING` interface
242
242
///
Original file line number Diff line number Diff line change @@ -683,7 +683,7 @@ sockopt_impl!(
683
683
libc:: IP6T_SO_ORIGINAL_DST ,
684
684
libc:: sockaddr_in6
685
685
) ;
686
- #[ cfg( any ( target_os = "linux" ) ) ]
686
+ #[ cfg( target_os = "linux" ) ]
687
687
sockopt_impl ! (
688
688
/// Specifies exact type of timestamping information collected by the kernel
689
689
/// [Further reading](https://www.kernel.org/doc/html/latest/networking/timestamping.html)
@@ -702,7 +702,7 @@ sockopt_impl!(
702
702
libc:: SO_TIMESTAMP ,
703
703
bool
704
704
) ;
705
- #[ cfg( all ( target_os = "linux" ) ) ]
705
+ #[ cfg( target_os = "linux" ) ]
706
706
sockopt_impl ! (
707
707
/// Enable or disable the receiving of the `SO_TIMESTAMPNS` control message.
708
708
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