Commit fe05591 1 parent c72519b commit fe05591 Copy full SHA for fe05591
File tree 4 files changed +17
-6
lines changed
unix/linux_like/linux/gnu/b32
4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -208,40 +208,47 @@ fn is_gnu_time64_abi() -> bool {
208
208
match env:: var ( "CARGO_CFG_TARGET_ENV" ) {
209
209
Ok ( target_env) => {
210
210
if target_env != "gnu" {
211
- return false ;
211
+ panic ! ( "Not GNU" ) ;
212
+ //return false;
212
213
}
213
214
}
214
215
Err ( _) => panic ! ( "CARGO_CFG_TARGET_ENV not set" ) ,
215
216
}
216
217
match env:: var ( "CARGO_CFG_TARGET_OS" ) {
217
218
Ok ( target_os) => {
218
219
if target_os != "linux" {
219
- return false ;
220
+ panic ! ( "Not linux" ) ;
221
+ //return false;
220
222
}
221
223
}
222
224
Err ( _) => panic ! ( "CARGO_CFG_TARGET_OS not set" ) ,
223
225
}
224
226
match env:: var ( "CARGO_CFG_TARGET_POINTER_WIDTH" ) {
225
227
Ok ( bits) => {
226
228
if bits == "64" {
227
- return false ;
229
+ panic ! ( "Not 32 bit pointers" ) ;
230
+ //return false;
228
231
}
229
232
}
230
233
Err ( _) => panic ! ( "CARGO_CFG_TARGET_POINTER_WIDTH not set" ) ,
231
234
}
232
235
match env:: var ( "RUST_LIBC_TIME_BITS" ) {
233
236
Ok ( time_bits) => {
234
237
if time_bits == "64" {
238
+ //panic!("time bits 64");
235
239
return true ;
236
240
}
237
241
if time_bits == "32" {
242
+ //panic!("time bits 32");
238
243
return false ;
239
244
}
240
245
if time_bits != "default" {
241
246
panic ! ( "Invalid value for RUST_LIBC_TIME_BITS" ) ;
242
247
}
243
248
}
244
- Err ( _) => { }
249
+ Err ( _) => {
250
+ panic ! ( "shouldn't happen" ) ;
251
+ }
245
252
}
246
253
// At this point, we _know_ it is *-*-linux-gnu* with 32 bit
247
254
// pointers. Some 64 bit arch still have 32 bit pointers though.
Original file line number Diff line number Diff line change @@ -126,5 +126,6 @@ cfg_if! {
126
126
pub use xous:: * ;
127
127
} else {
128
128
// non-supported targets: empty...
129
+ panic!( "non-supported targets: empty..." ) ;
129
130
}
130
131
}
Original file line number Diff line number Diff line change 1
1
//! 32-bit specific definitions for linux-like values when gnu_time64_abi is set
2
2
3
3
s ! {
4
+ pub struct stat {
5
+ pub st_rdev: :: dev_t,
6
+ }
4
7
pub struct timex {
5
8
pub modes: :: c_uint,
6
9
Original file line number Diff line number Diff line change 1
- use stat;
2
- pub type stat64 = stat ;
1
+ // use stat;
2
+ // pub type stat64 = stat;
3
3
4
4
s ! {
5
5
pub struct statfs64 {
You can’t perform that action at this time.
0 commit comments