Home
last modified time | relevance | path

Searched refs:timespec (Results 1 – 25 of 55) sorted by relevance

123

/third_party/ulib/musl/src/internal/
A Dtime_conversion.h11 static inline zx_time_t __duration_timespec_to_deadline(const struct timespec timespec) { in __duration_timespec_to_deadline() argument
13 zx_duration_mul_int64(1000000000ll, timespec.tv_sec), in __duration_timespec_to_deadline()
14 timespec.tv_nsec); in __duration_timespec_to_deadline()
18 static inline int __timespec_to_deadline(const struct timespec* timespec, in __timespec_to_deadline() argument
20 struct timespec to; in __timespec_to_deadline()
22 if (timespec->tv_nsec >= ZX_SEC(1)) in __timespec_to_deadline()
26 to.tv_sec = timespec->tv_sec - to.tv_sec; in __timespec_to_deadline()
27 if ((to.tv_nsec = timespec->tv_nsec - to.tv_nsec) < 0) { in __timespec_to_deadline()
/third_party/ulib/musl/include/
A Dtime.h52 int timespec_get(struct timespec*, int);
69 struct timespec it_interval;
70 struct timespec it_value;
88 int nanosleep(const struct timespec*, struct timespec*);
89 int clock_getres(clockid_t, struct timespec*);
90 int clock_gettime(clockid_t, struct timespec*);
91 int clock_settime(clockid_t, const struct timespec*);
92 int clock_nanosleep(clockid_t, int, const struct timespec*, struct timespec*);
A Dthreads.h61 int thrd_sleep(const struct timespec*, struct timespec*);
80 int mtx_timedlock(mtx_t* __restrict, const struct timespec* __restrict);
94 int cnd_timedwait(cnd_t* __restrict, mtx_t* __restrict, const struct timespec* __restrict);
A Dpthread.h99 int pthread_mutex_timedlock(pthread_mutex_t* __restrict, const struct timespec* __restrict);
110 const struct timespec* __restrict);
118 int pthread_rwlock_timedrdlock(pthread_rwlock_t* __restrict, const struct timespec* __restrict);
121 int pthread_rwlock_timedwrlock(pthread_rwlock_t* __restrict, const struct timespec* __restrict);
A Dsched.h22 struct timespec sched_ss_repl_period;
23 struct timespec sched_ss_init_budget;
31 int sched_rr_get_interval(pid_t, struct timespec*);
/third_party/ulib/musl/src/time/
A Dnanosleep.c9 int nanosleep(const struct timespec* req, struct timespec* rem) { in nanosleep()
19 *rem = (struct timespec){ in nanosleep()
A Dclock_nanosleep.c4 int clock_nanosleep(clockid_t clk, int flags, const struct timespec* req, struct timespec* rem) { in clock_nanosleep()
A Dclock_getres.c4 int clock_getres(clockid_t clk, struct timespec* ts) { in clock_getres()
A Dclock_settime.c4 int clock_settime(clockid_t clk, const struct timespec* ts) { in clock_settime()
A Dtimespec_get.c7 int timespec_get(struct timespec* ts, int base) { in timespec_get()
A Dutime.c9 times ? ((struct timespec[2]){{.tv_sec = times->actime}, {.tv_sec = times->modtime}}) : 0, in utime()
A Dtime.c6 struct timespec ts; in time()
A Dgettimeofday.c5 struct timespec ts; in gettimeofday()
A Dclock.c7 struct timespec ts; in clock()
A Dftime.c5 struct timespec ts; in ftime()
/third_party/ulib/musl/src/thread/
A Dthrd_sleep.c8 int thrd_sleep(const struct timespec* req, struct timespec* rem) { in thrd_sleep()
26 *rem = (struct timespec){ in thrd_sleep()
/third_party/ulib/musl/include/bits/x86_64/
A Dstat.h18 struct timespec st_atim;
19 struct timespec st_mtim;
20 struct timespec st_ctim;
/third_party/ulib/musl/include/bits/aarch64/
A Dstat.h14 struct timespec st_atim;
15 struct timespec st_mtim;
16 struct timespec st_ctim;
/third_party/lib/acpica/source/os_specific/service_layers/
A Dosfuchsia.cpp160 static void timeout_to_timespec(UINT16 Timeout, struct timespec* timespec) { in timeout_to_timespec() argument
162 timespec->tv_sec = static_cast<time_t>(now / ZX_SEC(1)), in timeout_to_timespec()
163 timespec->tv_nsec = static_cast<long>(now % ZX_SEC(1)), in timeout_to_timespec()
164 timespec->tv_nsec += ZX_MSEC(Timeout); in timeout_to_timespec()
165 if (timespec->tv_nsec > static_cast<long>(ZX_SEC(1))) { in timeout_to_timespec()
166 timespec->tv_sec += timespec->tv_nsec / ZX_SEC(1); in timeout_to_timespec()
167 timespec->tv_nsec %= ZX_SEC(1); in timeout_to_timespec()
686 struct timespec then; in AcpiOsWaitSemaphore()
776 struct timespec then; in AcpiOsAcquireMutex()
/third_party/ulib/musl/src/sched/
A Dsched_rr_get_interval.c4 int sched_rr_get_interval(pid_t pid, struct timespec* ts) { in sched_rr_get_interval()
/third_party/ulib/musl/src/signal/
A Dsigtimedwait.c4 const struct timespec* restrict timeout) { in sigtimedwait()
/third_party/ulib/musl/src/ipc/
A Dsemtimedop.c6 int semtimedop(int id, struct sembuf* buf, size_t n, const struct timespec* ts) { in semtimedop()
/third_party/ulib/musl/src/unistd/
A Dusleep.c6 struct timespec tv = {.tv_sec = useconds / 1000000, .tv_nsec = (useconds % 1000000) * 1000}; in usleep()
A Dsleep.c5 struct timespec tv = {.tv_sec = seconds, .tv_nsec = 0}; in sleep()
/third_party/ulib/musl/include/sys/
A Dstat.h88 int futimens(int, const struct timespec[2]);
89 int utimensat(int, const char*, const struct timespec[2], int);

Completed in 26 milliseconds

123