/third_party/musl/porting/linux/user/src/time/ |
D | clock_gettime.c | 30 long ts32[2]; in cgt_time32_wrap() local 33 int r = f(clk, ts32); in cgt_time32_wrap() 38 if (ts32[0] < 0) { in cgt_time32_wrap() 42 ts->tv_sec = ts32[0]; in cgt_time32_wrap() 43 ts->tv_nsec = ts32[1]; in cgt_time32_wrap() 97 long ts32[2]; in __clock_gettime() local 98 r = __syscall(SYS_clock_gettime, clk, ts32); in __clock_gettime() 100 r = __syscall(SYS_gettimeofday, ts32, 0); in __clock_gettime() 101 ts32[1] *= 1000; in __clock_gettime() 104 ts->tv_sec = ts32[0]; in __clock_gettime() [all …]
|
D | clock_getres.c | 56 long ts32[2]; in clock_getres() local 57 r = __syscall(SYS_clock_getres, clk, ts32); in clock_getres() 59 ts->tv_sec = ts32[0]; in clock_getres() 60 ts->tv_nsec = ts32[1]; in clock_getres()
|
/third_party/musl/src/time/ |
D | clock_gettime.c | 15 long ts32[2]; in cgt_time32_wrap() local 18 int r = f(clk, ts32); in cgt_time32_wrap() 23 if (ts32[0] < 0) { in cgt_time32_wrap() 27 ts->tv_sec = ts32[0]; in cgt_time32_wrap() 28 ts->tv_nsec = ts32[1]; in cgt_time32_wrap() 81 long ts32[2]; in __clock_gettime() local 82 r = __syscall(SYS_clock_gettime, clk, ts32); in __clock_gettime() 84 r = __syscall(SYS_gettimeofday, ts32, 0); in __clock_gettime() 85 ts32[1] *= 1000; in __clock_gettime() 88 ts->tv_sec = ts32[0]; in __clock_gettime() [all …]
|
D | clock_nanosleep.c | 21 long ts32[2] = { CLAMP(s), ns }; in __clock_nanosleep() local 23 r = __syscall_cp(SYS_nanosleep, &ts32, &ts32); in __clock_nanosleep() 25 r = __syscall_cp(SYS_clock_nanosleep, clk, flags, &ts32, &ts32); in __clock_nanosleep() 27 rem->tv_sec = ts32[0] + extra; in __clock_nanosleep() 28 rem->tv_nsec = ts32[1]; in __clock_nanosleep()
|
D | clock_getres.c | 9 long ts32[2]; in clock_getres() local 10 int r = __syscall(SYS_clock_getres, clk, ts32); in clock_getres() 12 ts->tv_sec = ts32[0]; in clock_getres() 13 ts->tv_nsec = ts32[1]; in clock_getres()
|
/third_party/musl/compat/time32/ |
D | pthread_rwlock_timedwrlock_time32.c | 5 …ad_rwlock_timedwrlock_time32(pthread_rwlock_t *restrict rw, const struct timespec32 *restrict ts32) in __pthread_rwlock_timedwrlock_time32() argument 7 return pthread_rwlock_timedwrlock(rw, !ts32 ? 0 : (&(struct timespec){ in __pthread_rwlock_timedwrlock_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); in __pthread_rwlock_timedwrlock_time32()
|
D | mtx_timedlock_time32.c | 5 int __mtx_timedlock_time32(mtx_t *restrict m, const struct timespec32 *restrict ts32) in __mtx_timedlock_time32() argument 7 return mtx_timedlock(m, !ts32 ? 0 : (&(struct timespec){ in __mtx_timedlock_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); in __mtx_timedlock_time32()
|
D | sem_timedwait_time32.c | 5 int __sem_timedwait_time32(sem_t *sem, const struct timespec32 *restrict ts32) in __sem_timedwait_time32() argument 7 return sem_timedwait(sem, !ts32 ? 0 : (&(struct timespec){ in __sem_timedwait_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); in __sem_timedwait_time32()
|
D | pthread_mutex_timedlock_time32.c | 5 …pthread_mutex_timedlock_time32(pthread_mutex_t *restrict m, const struct timespec32 *restrict ts32) in __pthread_mutex_timedlock_time32() argument 7 return pthread_mutex_timedlock(m, !ts32 ? 0 : (&(struct timespec){ in __pthread_mutex_timedlock_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); in __pthread_mutex_timedlock_time32()
|
D | pthread_rwlock_timedrdlock_time32.c | 5 …ad_rwlock_timedrdlock_time32(pthread_rwlock_t *restrict rw, const struct timespec32 *restrict ts32) in __pthread_rwlock_timedrdlock_time32() argument 7 return pthread_rwlock_timedrdlock(rw, !ts32 ? 0 : (&(struct timespec){ in __pthread_rwlock_timedrdlock_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); in __pthread_rwlock_timedrdlock_time32()
|
D | cnd_timedwait_time32.c | 5 …_cnd_timedwait_time32(cnd_t *restrict c, mtx_t *restrict m, const struct timespec32 *restrict ts32) in __cnd_timedwait_time32() argument 7 return cnd_timedwait(c, m, ts32 ? (&(struct timespec){ in __cnd_timedwait_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}) : 0); in __cnd_timedwait_time32()
|
D | pthread_cond_timedwait_time32.c | 5 …32(pthread_cond_t *restrict c, pthread_mutex_t *restrict m, const struct timespec32 *restrict ts32) in __pthread_cond_timedwait_time32() argument 7 return pthread_cond_timedwait(c, m, !ts32 ? 0 : (&(struct timespec){ in __pthread_cond_timedwait_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); in __pthread_cond_timedwait_time32()
|
D | sigtimedwait_time32.c | 5 …ime32(const sigset_t *restrict set, siginfo_t *restrict si, const struct timespec32 *restrict ts32) in __sigtimedwait_time32() argument 7 return sigtimedwait(set, si, !ts32 ? 0 : (&(struct timespec){ in __sigtimedwait_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); in __sigtimedwait_time32()
|
D | aio_suspend_time32.c | 5 int __aio_suspend_time32(const struct aiocb *const cbs[], int cnt, const struct timespec32 *ts32) in __aio_suspend_time32() argument 7 return aio_suspend(cbs, cnt, ts32 ? (&(struct timespec){ in __aio_suspend_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}) : 0); in __aio_suspend_time32()
|
D | semtimedop_time32.c | 6 int __semtimedop_time32(int id, struct sembuf *buf, size_t n, const struct timespec32 *ts32) in __semtimedop_time32() argument 8 return semtimedop(id, buf, n, !ts32 ? 0 : (&(struct timespec){ in __semtimedop_time32() 9 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); in __semtimedop_time32()
|
D | clock_getres_time32.c | 4 int __clock_getres_time32(clockid_t clk, struct timespec32 *ts32) in __clock_getres_time32() argument 8 if (!r && ts32) { in __clock_getres_time32() 9 ts32->tv_sec = ts.tv_sec; in __clock_getres_time32() 10 ts32->tv_nsec = ts.tv_nsec; in __clock_getres_time32()
|
D | recvmmsg_time32.c | 6 …e32(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec32 *ts32) in __recvmmsg_time32() argument 8 return recvmmsg(fd, msgvec, vlen, flags, ts32 ? (&(struct timespec){ in __recvmmsg_time32() 9 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}) : 0); in __recvmmsg_time32()
|
D | ppoll_time32.c | 6 int __ppoll_time32(struct pollfd *fds, nfds_t n, const struct timespec32 *ts32, const sigset_t *mas… in __ppoll_time32() argument 8 return ppoll(fds, n, !ts32 ? 0 : (&(struct timespec){ in __ppoll_time32() 9 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}), mask); in __ppoll_time32()
|
D | mq_timedsend_time32.c | 5 …edsend_time32(mqd_t mqd, const char *msg, size_t len, unsigned prio, const struct timespec32 *ts32) in __mq_timedsend_time32() argument 7 return mq_timedsend(mqd, msg, len, prio, ts32 ? (&(struct timespec){ in __mq_timedsend_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}) : 0); in __mq_timedsend_time32()
|
D | mq_timedreceive_time32.c | 5 …d, char *restrict msg, size_t len, unsigned *restrict prio, const struct timespec32 *restrict ts32) in __mq_timedreceive_time32() argument 7 return mq_timedreceive(mqd, msg, len, prio, ts32 ? (&(struct timespec){ in __mq_timedreceive_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}) : 0); in __mq_timedreceive_time32()
|
D | pselect_time32.c | 5 … *restrict wfds, fd_set *restrict efds, const struct timespec32 *restrict ts32, const sigset_t *re… in __pselect_time32() argument 7 return pselect(n, rfds, wfds, efds, !ts32 ? 0 : (&(struct timespec){ in __pselect_time32() 8 .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}), mask); in __pselect_time32()
|
D | clock_settime32.c | 4 int __clock_settime32(clockid_t clk, const struct timespec32 *ts32) in __clock_settime32() argument 7 .tv_sec = ts32->tv_sec, in __clock_settime32() 8 .tv_nsec = ts32->tv_nsec})); in __clock_settime32()
|
D | sched_rr_get_interval_time32.c | 5 int __sched_rr_get_interval_time32(pid_t pid, struct timespec32 *ts32) in __sched_rr_get_interval_time32() argument 10 ts32->tv_sec = ts.tv_sec; in __sched_rr_get_interval_time32() 11 ts32->tv_nsec = ts.tv_nsec; in __sched_rr_get_interval_time32()
|
D | clock_gettime32.c | 6 int __clock_gettime32(clockid_t clk, struct timespec32 *ts32) in __clock_gettime32() argument 15 ts32->tv_sec = ts.tv_sec; in __clock_gettime32() 16 ts32->tv_nsec = ts.tv_nsec; in __clock_gettime32()
|
/third_party/musl/src/sched/ |
D | sched_rr_get_interval.c | 9 long ts32[2]; in sched_rr_get_interval() local 10 int r = __syscall(SYS_sched_rr_get_interval, pid, ts32); in sched_rr_get_interval() 12 ts->tv_sec = ts32[0]; in sched_rr_get_interval() 13 ts->tv_nsec = ts32[1]; in sched_rr_get_interval()
|