diff options
| author | 袁浩 <yuanhao34@huawei.com> | 2023-10-09 11:27:11 +0800 |
|---|---|---|
| committer | Sword-Destiny <yuanhonglong@outlook.com> | 2023-12-07 10:33:03 +0800 |
| commit | e353eb91fb793c5ec7cb12f7c99a13d55e05fba1 (patch) | |
| tree | 6a61dd5284f4cb8c425316e9e510190ef7744c1e /library/std/src/sys/unix/time.rs | |
| parent | 28968414c57f12b827f01a5e6b99017b7ffa7370 (diff) | |
| download | rust-e353eb91fb793c5ec7cb12f7c99a13d55e05fba1.tar.gz rust-e353eb91fb793c5ec7cb12f7c99a13d55e05fba1.zip | |
add teeos std impl
Signed-off-by: 袁浩 <yuanhao34@huawei.com>
Diffstat (limited to 'library/std/src/sys/unix/time.rs')
| -rw-r--r-- | library/std/src/sys/unix/time.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs index f2e86a4fb2b..f62eb828ee5 100644 --- a/library/std/src/sys/unix/time.rs +++ b/library/std/src/sys/unix/time.rs @@ -23,11 +23,11 @@ struct Nanoseconds(u32); #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SystemTime { - pub(in crate::sys::unix) t: Timespec, + pub(crate) t: Timespec, } #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] -pub(in crate::sys::unix) struct Timespec { +pub(crate) struct Timespec { tv_sec: i64, tv_nsec: Nanoseconds, } @@ -239,11 +239,11 @@ impl From<libc::timespec> for Timespec { not(target_arch = "riscv32") ))] #[repr(C)] -pub(in crate::sys::unix) struct __timespec64 { - pub(in crate::sys::unix) tv_sec: i64, +pub(crate) struct __timespec64 { + pub(crate) tv_sec: i64, #[cfg(target_endian = "big")] _padding: i32, - pub(in crate::sys::unix) tv_nsec: i32, + pub(crate) tv_nsec: i32, #[cfg(target_endian = "little")] _padding: i32, } @@ -255,7 +255,7 @@ pub(in crate::sys::unix) struct __timespec64 { not(target_arch = "riscv32") ))] impl __timespec64 { - pub(in crate::sys::unix) fn new(tv_sec: i64, tv_nsec: i32) -> Self { + pub(crate) fn new(tv_sec: i64, tv_nsec: i32) -> Self { Self { tv_sec, tv_nsec, _padding: 0 } } } |
