@@ -8,18 +8,7 @@ use nix::fcntl::{openat, readlinkat, renameat};
8
8
#[ cfg( target_os = "linux" ) ]
9
9
use nix:: fcntl:: { openat2, OpenHow , ResolveFlag } ;
10
10
11
- #[ cfg( all(
12
- target_os = "linux" ,
13
- any(
14
- target_arch = "x86_64" ,
15
- target_arch = "x86" ,
16
- target_arch = "aarch64" ,
17
- target_arch = "arm" ,
18
- target_arch = "riscv64" ,
19
- target_arch = "powerpc" ,
20
- target_arch = "s390x"
21
- )
22
- ) ) ]
11
+ #[ cfg( target_os = "linux" ) ]
23
12
use nix:: fcntl:: { renameat2, RenameFlags } ;
24
13
#[ cfg( not( target_os = "redox" ) ) ]
25
14
use nix:: sys:: stat:: Mode ;
@@ -135,18 +124,7 @@ fn test_renameat() {
135
124
}
136
125
137
126
#[ test]
138
- #[ cfg( all(
139
- target_os = "linux" ,
140
- any(
141
- target_arch = "x86_64" ,
142
- target_arch = "x86" ,
143
- target_arch = "aarch64" ,
144
- target_arch = "arm" ,
145
- target_arch = "riscv64" ,
146
- target_arch = "powerpc" ,
147
- target_arch = "s390x"
148
- )
149
- ) ) ]
127
+ #[ cfg( target_os = "linux" ) ]
150
128
fn test_renameat2_behaves_like_renameat_with_no_flags ( ) {
151
129
let old_dir = tempfile:: tempdir ( ) . unwrap ( ) ;
152
130
let old_dirfd =
@@ -167,18 +145,7 @@ fn test_renameat2_behaves_like_renameat_with_no_flags() {
167
145
}
168
146
169
147
#[ test]
170
- #[ cfg( all(
171
- target_os = "linux" ,
172
- any(
173
- target_arch = "x86_64" ,
174
- target_arch = "x86" ,
175
- target_arch = "aarch64" ,
176
- target_arch = "arm" ,
177
- target_arch = "riscv64" ,
178
- target_arch = "powerpc" ,
179
- target_arch = "s390x"
180
- )
181
- ) ) ]
148
+ #[ cfg( target_os = "linux" ) ]
182
149
fn test_renameat2_exchange ( ) {
183
150
let old_dir = tempfile:: tempdir ( ) . unwrap ( ) ;
184
151
let old_dirfd =
@@ -215,18 +182,7 @@ fn test_renameat2_exchange() {
215
182
}
216
183
217
184
#[ test]
218
- #[ cfg( all(
219
- target_os = "linux" ,
220
- any(
221
- target_arch = "x86_64" ,
222
- target_arch = "x86" ,
223
- target_arch = "aarch64" ,
224
- target_arch = "arm" ,
225
- target_arch = "riscv64" ,
226
- target_arch = "powerpc" ,
227
- target_arch = "s390x"
228
- )
229
- ) ) ]
185
+ #[ cfg( target_os = "linux" ) ]
230
186
fn test_renameat2_noreplace ( ) {
231
187
let old_dir = tempfile:: tempdir ( ) . unwrap ( ) ;
232
188
let old_dirfd =
0 commit comments