rename bits_time to bits_timespec for consistency

This commit is contained in:
auronandace
2026-04-09 10:50:04 +01:00
parent 6530de76b9
commit 49f96a96e6
36 changed files with 40 additions and 38 deletions
+3 -4
View File
@@ -4,7 +4,9 @@ use core::arch::asm;
use super::{Pal, types::*};
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},
@@ -14,6 +16,7 @@ use crate::{
sys_stat::{S_IFIFO, stat},
sys_statvfs::statvfs,
sys_time::timezone,
sys_utsname::utsname,
time::itimerspec,
unistd::{SEEK_CUR, SEEK_SET},
},
@@ -22,10 +25,6 @@ use crate::{
};
use core::{num::NonZeroU64, ptr};
// use header::sys_times::tms;
use crate::{
error::{Errno, Result},
header::{bits_time::timespec, sys_utsname::utsname},
};
mod epoll;
mod ptrace;
+1 -1
View File
@@ -13,7 +13,7 @@ use super::{
use crate::{
error::{Errno, Result},
header::{
bits_time::timespec,
bits_timespec::timespec,
signal::{SA_RESTORER, SI_QUEUE, sigaction, siginfo_t, sigset_t, sigval, stack_t},
sys_select::timeval,
sys_time::{self, itimerval},
+1 -1
View File
@@ -5,7 +5,7 @@ use crate::{
c_str::CStr,
error::{Errno, Result},
header::{
bits_time::timespec,
bits_timespec::timespec,
signal::sigevent,
sys_resource::{rlimit, rusage},
sys_select::timeval,
+5 -2
View File
@@ -1,8 +1,11 @@
use super::super::{Pal, types::*};
use super::super::{
Pal,
types::{c_int, c_uint, pid_t},
};
use crate::{
error::{Errno, Result},
header::{
bits_time::timespec,
bits_timespec::timespec,
signal::{sigaction, siginfo_t, sigset_t, sigval, stack_t},
sys_time::itimerval,
},
+1 -1
View File
@@ -1,7 +1,7 @@
use core::mem::size_of;
use crate::header::{
bits_time::timespec,
bits_timespec::timespec,
fcntl::{O_CLOEXEC, O_CREAT, O_RDWR},
signal::sigset_t,
};
+1 -1
View File
@@ -12,7 +12,7 @@ use syscall::{
use crate::{
header::{
bits_iovec::iovec, bits_time::timespec, errno::EINVAL, signal::sigaction,
bits_iovec::iovec, bits_timespec::timespec, errno::EINVAL, signal::sigaction,
sys_stat::UTIME_NOW,
},
out::Out,
+1 -1
View File
@@ -26,7 +26,7 @@ use crate::{
error::{Errno, Result},
fs::File,
header::{
bits_time::timespec,
bits_timespec::timespec,
errno::{
EBADF, EBADFD, EEXIST, EFAULT, EFBIG, EINTR, EINVAL, EIO, ENAMETOOLONG, ENOENT, ENOMEM,
ENOSYS, EOPNOTSUPP, EPERM,
+1 -1
View File
@@ -5,7 +5,7 @@ use super::{
use crate::{
error::{Errno, Result},
header::{
bits_time::timespec,
bits_timespec::timespec,
errno::{EINVAL, ENOSYS},
signal::{
SIG_BLOCK, SIG_DFL, SIG_IGN, SIG_SETMASK, SIG_UNBLOCK, SIGALRM, SIGEV_SIGNAL,
+1 -1
View File
@@ -3,7 +3,7 @@ use syscall::Error;
use crate::{
error::{Errno, Result},
header::{
bits_time::timespec,
bits_timespec::timespec,
errno::EIO,
signal::{SIGEV_SIGNAL, SIGEV_THREAD},
time::timer_internal_t,