/bionic/libc/private/ |
H A D | bionic_time_conversions.h | 37 __LIBC_HIDDEN__ bool timespec_from_timeval(timespec& ts, const timeval& tv); 38 __LIBC_HIDDEN__ void timespec_from_ms(timespec& ts, const int ms); 40 __LIBC_HIDDEN__ void timeval_from_timespec(timeval& tv, const timespec& ts);
|
H A D | bionic_futex.h | 40 struct timespec; 42 static inline __always_inline int __futex(volatile void* ftx, int op, int value, const struct timespec* timeout) { 61 static inline int __futex_wait(volatile void* ftx, int value, const struct timespec* timeout) { 65 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value, const struct timespec* timeout) {
|
/bionic/libc/bionic/ |
H A D | bionic_time_conversions.cpp | 31 bool timespec_from_timeval(timespec& ts, const timeval& tv) { 43 void timespec_from_ms(timespec& ts, const int ms) { 48 void timeval_from_timespec(timeval& tv, const timespec& ts) {
|
H A D | futimens.cpp | 32 int futimens(int fd, const struct timespec times[2]) {
|
H A D | poll.cpp | 35 extern "C" int __ppoll(pollfd*, unsigned int, timespec*, const kernel_sigset_t*, size_t); 36 extern "C" int __pselect6(int, fd_set*, fd_set*, fd_set*, timespec*, void*); 39 timespec ts; 40 timespec* ts_ptr = NULL; 48 int ppoll(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset_t* ss) { 49 timespec mutable_ts; 50 timespec* mutable_ts_ptr = NULL; 67 timespec ts; 68 timespec* ts_ptr = NULL; 84 const timespec* t [all...] |
H A D | utimes.cpp | 36 timespec ts[2]; 37 timespec* ts_ptr = NULL;
|
H A D | clock.cpp | 37 timespec ts;
|
H A D | pthread_rwlock.cpp | 72 static bool timespec_from_absolute(timespec* rel_timeout, const timespec* abs_timeout) { 134 static int __pthread_rwlock_timedrdlock(pthread_rwlock_t* rwlock, const timespec* abs_timeout) { 139 timespec ts; 140 timespec* rel_timeout = (abs_timeout == NULL) ? NULL : &ts; 169 static int __pthread_rwlock_timedwrlock(pthread_rwlock_t* rwlock, const timespec* abs_timeout) { 175 timespec ts; 176 timespec* rel_timeout = (abs_timeout == NULL) ? NULL : &ts; 207 int pthread_rwlock_timedrdlock(pthread_rwlock_t* rwlock, const timespec* abs_timeout) { 224 int pthread_rwlock_timedwrlock(pthread_rwlock_t* rwlock, const timespec* abs_timeou [all...] |
H A D | pthread_cond.cpp | 152 int __pthread_cond_timedwait_relative(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* reltime) { 166 int __pthread_cond_timedwait(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime, clockid_t clock) { 167 timespec ts; 168 timespec* tsp; 194 int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, const timespec *abstime) { 200 extern "C" int pthread_cond_timedwait_monotonic(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime) { 204 extern "C" int pthread_cond_timedwait_monotonic_np(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime) { 208 extern "C" int pthread_cond_timedwait_relative_np(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* reltime) { 213 timespec ts;
|
H A D | sigwait.cpp | 36 extern "C" int __rt_sigtimedwait(const sigset_t* uthese, siginfo_t* uinfo, const struct timespec* uts, size_t sigsetsize);
|
H A D | vdso.cpp | 34 extern "C" int __clock_gettime(int, timespec*); 53 int clock_gettime(int clock_id, timespec* tp) { 54 static int (*vdso_clock_gettime)(int, timespec*) = 55 (int (*)(int, timespec*)) vdso_entries[VDSO_CLOCK_GETTIME].fn;
|
H A D | pthread_internal.h | 120 __LIBC_HIDDEN__ int __timespec_from_absolute(timespec*, const timespec*, clockid_t);
|
H A D | pthread_internals.cpp | 73 int __timespec_from_absolute(timespec* ts, const timespec* abstime, clockid_t clock) {
|
/bionic/libc/kernel/uapi/linux/ |
H A D | time.h | 25 struct timespec { struct 46 struct timespec it_interval; 47 struct timespec it_value;
|
H A D | android_alarm.h | 50 #define ANDROID_ALARM_SET(type) ALARM_IOW(2, type, struct timespec) 51 #define ANDROID_ALARM_SET_AND_WAIT(type) ALARM_IOW(3, type, struct timespec) 52 #define ANDROID_ALARM_GET_TIME(type) ALARM_IOW(4, type, struct timespec) 54 #define ANDROID_ALARM_SET_RTC _IOW('a', 5, struct timespec)
|
/bionic/libc/include/ |
H A D | semaphore.h | 56 struct timespec; 57 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
H A D | poll.h | 35 #include <time.h> /* For timespec. */ 42 extern int ppoll(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*);
|
H A D | time.h | 63 extern int nanosleep(const struct timespec*, struct timespec*) __LIBC_ABI_PUBLIC__; 88 extern int clock_getres(int, struct timespec*) __LIBC_ABI_PUBLIC__; 89 extern int clock_gettime(int, struct timespec*) __LIBC_ABI_PUBLIC__;
|
H A D | pthread.h | 174 int pthread_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, const struct timespec*) __nonnull((1, 2, 3)); 210 int pthread_mutex_timedlock(pthread_mutex_t*, const struct timespec*) __nonnull((1, 2)); 224 int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const struct timespec*) __nonnull((1, 2)); 225 int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const struct timespec*) __nonnull((1, 2)); 273 int pthread_cond_timedwait_monotonic_np(pthread_cond_t*, pthread_mutex_t*, const struct timespec*); 274 int pthread_cond_timedwait_monotonic(pthread_cond_t*, pthread_mutex_t*, const struct timespec*); 276 int pthread_cond_timedwait_relative_np(pthread_cond_t*, pthread_mutex_t*, const struct timespec*) /* TODO: __attribute__((deprecated("use pthread_cond_timedwait instead")))*/;
|
/bionic/libc/upstream-netbsd/lib/libc/include/isc/ |
H A D | eventlib.h | 60 struct timespec, struct timespec)); 166 struct timespec evConsTime __P((time_t sec, long nsec)); 167 struct timespec evAddTime __P((struct timespec, struct timespec)); 168 struct timespec evSubTime __P((struct timespec, struct timespec)); 169 struct timespec evNowTim [all...] |
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
H A D | ev_timers.c | 58 static void idle_timeout(evContext, void *, struct timespec, struct timespec); 65 struct timespec lastTouched; 66 struct timespec max_idle; 73 struct timespec 75 struct timespec x; 82 struct timespec 83 evAddTime(struct timespec addend1, struct timespec addend2) { 84 struct timespec [all...] |
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
H A D | sleep.c | 46 struct timespec time_to_sleep; 47 struct timespec time_remaining;
|
H A D | usleep.c | 44 struct timespec time_to_sleep;
|
/bionic/benchmarks/ |
H A D | time_benchmark.cpp | 25 timespec t; 37 timespec t;
|
/bionic/tests/ |
H A D | sys_stat_test.cpp | 33 timespec times[2]; 49 timespec times[2];
|