/third_party/rust/crates/rustix/tests/thread/ |
D | clocks.rs | 16 rustix::thread::{nanosleep, NanosleepRelativeResult, Timespec}, 22 match nanosleep(&Timespec { in test_invalid_nanosleep() 29 match nanosleep(&Timespec { in test_invalid_nanosleep() 36 match nanosleep(&Timespec { in test_invalid_nanosleep() 43 match nanosleep(&Timespec { in test_invalid_nanosleep() 67 &Timespec { in test_invalid_nanosleep_absolute() 77 &Timespec { in test_invalid_nanosleep_absolute() 87 &Timespec { in test_invalid_nanosleep_absolute() 97 &Timespec { in test_invalid_nanosleep_absolute() 122 &Timespec { in test_invalid_nanosleep_relative() [all …]
|
/third_party/rust/crates/rustix/tests/time/ |
D | timespec.rs | 5 use rustix::time::{Nsecs, Secs, Timespec}; in test_timespec_layout() 9 let x = Timespec { tv_sec, tv_nsec }; in test_timespec_layout() 12 let _y = Timespec { tv_sec, tv_nsec }; in test_timespec_layout() 13 let _z = Timespec { tv_sec, tv_nsec }; in test_timespec_layout() 17 let _ = Timespec { in test_timespec_layout() 22 let _ = Timespec { in test_timespec_layout() 26 let _ = Timespec { tv_sec, tv_nsec: 0 }; in test_timespec_layout() 27 let _ = Timespec { in test_timespec_layout()
|
D | y2038.rs | 20 use rustix::time::{Secs, Timespec}; in test_y2038() 23 let _ = Timespec { tv_sec, tv_nsec: 0 }; in test_y2038() 31 it_interval: Timespec { tv_sec, tv_nsec: 0 }, in test_y2038() 32 it_value: Timespec { tv_sec, tv_nsec: 0 }, in test_y2038() 42 TimerfdTimerFlags, Timespec, in test_y2038_with_timerfd() 48 it_interval: Timespec { in test_y2038_with_timerfd() 52 it_value: Timespec { in test_y2038_with_timerfd()
|
D | timerfd.rs | 3 TimerfdTimerFlags, Timespec, 11 it_interval: Timespec { in test_timerfd() 15 it_value: Timespec { in test_timerfd() 45 it_interval: Timespec { in test_timerfd_with_interval() 49 it_value: Timespec { in test_timerfd_with_interval()
|
D | monotonic.rs | 3 use rustix::time::{clock_gettime, ClockId, Timespec}; 24 let _rem = nanosleep(&Timespec { in test_monotonic_clock_with_sleep_1s() 38 let _rem = nanosleep(&Timespec { in test_monotonic_clock_with_sleep_1ms()
|
/third_party/rust/crates/rustix/tests/fs/ |
D | utimensat.rs | 4 use rustix::fs::{cwd, openat, statat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat() 24 last_access: Timespec { in test_utimensat() 28 last_modification: Timespec { in test_utimensat() 64 use rustix::fs::{cwd, openat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat_noent() 76 last_access: Timespec { in test_utimensat_noent() 80 last_modification: Timespec { in test_utimensat_noent() 94 use rustix::fs::{cwd, openat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat_notdir() 114 last_access: Timespec { in test_utimensat_notdir() 118 last_modification: Timespec { in test_utimensat_notdir()
|
D | y2038.rs | 11 cwd, fstat, openat, statat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps, in test_y2038_with_utimensat() 24 last_modification: Timespec { in test_y2038_with_utimensat() 28 last_access: Timespec { in test_y2038_with_utimensat() 110 cwd, fstat, futimens, openat, statat, AtFlags, Mode, OFlags, Timespec, Timestamps, in test_y2038_with_futimens() 123 last_modification: Timespec { in test_y2038_with_futimens() 127 last_access: Timespec { in test_y2038_with_futimens()
|
D | futimens.rs | 4 use rustix::fs::{cwd, fstat, futimens, openat, Mode, OFlags, Timespec, Timestamps}; in test_futimens() 18 last_access: Timespec { in test_futimens() 22 last_modification: Timespec { in test_futimens()
|
/third_party/rust/crates/rustix/src/backend/libc/time/ |
D | syscalls.rs | 9 use super::types::Timespec; 48 pub(crate) fn clock_getres(id: ClockId) -> Timespec { in clock_getres() argument 82 unsafe fn clock_getres_old(id: ClockId) -> Timespec { in clock_getres_old() argument 90 Timespec { in clock_getres_old() 99 pub(crate) fn clock_gettime(id: ClockId) -> Timespec { in clock_gettime() argument 138 unsafe fn clock_gettime_old(id: ClockId) -> Timespec { in clock_gettime_old() argument 146 Timespec { in clock_gettime_old() 154 pub(crate) fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result<Timespec> { in clock_gettime_dynamic() argument 220 unsafe fn clock_gettime_dynamic_old(id: c::clockid_t) -> io::Result<Timespec> { in clock_gettime_dynamic_old() argument 229 Ok(Timespec { in clock_gettime_dynamic_old() [all …]
|
D | types.rs | 12 pub type Timespec = c::timespec; typedef 21 pub struct Timespec { struct 57 pub(crate) type LibcTimespec = Timespec; 84 impl From<LibcTimespec> for Timespec { implementation 98 impl From<Timespec> for LibcTimespec { 100 fn from(t: Timespec) -> Self { in from() 238 pub it_interval: Timespec, 239 pub it_value: Timespec,
|
/third_party/rust/crates/rustix/src/thread/ |
D | clock.rs | 3 pub use backend::time::types::Timespec; 41 pub fn clock_nanosleep_relative(id: ClockId, request: &Timespec) -> NanosleepRelativeResult { in clock_nanosleep_relative() 69 pub fn clock_nanosleep_absolute(id: ClockId, request: &Timespec) -> io::Result<()> { in clock_nanosleep_absolute() 84 pub fn nanosleep(request: &Timespec) -> NanosleepRelativeResult { in nanosleep() 95 Interrupted(Timespec),
|
D | futex.rs | 9 use crate::thread::Timespec; 33 utime: *const Timespec, in futex() argument
|
D | mod.rs | 27 pub use clock::{nanosleep, NanosleepRelativeResult, Timespec};
|
/third_party/rust/crates/rustix/src/time/ |
D | clock.rs | 3 pub use backend::time::types::{Nsecs, Secs, Timespec}; 20 pub fn clock_getres(id: ClockId) -> Timespec { in clock_getres() argument 40 pub fn clock_gettime(id: ClockId) -> Timespec { in clock_gettime() argument 54 pub fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result<Timespec> { in clock_gettime_dynamic() argument
|
D | mod.rs | 14 pub use clock::{Nsecs, Secs, Timespec};
|
/third_party/rust/crates/rustix/src/backend/libc/thread/ |
D | syscalls.rs | 14 use crate::thread::{NanosleepRelativeResult, Timespec}; 52 pub(crate) fn clock_nanosleep_relative(id: ClockId, request: &Timespec) -> NanosleepRelativeResult { in clock_nanosleep_relative() 101 unsafe fn clock_nanosleep_relative_old(id: ClockId, request: &Timespec) -> NanosleepRelativeResult { in clock_nanosleep_relative_old() 124 let remain = Timespec { in clock_nanosleep_relative_old() 146 pub(crate) fn clock_nanosleep_absolute(id: ClockId, request: &Timespec) -> io::Result<()> { in clock_nanosleep_absolute() 188 fn clock_nanosleep_absolute_old(id: ClockId, request: &Timespec) -> io::Result<()> { in clock_nanosleep_absolute_old() 205 pub(crate) fn nanosleep(request: &Timespec) -> NanosleepRelativeResult { in nanosleep() 246 unsafe fn nanosleep_old(request: &Timespec) -> NanosleepRelativeResult { in nanosleep_old() 263 let remain = Timespec { in nanosleep_old()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/ |
D | vdso_wrappers.rs | 15 use super::time::types::{ClockId, DynamicClockId, Timespec}; 46 pub(crate) fn clock_gettime_dynamic(which_clock: DynamicClockId<'_>) -> io::Result<Timespec> { in clock_gettime_dynamic() argument 72 let mut timespec = MaybeUninit::<Timespec>::uninit(); in clock_gettime_dynamic() 209 type ClockGettimeType = unsafe extern "C" fn(c::c_int, *mut Timespec) -> c::c_int; 243 res: *mut Timespec, in rustix_clock_gettime_via_syscall() argument 254 res: *mut Timespec, in _rustix_clock_gettime_via_syscall() argument 266 res: *mut Timespec, in _rustix_clock_gettime_via_syscall_old() argument 278 *res = Timespec { in _rustix_clock_gettime_via_syscall_old() 291 res: *mut Timespec, in _rustix_clock_gettime_via_syscall() argument
|
/third_party/rust/crates/rustix/src/backend/linux_raw/thread/ |
D | syscalls.rs | 16 use crate::thread::{ClockId, FutexFlags, FutexOperation, NanosleepRelativeResult, Timespec}; 224 utime: *const Timespec, in futex() argument 267 utime: *const Timespec, in futex_old() argument
|
/third_party/rust/crates/rustix/src/fs/ |
D | fd.rs | 59 pub last_access: crate::fs::Timespec, 62 pub last_modification: crate::fs::Timespec,
|
D | constants.rs | 20 pub use backend::time::types::{Nsecs, Secs, Timespec};
|
D | mod.rs | 103 pub use constants::{Access, FdFlags, Mode, Nsecs, OFlags, Secs, Timespec};
|
/third_party/rust/crates/rustix/src/backend/linux_raw/time/ |
D | types.rs | 6 pub type Timespec = linux_raw_sys::general::__kernel_timespec; typedef
|
/third_party/rust/crates/humantime/src/ |
D | date.rs | 383 let s = time::at_utc(time::Timespec { sec: sec as i64, nsec: 0 }) in from_sec()
|