Home
last modified time | relevance | path

Searched defs:Timespec (Results 1 – 25 of 187) sorted by relevance

12345678

/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
H A Dtime.rs10 struct Timespec { struct
14 impl Timespec { argument
19 const fn new(tv_sec: i64, tv_nsec: i64) -> Timespec { in new()
46 fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
59 fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
72 impl PartialEq for Timespec { implementation
78 impl Eq for Timespec {} implementation
80 impl PartialOrd for Timespec { implementation
86 impl Ord for Timespec { implementation
94 impl Hash for Timespec { implementation
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
H A Dtime.rs10 struct Timespec { struct
14 impl Timespec { impl
19 const fn new(tv_sec: i64, tv_nsec: i64) -> Timespec { in new()
46 fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
59 fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
72 impl PartialEq for Timespec { implementation
78 impl Eq for Timespec {} implementation
80 impl PartialOrd for Timespec { implementation
86 impl Ord for Timespec { implementation
94 impl Hash for Timespec { implementation
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
H A Dtime.rs12 struct Timespec { struct
16 impl Timespec { implementation
21 const fn new(tv_sec: i64, tv_nsec: i32) -> Timespec { in new()
48 fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
61 fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
74 impl PartialEq for Timespec { implementation
80 impl Eq for Timespec {} implementation
82 impl PartialOrd for Timespec { implementation
88 impl Ord for Timespec { implementation
96 impl Hash for Timespec { implementation
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
H A Dtime.rs12 struct Timespec { struct
16 impl Timespec { impl
21 const fn new(tv_sec: i64, tv_nsec: i32) -> Timespec { in new()
48 fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
61 fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
74 impl PartialEq for Timespec { implementation
80 impl Eq for Timespec {} implementation
82 impl PartialOrd for Timespec { implementation
88 impl Ord for Timespec { implementation
96 impl Hash for Timespec { implementation
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
H A Dtime.rs12 struct Timespec { struct
16 impl Timespec { implementation
21 const fn new(tv_sec: i64, tv_nsec: i32) -> Timespec { in new()
48 fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
61 fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
74 impl PartialEq for Timespec { implementation
80 impl Eq for Timespec {} implementation
82 impl PartialOrd for Timespec { implementation
88 impl Ord for Timespec { implementation
96 impl Hash for Timespec { implementation
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dtime.rs30 pub(crate) struct Timespec { struct
38 Ok(SystemTime { t: Timespec::new(tv_sec, tv_nsec)? }) in new() argument
67 impl Timespec { implementation
68 const unsafe fn new_unchecked(tv_sec: i64, tv_nsec: i64) -> Timespec { in new_unchecked()
76 const fn new(tv_sec: i64, tv_nsec: i64) -> Result<Timespec, io::Error> { in new()
103 pub fn now(clock: libc::clockid_t) -> Timespec { in now()
168 pub fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
181 pub fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dtime.rs30 pub(crate) struct Timespec { struct
38 Ok(SystemTime { t: Timespec::new(tv_sec, tv_nsec)? }) in new() argument
67 impl Timespec { impl
68 const unsafe fn new_unchecked(tv_sec: i64, tv_nsec: i64) -> Timespec { in new_unchecked()
76 const fn new(tv_sec: i64, tv_nsec: i64) -> Result<Timespec, io::Error> { in new()
103 pub fn now(clock: libc::clockid_t) -> Timespec { in now()
168 pub fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
181 pub fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dtime.rs30 pub(crate) struct Timespec { struct
38 Ok(SystemTime { t: Timespec::new(tv_sec, tv_nsec)? }) in new() argument
67 impl Timespec { impl
68 const unsafe fn new_unchecked(tv_sec: i64, tv_nsec: i64) -> Timespec { in new_unchecked()
76 const fn new(tv_sec: i64, tv_nsec: i64) -> Result<Timespec, io::Error> { in new()
103 pub fn now(clock: libc::clockid_t) -> Timespec { in now()
168 pub fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
181 pub fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dtime.rs30 pub(crate) struct Timespec { struct
38 Ok(SystemTime { t: Timespec::new(tv_sec, tv_nsec)? }) in new() argument
67 impl Timespec { implementation
68 const unsafe fn new_unchecked(tv_sec: i64, tv_nsec: i64) -> Timespec { in new_unchecked()
76 const fn new(tv_sec: i64, tv_nsec: i64) -> Result<Timespec, io::Error> { in new()
103 pub fn now(clock: libc::clockid_t) -> Timespec { in now()
168 pub fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
181 pub fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dtime.rs30 pub(crate) struct Timespec { struct
38 Ok(SystemTime { t: Timespec::new(tv_sec, tv_nsec)? }) in new() argument
67 impl Timespec { implementation
68 const unsafe fn new_unchecked(tv_sec: i64, tv_nsec: i64) -> Timespec { in new_unchecked()
76 const fn new(tv_sec: i64, tv_nsec: i64) -> Result<Timespec, io::Error> { in new()
103 pub fn now(clock: libc::clockid_t) -> Timespec { in now()
168 pub fn checked_add_duration(&self, other: &Duration) -> Option<Timespec> { in checked_add_duration()
181 pub fn checked_sub_duration(&self, other: &Duration) -> Option<Timespec> { in checked_sub_duration()
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/backend/libc/time/
Dsyscalls.rs42 pub(crate) fn clock_getres(id: ClockId) -> Timespec { in clock_getres()
70 fn clock_getres_old(id: ClockId) -> Timespec { in clock_getres_old()
91 pub(crate) fn clock_gettime(id: ClockId) -> Timespec { in clock_gettime()
126 fn clock_gettime_old(id: ClockId) -> Timespec { in clock_gettime_old()
146 pub(crate) fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result<Timespec> { in clock_gettime_dynamic()
214 fn clock_gettime_dynamic_old(id: c::clockid_t) -> io::Result<Timespec> { in clock_gettime_dynamic_old()
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/
Dtimespec.rs9 pub type Timespec = c::timespec; typedef
15 pub struct Timespec { struct
23 /// A type for the `tv_sec` field of [`Timespec`]. argument
67 impl From<LibcTimespec> for Timespec { implementation
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/time/
Dclock.rs30 pub fn clock_getres(id: ClockId) -> Timespec { in clock_getres()
60 pub fn clock_gettime(id: ClockId) -> Timespec { in clock_gettime()
74 pub fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result<Timespec> { in clock_gettime_dynamic()
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/backend/linux_raw/
Dvdso_wrappers.rs78 pub(crate) fn clock_gettime_dynamic(which_clock: DynamicClockId<'_>) -> io::Result<Timespec> { in clock_gettime_dynamic()
335 res: *mut Timespec, in rustix_clock_gettime_via_syscall()
347 res: *mut Timespec, in _rustix_clock_gettime_via_syscall()
360 res: *mut Timespec, in _rustix_clock_gettime_via_syscall_old()
385 res: *mut Timespec, in _rustix_clock_gettime_via_syscall()
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/vendor/golang.org/x/sys/unix/
Dzsyscall_linux.go137 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
205 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
575 func ClockGetres(clockid int32, res *Timespec) (err error) {
585 func ClockGettime(clockid int32, time *Timespec) (err error) {
595 func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) {
1316 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1383 func pselect6(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_argpack) (n…
Dsyscall_bsd.go389 func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error) {
543 func UtimesNano(path string, ts []Timespec) error {
567 func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
Dsyscall_zos_s390x.go1284 func enter_UtimesNano(path string, ts []Timespec) (err error) {
1294 func utimesNanoImpl(path string, ts []Timespec) (err error) {
1304 func legacyUtimesNano(path string, ts []Timespec) (err error) {
1326 func enter_UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) (err error) {
1336 func utimesNanoAtImpl(dirfd int, path string, ts []Timespec, flags int) (err error) {
1346 func legacyUtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) (err error) {
2152 func ClockGettime(clockid int32, ts *Timespec) error {
2218 func enter_Nanosleep(time *Timespec, leftover *Timespec) error {
2228 func impl_Nanosleep(time *Timespec, leftover *Timespec) error {
2238 func legacyNanosleep(time *Timespec, leftover *Timespec) error {
Dzsyscall_dragonfly_amd64.go206 …ange unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err…
564 func ClockGettime(clockid int32, time *Timespec) (err error) {
1118 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1655 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
/aosp_15_r20/prebuilts/go/linux-x86/src/syscall/
Dsyscall_wasip1.go419 type Timespec struct { struct
420 Sec int64
421 Nsec int64
424 func (ts *Timespec) timestamp() timestamp {
428 func (ts *Timespec) setTimestamp(t timestamp) {
Dsyscall_plan9.go347 type Timespec struct { struct
348 Sec int32
349 Nsec int32
Dzsyscall_linux_riscv64.go175 func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
689 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1549 func pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_t) (n int, e…
1570 func ppoll(fds *pollFd, nfds int, timeout *Timespec, sigmask *sigset_t) (n int, err error) {
Dsyscall_windows.go679 func UtimesNano(path string, ts []Timespec) (err error) {
1118 type Timespec struct { struct
1119 Sec int64
1120 Nsec int64
1123 func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
Dzsyscall_linux_loong64.go175 func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
689 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1519 func pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_t) (n int, e…
1540 func ppoll(fds *pollFd, nfds int, timeout *Timespec, sigmask *sigset_t) (n int, err error) {
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/vendor/golang.org/x/sys/plan9/
Dsyscall_plan9.go261 type Timespec struct { struct
262 Sec int32
263 Nsec int32
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/backend/linux_raw/time/
Dsyscalls.rs30 pub(crate) fn clock_getres(which_clock: ClockId) -> Timespec { in clock_getres()
51 unsafe fn clock_getres_old(which_clock: ClockId, result: &mut MaybeUninit<Timespec>) { in clock_getres_old()

12345678