/third_party/musl/porting/linux/user/src/internal/ |
H A D | pthread_impl.h | 218 hidden int __timedwait(volatile int *, int, clockid_t, const struct timespec *, int); 219 hidden int __timedwait_cp(volatile int *, int, clockid_t, const struct timespec *, int); 237 static inline void __timespec_from_ms(struct timespec* ts, const unsigned ms) in __timespec_from_ms() 247 static inline void __absolute_timespec_from_timespec(struct timespec *abs_ts, in __absolute_timespec_from_timespec() 248 const struct timespec *ts, clockid_t clock) in __absolute_timespec_from_timespec()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | core-rtclock.c | 81 struct timespec ts; in pa_rtclock_get() 130 struct timespec ts; in pa_rtclock_hrtimer() 207 pa_usec_t pa_timespec_load(const struct timespec *ts) { in pa_timespec_load() 217 struct timespec* pa_timespec_store(struct timespec *ts, pa_usec_t v) { in pa_timespec_store()
|
/third_party/musl/src/thread/ |
H A D | pthread_cond_timeout_np.c | 20 struct timespec ts; in pthread_cond_timeout_np() 22 struct timespec abs_timeout; in pthread_cond_timeout_np()
|
H A D | sem_timedwait.c | 10 int __sem_timedwait(sem_t *restrict sem, const struct timespec *restrict at) in __sem_timedwait() 31 int sem_timedwait(sem_t *restrict sem, const struct timespec *restrict at) in sem_timedwait()
|
/third_party/musl/porting/linux/user/src/thread/ |
H A D | pthread_cond_timeout_np.c | 20 struct timespec ts; in pthread_cond_timeout_np() 22 struct timespec abs_timeout; in pthread_cond_timeout_np()
|
H A D | sem_timedwait.c | 8 int __sem_timedwait(sem_t *restrict sem, const struct timespec *restrict at) in __sem_timedwait() 27 int sem_timedwait(sem_t *restrict sem, const struct timespec *restrict at) in sem_timedwait()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_pthread.cpp | 131 struct timespec ts = {.tv_sec = 1, .tv_nsec = 0}; in Bm_function_pthread_mutex_timedlock_fast() 147 struct timespec ts = {.tv_sec = 1, .tv_nsec = 0}; in Bm_function_pthread_mutex_timedlock_errchk() 164 struct timespec ts = {.tv_sec = 1, .tv_nsec = 0}; in Bm_function_pthread_mutex_timedlock_rec() 181 struct timespec ts = {.tv_sec = 1, .tv_nsec = 0}; in Bm_function_pthread_mutex_timedlock_pi_fast() 198 struct timespec ts = {.tv_sec = 1, .tv_nsec = 0}; in Bm_function_pthread_mutex_timedlock_pi_errchk() 215 struct timespec ts = {.tv_sec = 1, .tv_nsec = 0}; in Bm_function_pthread_mutex_timedlock_pi_rec() 346 struct timespec tout; in Bm_function_pthread_rwlock_timedrdlock() 364 struct timespec tout; in Bm_function_pthread_rwlock_timedwrlock() 386 struct timespec ts; in Bm_function_pthread_cond_timedwait() 450 struct timespec spe in Bm_function_Sem_timewait() [all...] |
/third_party/toybox/toys/net/ |
H A D | sntp.c | 42 // Get time and return ntptime (saving timespec in pointer if not null) 46 static unsigned long long lunchtime(struct timespec *television, long long diff) in lunchtime() 48 struct timespec tv; in lunchtime() 61 // convert ntptime back to struct timespec. 62 static void doublyso(unsigned long long now, struct timespec *tv) in doublyso() 72 struct timespec tv, tv2; in sntp_main()
|
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
H A D | adaptor_time.c | 26 struct timespec curTime; in GetRtcTime() 37 struct timespec curTime; in GetSystemTime()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | __ppoll_time64.c | 22 extern int __ppoll_time64(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *); 31 struct timespec timeout; in ppoll_time64_0300()
|
/third_party/musl/compat/time32/ |
H A D | clock_nanosleep_time32.c | 7 struct timespec rem; in __clock_nanosleep_time32() 8 int ret = clock_nanosleep(clk, flags, (&(struct timespec){ in __clock_nanosleep_time32()
|
H A D | nanosleep_time32.c | 7 struct timespec rem; in __nanosleep_time32() 8 int ret = nanosleep((&(struct timespec){ in __nanosleep_time32()
|
H A D | thrd_sleep_time32.c | 8 struct timespec rem; in __thrd_sleep_time32() 9 int ret = thrd_sleep((&(struct timespec){ in __thrd_sleep_time32()
|
/third_party/musl/libc-test/src/functional/ |
H A D | clock_gettime.c | 9 extern int __clock_gettime64(clockid_t, struct timespec *); 13 struct timespec ts; in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | sleep.c | 28 struct timespec old_time; in sleep_0100() 31 struct timespec new_time; in sleep_0100()
|
H A D | usleep.c | 28 struct timespec old_time; in usleep_0100() 31 struct timespec new_time; in usleep_0100()
|
/kernel/liteos_m/testsuites/unittest/xts/ipc/semaphone/ |
H A D | sem_test.c | 129 struct timespec req; 166 struct timespec req; in ThreadNThreadWait1() 185 struct timespec req; in ThreadNThreadWait2() 209 struct timespec req; 304 struct timespec ts; 325 struct timespec ts;
|
/third_party/rust/crates/nix/src/ |
H A D | time.rs | 56 /// Sets time to `timespec` on the clock id 64 pub fn set_time(self, timespec: TimeSpec) -> Result<()> { in set_time() 65 clock_settime(self, timespec) in set_time() 228 let mut c_time: MaybeUninit<libc::timespec> = MaybeUninit::uninit(); in clock_getres() 239 let mut c_time: MaybeUninit<libc::timespec> = MaybeUninit::uninit(); in clock_gettime() 256 pub fn clock_settime(clock_id: ClockId, timespec: TimeSpec) -> Result<()> { in clock_settime() 258 unsafe { libc::clock_settime(clock_id.as_raw(), timespec.as_ref()) }; in clock_settime()
|
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/ |
H A D | mq_test.c | 97 struct timespec tts = { 0 }; 98 struct timespec rts = { 0 }; 193 struct timespec tts = { 0 }; 194 struct timespec rts = { 0 }; 305 struct timespec tts = { 0 }; in PthreadTimedCom() 306 struct timespec rts = { 0 }; in PthreadTimedCom() 340 struct timespec tts = { 0 }; 341 struct timespec rts = { 0 }; 386 struct timespec tts = { 0 }; in PthreadAllCom() 387 struct timespec rt in PthreadAllCom() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/ |
H A D | demand_paging_test.c | 51 struct timespec start; in vcpu_worker() 52 struct timespec ts_diff; in vcpu_worker() 78 struct timespec start; in handle_uffd_page_request() 79 struct timespec ts_diff; in handle_uffd_page_request() 124 struct timespec start; in uffd_handler_thread_fn() 125 struct timespec ts_diff; in uffd_handler_thread_fn() 257 struct timespec start; in run_test() 258 struct timespec ts_diff; in run_test()
|
/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | adaptor_time.c | 27 struct timespec curTime; in GetRtcTime() 38 struct timespec curTime; in GetSystemTime()
|
/kernel/linux/linux-6.6/tools/perf/trace/beauty/ |
H A D | timespec.c | 10 struct timespec *ts = (struct timespec *)arg->augmented.args; in syscall_arg__scnprintf_augmented_timespec()
|
/kernel/linux/linux-6.6/tools/thermal/lib/ |
H A D | uptimeofday.c | 32 struct timespec msec_to_timespec(int msec) in msec_to_timespec() 34 struct timespec tv = { in msec_to_timespec()
|
/third_party/glfw/src/ |
H A D | posix_time.c | 46 struct timespec ts; in _glfwPlatformInitTimer() 54 struct timespec ts; in _glfwPlatformGetTimerValue()
|
/third_party/mesa3d/src/c11/impl/ |
H A D | time.c | 43 timespec_get(struct timespec *ts, int base) in timespec_get() 72 timespec_get(struct timespec *ts, int base) in timespec_get()
|