Home
last modified time | relevance | path

Searched refs:TimeVal (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/nix/src/sys/
Dtime.rs453 pub struct TimeVal(timeval); struct
465 impl AsRef<timeval> for TimeVal { implementation
471 impl AsMut<timeval> for TimeVal { implementation
477 impl Ord for TimeVal { implementation
480 fn cmp(&self, other: &TimeVal) -> cmp::Ordering { in cmp()
489 impl PartialOrd for TimeVal { implementation
490 fn partial_cmp(&self, other: &TimeVal) -> Option<cmp::Ordering> { in partial_cmp()
495 impl TimeValLike for TimeVal { implementation
497 fn seconds(seconds: i64) -> TimeVal { in seconds() argument
505 TimeVal(timeval { in seconds()
[all …]
Dresource.rs6 use crate::sys::time::TimeVal;
307 pub fn user_time(&self) -> TimeVal { in user_time() argument
308 TimeVal::from(self.0.ru_utime) in user_time()
312 pub fn system_time(&self) -> TimeVal { in system_time() argument
313 TimeVal::from(self.0.ru_stime) in system_time()
Dselect.rs3 use crate::sys::time::{TimeSpec, TimeVal};
188 T: Into<Option<&'a mut TimeVal>>, in select() argument
305 use crate::sys::time::{TimeVal, TimeValLike};
395 let mut timeout = TimeVal::seconds(10); in test_select()
414 let mut timeout = TimeVal::seconds(10); in test_select_nfds()
440 let mut timeout = TimeVal::seconds(10); in test_select_nfds2()
Dstat.rs14 use crate::sys::time::{TimeSpec, TimeVal};
362 atime: &TimeVal, in utimes() argument
363 mtime: &TimeVal, in utimes() argument
394 atime: &TimeVal, in lutimes() argument
395 mtime: &TimeVal, in lutimes() argument
/external/rust/crates/nix/test/
Dtest_stat.rs49 use nix::sys::time::{TimeSpec, TimeVal, TimeValLike};
230 utimes(&fullpath, &TimeVal::seconds(9990), &TimeVal::seconds(5550)) in test_utimes()
251 lutimes(&fullpath, &TimeVal::seconds(4560), &TimeVal::seconds(1230)) in test_lutimes()
/external/cronet/buildtools/third_party/libc++/trunk/src/filesystem/
Dfilesystem_common.h279 using TimeVal = struct timeval;
491 inline TimeVal make_timeval(TimeSpec const& ts) {
494 using int_type = decltype(std::declval<TimeVal>().tv_usec);
498 TimeVal TV = {};
506 TimeVal ConvertedTS[2] = {make_timeval(TS[0]), make_timeval(TS[1])};
/external/rust/crates/nix/src/sys/socket/
Dsockopt.rs4 use crate::sys::time::TimeVal;
433 TimeVal
441 TimeVal
Dmod.rs8 use crate::sys::time::TimeVal;
733 ScmTimestamp(TimeVal),
890 ControlMessageOwned::ScmTimestamp(TimeVal::from(tv))
/external/rust/crates/nix/
DCHANGELOG.md96 - Added const constructors for `TimeSpec` and `TimeVal`
665 `TimeVal`, and `IoVec` are now `repr(transparent)`. This is required for
1406 - Changed `TimeVal` into an opaque Newtype