revert cfg and remove unused import

This commit is contained in:
auronandace
2026-07-15 10:44:50 +01:00
parent e320c755ff
commit 6671339ec3
2 changed files with 1 additions and 5 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
use crate::{c_str::CStr, header::stdlib::getenv, platform::types::*};
use core::ptr;
use crate::{c_str::CStr, header::stdlib::getenv, platform::types::c_char};
use syscall::{EIO, ENOENT, Error, Result, flag::*};
pub const LIBC_SCHEME: &'static str = "libc:";
-3
View File
@@ -129,10 +129,7 @@ pub unsafe fn fstat(fd: usize, buf: *mut crate::header::sys_stat::stat) -> Resul
// TODO st_rdev
buf.st_rdev = 0;
buf.st_size = redox_buf.st_size as off_t;
#[cfg(target_pointer_width = "32")]
buf.st_blksize = redox_buf.st_blksize as blksize_t;
#[cfg(target_pointer_width = "64")]
buf.st_blksize = blksize_t::from(redox_buf.st_blksize);
buf.st_blocks = redox_buf.st_blocks as blkcnt_t;
buf.st_atim = timespec {
tv_sec: redox_buf.st_atime as time_t,