Searched refs:TimeSpec (Results 1 - 13 of 13) sorted by relevance
/third_party/rust/crates/nix/src/sys/ |
H A D | time.rs | 30 use crate::sys::time::{zero_init_timespec, TimeSpec}; 82 /// Alarm will trigger once after the time given in `TimeSpec` 83 OneShot(TimeSpec), 86 IntervalDelayed(TimeSpec, TimeSpec), 88 Interval(TimeSpec), 188 pub struct TimeSpec(timespec); structure names 209 impl From<timespec> for TimeSpec { 215 impl From<Duration> for TimeSpec { 221 impl From<TimeSpec> fo 334 impl TimeSpec { global() impls [all...] |
H A D | stat.rs | 14 use crate::sys::time::{TimeSpec, TimeVal}; 411 pub fn futimens(fd: RawFd, atime: &TimeSpec, mtime: &TimeSpec) -> Result<()> { in futimens() 447 atime: &TimeSpec, in utimensat() 448 mtime: &TimeSpec, in utimensat()
|
H A D | select.rs | 3 use crate::sys::time::{TimeSpec, TimeVal}; 270 T: Into<Option<&'a TimeSpec>>, in pselect()
|
H A D | aio.rs | 43 sys::{signal::*, time::TimeSpec}, 1052 timeout: Option<TimeSpec>, in aio_suspend()
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_timerfd.rs | 1 use nix::sys::time::{TimeSpec, TimeValLike}; 16 Expiration::OneShot(TimeSpec::seconds(1)), in test_timerfd_oneshot() 36 TimeSpec::seconds(1), in test_timerfd_interval() 37 TimeSpec::seconds(2), in test_timerfd_interval() 61 Expiration::OneShot(TimeSpec::seconds(1)), in test_timerfd_unset()
|
H A D | test_select.rs | 3 use nix::sys::time::{TimeSpec, TimeValLike}; 18 let timeout = TimeSpec::seconds(10); in test_pselect() 38 let timeout = TimeSpec::seconds(10); in test_pselect_nfds2()
|
H A D | test_aio.rs | 19 time::{TimeSpec, TimeValLike}, 581 let timeout = TimeSpec::seconds(10); in test_aio_suspend()
|
H A D | test_socket.rs | 2225 let mut cmsgspace = nix::cmsg_space!(TimeSpec); in test_recvmsg_timestampns() 2280 let cmsgspace = nix::cmsg_space!(TimeSpec); in test_recvmmsg_timestampns()
|
/third_party/rust/crates/nix/src/ |
H A D | time.rs | 1 use crate::sys::time::TimeSpec; 47 pub fn res(self) -> Result<TimeSpec> { in res() 52 pub fn now(self) -> Result<TimeSpec> { in now() 64 pub fn set_time(self, timespec: TimeSpec) -> Result<()> { in set_time() 227 pub fn clock_getres(clock_id: ClockId) -> Result<TimeSpec> { in clock_getres() 233 Ok(TimeSpec::from(res)) in clock_getres() 238 pub fn clock_gettime(clock_id: ClockId) -> Result<TimeSpec> { in clock_gettime() 244 Ok(TimeSpec::from(res)) in clock_gettime() 256 pub fn clock_settime(clock_id: ClockId, timespec: TimeSpec) -> Result<()> { in clock_settime()
|
H A D | poll.rs | 183 timeout: Option<crate::sys::time::TimeSpec>, in ppoll()
|
/third_party/rust/crates/nix/test/ |
H A D | test_stat.rs | 49 use nix::sys::time::{TimeSpec, TimeVal, TimeValLike}; 278 futimens(fd, &TimeSpec::seconds(10), &TimeSpec::seconds(20)).unwrap(); in test_futimens() 298 &TimeSpec::seconds(12345), in test_utimensat() 299 &TimeSpec::seconds(678), in test_utimensat() 310 &TimeSpec::seconds(500), in test_utimensat() 311 &TimeSpec::seconds(800), in test_utimensat()
|
H A D | test_poll.rs | 50 use nix::sys::time::{TimeSpec, TimeValLike}; in test_ppoll() 52 let timeout = TimeSpec::milliseconds(1); in test_ppoll()
|
/third_party/rust/crates/nix/src/sys/socket/ |
H A D | mod.rs | 6 use crate::sys::time::TimeSpec; 744 ScmTimestampns(TimeSpec), 843 pub system: TimeSpec, 845 pub hw_trans: TimeSpec, 847 pub hw_raw: TimeSpec, 895 ControlMessageOwned::ScmTimestampns(TimeSpec::from(ts)) in decode_from() 901 let system = TimeSpec::from(ts); in decode_from() 903 let hw_trans = TimeSpec::from(ts); in decode_from() 905 let hw_raw = TimeSpec::from(ts); in decode_from() 1684 mut timeout: Option<crate::sys::time::TimeSpec>, in recvmmsg() [all...] |
Completed in 11 milliseconds