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
@@ -3,10 +3,9 @@
use crate::{
error::Errno,
header::{
bits_timespec::timespec,
errno::{EINVAL, ETIMEDOUT},
pthread::*,
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec_realtime_to_monotonic},
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec, timespec_realtime_to_monotonic},
},
platform::types::clockid_t,
};
+1 -1
View File
@@ -20,8 +20,8 @@ pub use self::{
use crate::{
error::Errno,
header::{
bits_timespec::timespec,
errno::{EAGAIN, EINTR, ETIMEDOUT},
time::timespec,
},
out::Out,
platform::{Pal, Sys, types::c_int},
+1 -1
View File
@@ -5,7 +5,7 @@ use core::{
use crate::{
error::Errno,
header::{bits_timespec::timespec, errno::*, pthread::*},
header::{errno::*, pthread::*, time::timespec},
};
use crate::platform::{Pal, Sys, types::c_int};
+1 -2
View File
@@ -7,9 +7,8 @@ use core::{
use crate::{
error::{Errno, Result},
header::{
bits_timespec::timespec,
errno::{EINVAL, ETIMEDOUT},
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec_realtime_to_monotonic},
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec, timespec_realtime_to_monotonic},
},
platform::types::clockid_t,
pthread::Pshared,
+1 -4
View File
@@ -2,10 +2,7 @@
//TODO: improve implementation
use crate::{
header::{
bits_timespec::timespec,
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec_realtime_to_monotonic},
},
header::time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec, timespec_realtime_to_monotonic},
platform::types::{c_uint, clockid_t},
};