File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -291,29 +291,14 @@ fn mkstat(stat: &libc::stat) -> FileStat {
291
291
// FileStat times are in milliseconds
292
292
fn mktime ( secs : u64 , nsecs : u64 ) -> u64 { secs * 1000 + nsecs / 1000000 }
293
293
294
- #[ cfg( target_os = "bitrig" ) ]
295
- fn ctime ( stat : & libc:: stat ) -> u64 {
296
- mktime ( stat. st_ctim . tv_sec as u64 , stat. st_ctim . tv_nsec as u64 )
297
- }
298
- #[ cfg( not( target_os = "bitrig" ) ) ]
299
294
fn ctime ( stat : & libc:: stat ) -> u64 {
300
295
mktime ( stat. st_ctime as u64 , stat. st_ctime_nsec as u64 )
301
296
}
302
297
303
- #[ cfg( target_os = "bitrig" ) ]
304
- fn atime ( stat : & libc:: stat ) -> u64 {
305
- mktime ( stat. st_atim . tv_sec as u64 , stat. st_atim . tv_nsec as u64 )
306
- }
307
- #[ cfg( not( target_os = "bitrig" ) ) ]
308
298
fn atime ( stat : & libc:: stat ) -> u64 {
309
299
mktime ( stat. st_atime as u64 , stat. st_atime_nsec as u64 )
310
300
}
311
301
312
- #[ cfg( target_os = "bitrig" ) ]
313
- fn mtime ( stat : & libc:: stat ) -> u64 {
314
- mktime ( stat. st_mtim . tv_sec as u64 , stat. st_mtim . tv_nsec as u64 )
315
- }
316
- #[ cfg( not( target_os = "bitrig" ) ) ]
317
302
fn mtime ( stat : & libc:: stat ) -> u64 {
318
303
mktime ( stat. st_mtime as u64 , stat. st_mtime_nsec as u64 )
319
304
}
Original file line number Diff line number Diff line change @@ -439,6 +439,7 @@ fn translate_status(status: c_int) -> ExitStatus {
439
439
target_os = "ios" ,
440
440
target_os = "freebsd" ,
441
441
target_os = "dragonfly" ,
442
+ target_os = "bitrig" ,
442
443
target_os = "openbsd" ) ) ]
443
444
mod imp {
444
445
pub fn WIFEXITED ( status : i32 ) -> bool { ( status & 0x7f ) == 0 }
You can’t perform that action at this time.
0 commit comments