import timespec from time rather than bits

This commit is contained in:
auronandace
2026-05-03 14:33:39 +01:00
parent 135753d0e6
commit 05b8ffbcb7
27 changed files with 32 additions and 46 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ use crate::{
c_str::CStr,
error::{Errno, Result},
header::{
bits_timespec::timespec,
dirent::dirent,
errno::{EINVAL, EIO},
fcntl::{AT_EMPTY_PATH, AT_FDCWD, AT_REMOVEDIR},
@@ -17,7 +16,7 @@ use crate::{
sys_statvfs::statvfs,
sys_time::timezone,
sys_utsname::utsname,
time::itimerspec,
time::{itimerspec, timespec},
unistd::{SEEK_CUR, SEEK_SET},
},
ld_so::tcb::OsSpecific,
+1 -2
View File
@@ -16,12 +16,11 @@ use crate::{
error::{Errno, Result},
header::{
bits_sigset_t::sigset_t,
bits_timespec::timespec,
signal::{
SA_RESTORER, SI_QUEUE, SIGALRM, SIGEV_SIGNAL, sigaction, sigevent, siginfo_t, sigval,
stack_t,
},
time,
time::{self, timespec},
},
out::Out,
platform::{self, Pal, types::timer_t},
+1 -2
View File
@@ -5,7 +5,6 @@ use crate::{
c_str::CStr,
error::{Errno, Result},
header::{
bits_timespec::timespec,
fcntl::{AT_EMPTY_PATH, AT_FDCWD},
signal::sigevent,
sys_resource::{rlimit, rusage},
@@ -14,7 +13,7 @@ use crate::{
sys_statvfs::statvfs,
sys_time::timezone,
sys_utsname::utsname,
time::itimerspec,
time::{itimerspec, timespec},
},
ld_so::tcb::OsSpecific,
out::Out,
+1 -1
View File
@@ -8,8 +8,8 @@ use crate::{
error::{Errno, Result},
header::{
bits_sigset_t::sigset_t,
bits_timespec::timespec,
signal::{sigaction, siginfo_t, sigval, stack_t},
time::timespec,
},
};
+1 -1
View File
@@ -2,8 +2,8 @@ use core::mem::size_of;
use crate::header::{
bits_sigset_t::sigset_t,
bits_timespec::timespec,
fcntl::{O_CLOEXEC, O_CREAT, O_RDWR},
time::timespec,
};
use super::libredox::RawResult;
+1 -2
View File
@@ -12,8 +12,7 @@ use syscall::{
use crate::{
header::{
bits_iovec::iovec, bits_timespec::timespec, errno::EINVAL, signal::sigaction,
sys_stat::UTIME_NOW,
bits_iovec::iovec, errno::EINVAL, signal::sigaction, sys_stat::UTIME_NOW, time::timespec,
},
out::Out,
platform::{PalSignal, pal::Pal, types::*},
+1 -2
View File
@@ -27,7 +27,6 @@ use crate::{
error::{Errno, Result},
fs::File,
header::{
bits_timespec::timespec,
errno::{
EBADF, EBADFD, EEXIST, EFAULT, EFBIG, EINTR, EINVAL, EIO, ENAMETOOLONG, ENOENT, ENOMEM,
ENOSYS, EOPNOTSUPP, EPERM,
@@ -50,7 +49,7 @@ use crate::{
sys_statvfs::statvfs,
sys_time::timezone,
sys_utsname::{UTSLENGTH, utsname},
time::{TIMER_ABSTIME, itimerspec, timer_internal_t},
time::{TIMER_ABSTIME, itimerspec, timer_internal_t, timespec},
unistd::{F_OK, R_OK, SEEK_CUR, SEEK_SET, W_OK, X_OK},
},
io::{self, BufReader, prelude::*},
+1 -2
View File
@@ -8,13 +8,12 @@ use crate::{
error::{Errno, Result},
header::{
bits_sigset_t::sigset_t,
bits_timespec::timespec,
errno::{EINVAL, ENOSYS},
signal::{
SIG_BLOCK, SIG_DFL, SIG_IGN, SIG_SETMASK, SIG_UNBLOCK, SIGALRM, SIGEV_SIGNAL,
SS_DISABLE, SS_ONSTACK, sigaction, sigevent, siginfo_t, sigval, stack_t, ucontext_t,
},
time::{itimerspec, timer_internal_t},
time::{itimerspec, timer_internal_t, timespec},
},
out::Out,
sync::Mutex,
+1 -2
View File
@@ -3,10 +3,9 @@ use syscall::Error;
use crate::{
error::{Errno, Result},
header::{
bits_timespec::timespec,
errno::EIO,
signal::{SIGEV_SIGNAL, SIGEV_THREAD},
time::timer_internal_t,
time::{timer_internal_t, timespec},
},
out::Out,
platform::{Pal, Sys, sys::event, types::c_void},