Searched refs:ts (Results 1 – 8 of 8) 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/bionic/ |
D | semaphore.c | 147 struct timespec ts; in sem_timedwait() local 151 clock_gettime( CLOCK_REALTIME, &ts ); in sem_timedwait() 152 ts.tv_sec = abs_timeout->tv_sec - ts.tv_sec; in sem_timedwait() 153 ts.tv_nsec = abs_timeout->tv_nsec - ts.tv_nsec; in sem_timedwait() 154 if (ts.tv_nsec < 0) { in sem_timedwait() 155 ts.tv_nsec += 1000000000; in sem_timedwait() 156 ts.tv_sec -= 1; in sem_timedwait() 159 if (ts.tv_sec < 0 || ts.tv_nsec < 0) { in sem_timedwait() 164 ret = __futex_wait(&sem->count, 0, &ts); in sem_timedwait()
|
D | pthread.c | 1177 struct timespec ts; in __pthread_cond_timedwait() local 1181 clock_gettime(clock, &ts); in __pthread_cond_timedwait() 1182 ts.tv_sec = abstime->tv_sec - ts.tv_sec; in __pthread_cond_timedwait() 1183 ts.tv_nsec = abstime->tv_nsec - ts.tv_nsec; in __pthread_cond_timedwait() 1184 if (ts.tv_nsec < 0) { in __pthread_cond_timedwait() 1185 ts.tv_sec--; in __pthread_cond_timedwait() 1186 ts.tv_nsec += 1000000000; in __pthread_cond_timedwait() 1188 if((ts.tv_nsec < 0) || (ts.tv_sec < 0)) { in __pthread_cond_timedwait() 1191 tsp = &ts; in __pthread_cond_timedwait() 1219 struct timespec ts; in pthread_cond_timeout_np() local [all …]
|
/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/kernel/common/linux/ |
D | ktime.h | 50 #define ktime_get_real_ts(ts) getnstimeofday(ts) argument
|
/bionic/libc/netbsd/isc/ |
D | ev_timers.c | 156 struct timespec ts; in evTimeSpec() local 158 ts.tv_sec = tv.tv_sec; in evTimeSpec() 159 ts.tv_nsec = tv.tv_usec * 1000; in evTimeSpec() 160 return (ts); in evTimeSpec() 164 evTimeVal(struct timespec ts) { in evTimeVal() argument 167 tv.tv_sec = ts.tv_sec; in evTimeVal() 168 tv.tv_usec = ts.tv_nsec / 1000; in evTimeVal()
|
/bionic/libc/tzcode/ |
D | localtime.c | 596 struct state ts; local 600 result = tzparse(&u.buf[1], &ts, FALSE); 601 if (result == 0 && ts.typecnt == 2 && 602 sp->charcnt + ts.charcnt <= TZ_MAX_CHARS) { 604 ts.ttis[i].tt_abbrind += 606 for (i = 0; i < ts.charcnt; ++i) 608 ts.chars[i]; 610 while (i < ts.timecnt && 611 ts.ats[i] <= 614 while (i < ts.timecnt && [all …]
|
/bionic/libc/include/ |
D | pthread.h | 166 int pthread_mutex_timedlock(pthread_mutex_t *mutex, struct timespec* ts);
|