/third_party/rust/crates/nix/src/sys/ |
D | time.rs | 30 use crate::sys::time::{zero_init_timespec, TimeSpec}; 83 OneShot(TimeSpec), 86 IntervalDelayed(TimeSpec, TimeSpec), 88 Interval(TimeSpec), 188 pub struct TimeSpec(timespec); struct 209 impl From<timespec> for TimeSpec { implementation 215 impl From<Duration> for TimeSpec { implementation 221 impl From<TimeSpec> for Duration { 222 fn from(timespec: TimeSpec) -> Self { in from() 227 impl AsRef<timespec> for TimeSpec { implementation [all …]
|
D | stat.rs | 14 use crate::sys::time::{TimeSpec, TimeVal}; 411 pub fn futimens(fd: RawFd, atime: &TimeSpec, mtime: &TimeSpec) -> Result<()> { in futimens() argument 447 atime: &TimeSpec, in utimensat() argument 448 mtime: &TimeSpec, in utimensat() argument
|
D | select.rs | 3 use crate::sys::time::{TimeSpec, TimeVal}; 270 T: Into<Option<&'a TimeSpec>>,
|
D | aio.rs | 43 sys::{signal::*, time::TimeSpec}, 1052 timeout: Option<TimeSpec>, in aio_suspend() argument
|
/third_party/rust/crates/nix/test/sys/ |
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()
|
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()
|
D | test_aio.rs | 19 time::{TimeSpec, TimeValLike}, 581 let timeout = TimeSpec::seconds(10); in test_aio_suspend()
|
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/ |
D | time.rs | 1 use crate::sys::time::TimeSpec; 47 pub fn res(self) -> Result<TimeSpec> { in res() argument 52 pub fn now(self) -> Result<TimeSpec> { in now() argument 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() argument 233 Ok(TimeSpec::from(res)) in clock_getres() 238 pub fn clock_gettime(clock_id: ClockId) -> Result<TimeSpec> { in clock_gettime() argument 244 Ok(TimeSpec::from(res)) in clock_gettime() 256 pub fn clock_settime(clock_id: ClockId, timespec: TimeSpec) -> Result<()> { in clock_settime()
|
D | poll.rs | 183 timeout: Option<crate::sys::time::TimeSpec>,
|
/third_party/rust/crates/nix/test/ |
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()
|
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/ |
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)) 901 let system = TimeSpec::from(ts); 903 let hw_trans = TimeSpec::from(ts); 905 let hw_raw = TimeSpec::from(ts); 1684 mut timeout: Option<crate::sys::time::TimeSpec>, [all …]
|
/third_party/rust/crates/nix/ |
D | CHANGELOG.md | 70 - Fix microsecond calculation for `TimeSpec`. 96 - Added const constructors for `TimeSpec` and `TimeVal` 295 - Added `TimeSpec::from_duration` and `TimeSpec::from_timespec` 1367 - Added struct `TimeSpec`
|