Searched refs:ts (Results 1 – 10 of 10) sorted by relevance
/bionic/libc/unistd/ |
D | usleep.c | 33 struct timespec ts; in usleep() local 35 ts.tv_sec = usec/1000000UL; in usleep() 39 ts.tv_nsec = (usec - ts.tv_sec*1000000UL)*1000; in usleep() 41 ts.tv_nsec = (usec % 1000000UL) * 1000UL; in usleep() 46 if ( nanosleep( &ts, &ts ) == 0 ) in usleep()
|
/bionic/libc/string/ |
D | strtotimeval.c | 33 char * strtotimeval (const char *str, struct timeval *ts) in strtotimeval() argument 39 ts->tv_sec = strtoumax(str, &s, 10); in strtotimeval() 61 ts->tv_usec = fs; in strtotimeval()
|
/bionic/libc/bionic/ |
D | semaphore.c | 299 struct timespec ts; in sem_timedwait() local 303 clock_gettime( CLOCK_REALTIME, &ts ); in sem_timedwait() 304 ts.tv_sec = abs_timeout->tv_sec - ts.tv_sec; in sem_timedwait() 305 ts.tv_nsec = abs_timeout->tv_nsec - ts.tv_nsec; in sem_timedwait() 306 if (ts.tv_nsec < 0) { in sem_timedwait() 307 ts.tv_nsec += 1000000000; in sem_timedwait() 308 ts.tv_sec -= 1; in sem_timedwait() 311 if (ts.tv_sec < 0 || ts.tv_nsec < 0) { in sem_timedwait() 324 ret = __futex_wait_ex(&sem->count, shared, shared|SEMCOUNT_MINUS_ONE, &ts); in sem_timedwait()
|
D | pthread.c | 1402 __timespec_to_absolute(struct timespec* ts, const struct timespec* abstime, clockid_t clock) in __timespec_to_absolute() argument 1404 clock_gettime(clock, ts); in __timespec_to_absolute() 1405 ts->tv_sec = abstime->tv_sec - ts->tv_sec; in __timespec_to_absolute() 1406 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec; in __timespec_to_absolute() 1407 if (ts->tv_nsec < 0) { in __timespec_to_absolute() 1408 ts->tv_sec--; in __timespec_to_absolute() 1409 ts->tv_nsec += 1000000000; in __timespec_to_absolute() 1411 if ((ts->tv_nsec < 0) || (ts->tv_sec < 0)) in __timespec_to_absolute() 1437 struct timespec ts; in pthread_mutex_lock_timeout_np_impl() local 1465 if (__timespec_to_absolute(&ts, &abstime, clock) < 0) in pthread_mutex_lock_timeout_np_impl() [all …]
|
/bionic/libc/kernel/common/linux/ |
D | ktime.h | 57 #define ktime_get_real_ts(ts) getnstimeofday(ts) argument
|
/bionic/libc/netbsd/isc/ |
D | ev_timers.c | 157 struct timespec ts; in evTimeSpec() local 159 ts.tv_sec = tv.tv_sec; in evTimeSpec() 160 ts.tv_nsec = tv.tv_usec * 1000; in evTimeSpec() 161 return (ts); in evTimeSpec() 165 evTimeVal(struct timespec ts) { in evTimeVal() argument 168 tv.tv_sec = ts.tv_sec; in evTimeVal() 169 tv.tv_usec = ts.tv_nsec / 1000; in evTimeVal()
|
/bionic/libc/tzcode/ |
D | localtime.c | 654 struct state ts; local 658 result = tzparse(&u.buf[1], &ts, FALSE); 659 if (result == 0 && ts.typecnt == 2 && 660 sp->charcnt + ts.charcnt <= TZ_MAX_CHARS) { 662 ts.ttis[i].tt_abbrind += 664 for (i = 0; i < ts.charcnt; ++i) 666 ts.chars[i]; 668 while (i < ts.timecnt && 669 ts.ats[i] <= 672 while (i < ts.timecnt && [all …]
|
/bionic/libc/include/ |
D | pthread.h | 170 int pthread_mutex_timedlock(pthread_mutex_t *mutex, struct timespec* ts);
|
/bionic/libc/netbsd/resolv/ |
D | res_cache.c | 1253 struct timespec ts = {0,0}; in _cache_check_pending_request_locked() local 1254 ts.tv_sec = _time_now() + PENDING_REQUEST_TIMEOUT; in _cache_check_pending_request_locked() 1255 int rv = pthread_cond_timedwait(&ri->cond, &cache->lock, &ts); in _cache_check_pending_request_locked()
|
/bionic/libc/kernel/common/media/ |
D | msm_camera.h | 582 struct timespec ts; member
|