| /third_party/ulib/musl/src/internal/ |
| A D | time_conversion.h | 11 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 D | time.h | 52 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 D | threads.h | 61 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 D | pthread.h | 99 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 D | sched.h | 22 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 D | nanosleep.c | 9 int nanosleep(const struct timespec* req, struct timespec* rem) { in nanosleep() 19 *rem = (struct timespec){ in nanosleep()
|
| A D | clock_nanosleep.c | 4 int clock_nanosleep(clockid_t clk, int flags, const struct timespec* req, struct timespec* rem) { in clock_nanosleep()
|
| A D | clock_getres.c | 4 int clock_getres(clockid_t clk, struct timespec* ts) { in clock_getres()
|
| A D | clock_settime.c | 4 int clock_settime(clockid_t clk, const struct timespec* ts) { in clock_settime()
|
| A D | timespec_get.c | 7 int timespec_get(struct timespec* ts, int base) { in timespec_get()
|
| A D | utime.c | 9 times ? ((struct timespec[2]){{.tv_sec = times->actime}, {.tv_sec = times->modtime}}) : 0, in utime()
|
| A D | time.c | 6 struct timespec ts; in time()
|
| A D | gettimeofday.c | 5 struct timespec ts; in gettimeofday()
|
| A D | clock.c | 7 struct timespec ts; in clock()
|
| A D | ftime.c | 5 struct timespec ts; in ftime()
|
| /third_party/ulib/musl/src/thread/ |
| A D | thrd_sleep.c | 8 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 D | stat.h | 18 struct timespec st_atim; 19 struct timespec st_mtim; 20 struct timespec st_ctim;
|
| /third_party/ulib/musl/include/bits/aarch64/ |
| A D | stat.h | 14 struct timespec st_atim; 15 struct timespec st_mtim; 16 struct timespec st_ctim;
|
| /third_party/lib/acpica/source/os_specific/service_layers/ |
| A D | osfuchsia.cpp | 160 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 D | sched_rr_get_interval.c | 4 int sched_rr_get_interval(pid_t pid, struct timespec* ts) { in sched_rr_get_interval()
|
| /third_party/ulib/musl/src/signal/ |
| A D | sigtimedwait.c | 4 const struct timespec* restrict timeout) { in sigtimedwait()
|
| /third_party/ulib/musl/src/ipc/ |
| A D | semtimedop.c | 6 int semtimedop(int id, struct sembuf* buf, size_t n, const struct timespec* ts) { in semtimedop()
|
| /third_party/ulib/musl/src/unistd/ |
| A D | usleep.c | 6 struct timespec tv = {.tv_sec = useconds / 1000000, .tv_nsec = (useconds % 1000000) * 1000}; in usleep()
|
| A D | sleep.c | 5 struct timespec tv = {.tv_sec = seconds, .tv_nsec = 0}; in sleep()
|
| /third_party/ulib/musl/include/sys/ |
| A D | stat.h | 88 int futimens(int, const struct timespec[2]); 89 int utimensat(int, const char*, const struct timespec[2], int);
|