Home
last modified time | relevance | path

Searched refs:TimeSpec (Results 1 – 25 of 27) sorted by relevance

12

/external/rust/crates/nix/src/sys/
Dtime.rs30 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 …]
Dstat.rs14 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
Dselect.rs3 use crate::sys::time::{TimeSpec, TimeVal};
270 T: Into<Option<&'a TimeSpec>>,
Daio.rs43 sys::{signal::*, time::TimeSpec},
1052 timeout: Option<TimeSpec>, in aio_suspend() argument
/external/cronet/buildtools/third_party/libc++/trunk/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/
Dlast_write_time.pass.cpp53 struct TimeSpec { struct
58 TimeSpec st_atim; argument
59 TimeSpec st_mtim;
64 static TimeSpec filetime_to_timespec(LARGE_INTEGER li) { in filetime_to_timespec()
65 TimeSpec ret; in filetime_to_timespec()
94 using TimeSpec = st_timespec_t; typedef
97 using TimeSpec = timespec; typedef
102 TimeSpec extract_mtime(StatT const& st) { return st.st_mtimespec; } in extract_mtime()
103 TimeSpec extract_atime(StatT const& st) { return st.st_atimespec; } in extract_atime()
105 TimeSpec extract_mtime(StatT const& st) { return st.st_mtim; } in extract_mtime()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/
Dlast_write_time.pass.cpp38 using TimeSpec = struct ::timespec; typedef
49 TimeSpec extract_mtime(StatT const& st) { return st.st_mtimespec; } in extract_mtime()
50 TimeSpec extract_atime(StatT const& st) { return st.st_atimespec; } in extract_atime()
52 TimeSpec extract_mtime(StatT const& st) { return st.st_mtim; } in extract_mtime()
53 TimeSpec extract_atime(StatT const& st) { return st.st_atim; } in extract_atime()
56 bool ConvertToTimeSpec(TimeSpec& ts, file_time_type ft) { in ConvertToTimeSpec()
57 using SecFieldT = decltype(TimeSpec::tv_sec); in ConvertToTimeSpec()
58 using NSecFieldT = decltype(TimeSpec::tv_nsec); in ConvertToTimeSpec()
81 bool ConvertFromTimeSpec(file_time_type& ft, TimeSpec ts) { in ConvertFromTimeSpec()
93 bool CompareTimeExact(TimeSpec ts, TimeSpec ts2) { in CompareTimeExact()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/src/filesystem/
Dfilesystem_common.h255 struct TimeSpec { struct
261 TimeSpec st_atim; argument
262 TimeSpec st_mtim;
278 using TimeSpec = struct timespec;
459 using fs_time = time_util<file_time_type, int64_t, TimeSpec>;
461 using fs_time = time_util<file_time_type, time_t, TimeSpec>;
465 inline TimeSpec extract_mtime(StatT const& st) { return st.st_mtimespec; }
466 inline TimeSpec extract_atime(StatT const& st) { return st.st_atimespec; }
468 inline TimeSpec extract_mtime(StatT const& st) {
469 TimeSpec TS = {st.st_mtime, 0};
[all …]
Dposix_compat.h126 TimeSpec filetime_to_timespec(LARGE_INTEGER li) { in filetime_to_timespec()
127 TimeSpec ret; in filetime_to_timespec()
133 TimeSpec filetime_to_timespec(FILETIME ft) { in filetime_to_timespec()
140 FILETIME timespec_to_filetime(TimeSpec ts) { in timespec_to_filetime()
Doperations.cpp640 using detail::TimeSpec;
653 TimeSpec tp = detail::filetime_to_timespec(time); in now()
1225 TimeSpec ts; in __last_write_time()
1236 array<TimeSpec, 2> tbuf; in __last_write_time()
/external/rust/crates/nix/test/sys/
Dtest_timerfd.rs1 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()
Dtest_select.rs3 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()
Dtest_aio.rs19 time::{TimeSpec, TimeValLike},
581 let timeout = TimeSpec::seconds(10); in test_aio_suspend()
/external/rust/crates/nix/src/
Dtime.rs1 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()
Dpoll.rs183 timeout: Option<crate::sys::time::TimeSpec>,
/external/libcxx/src/filesystem/
Dfilesystem_common.h201 using TimeSpec = struct ::timespec;
381 using fs_time = time_util<file_time_type, time_t, TimeSpec>;
384 TimeSpec extract_mtime(StatT const& st) { return st.st_mtimespec; }
385 TimeSpec extract_atime(StatT const& st) { return st.st_atimespec; }
387 TimeSpec extract_mtime(StatT const& st) { return st.st_mtim; }
388 TimeSpec extract_atime(StatT const& st) { return st.st_atim; }
394 bool posix_utimes(const path& p, std::array<TimeSpec, 2> const& TS,
412 bool posix_utimensat(const path& p, std::array<TimeSpec, 2> const& TS,
422 bool set_file_times(const path& p, std::array<TimeSpec, 2> const& TS,
Doperations.cpp480 using detail::TimeSpec;
1021 array<TimeSpec, 2> tbuf; in __last_write_time()
/external/rust/crates/parking_lot_core/src/thread_parker/
Dredox.rs16 data::TimeSpec,
71 let ts = TimeSpec { in park_until()
91 fn futex_wait(&self, ts: Option<TimeSpec>) { in futex_wait() argument
/external/rust/crates/nix/test/
Dtest_stat.rs49 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()
Dtest_poll.rs50 use nix::sys::time::{TimeSpec, TimeValLike}; in test_ppoll()
52 let timeout = TimeSpec::milliseconds(1); in test_ppoll()
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/input.output/filesystems/class.directory_entry/directory_entry.mods/
Dlast_write_time.pass.cpp44 TimeSpec ToTime; in last_write_time_not_representable_error()
48 std::array<TimeSpec, 2> TS = {ToTime, ToTime}; in last_write_time_not_representable_error()
/external/libcxx/test/libcxx/input.output/filesystems/class.directory_entry/directory_entry.mods/
Dlast_write_time.sh.cpp40 TimeSpec ToTime; in TEST_CASE()
44 std::array<TimeSpec, 2> TS = {ToTime, ToTime}; in TEST_CASE()
/external/grpc-grpc/src/ruby/lib/grpc/core/
Dtime_consts.rb37 if timeish.is_a? TimeSpec
/external/rust/crates/nix/src/sys/socket/
Dmod.rs6 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 …]
/external/libcxx/test/libcxx/input.output/filesystems/
Dconvert_file_time.sh.cpp253 template <class FileTimeT, class TimeT, class TimeSpec, class Base,
255 struct test_case<FileTimeT, TimeT, TimeSpec, Base, TK_FloatingPoint,
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/input.output/filesystems/
Dconvert_file_time.pass.cpp252 template <class FileTimeT, class TimeT, class TimeSpec, class Base,
254 struct test_case<FileTimeT, TimeT, TimeSpec, Base, TK_FloatingPoint,

12