Searched refs:timespec (Results 1 - 25 of 48) sorted by relevance

12

/bionic/libc/private/
H A Dbionic_time_conversions.h37 __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 Dbionic_futex.h40 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 Dbionic_time_conversions.cpp31 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 Dfutimens.cpp32 int futimens(int fd, const struct timespec times[2]) {
H A Dpoll.cpp35 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 Dutimes.cpp36 timespec ts[2];
37 timespec* ts_ptr = NULL;
H A Dclock.cpp37 timespec ts;
H A Dpthread_rwlock.cpp72 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 Dpthread_cond.cpp152 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 Dsigwait.cpp36 extern "C" int __rt_sigtimedwait(const sigset_t* uthese, siginfo_t* uinfo, const struct timespec* uts, size_t sigsetsize);
H A Dvdso.cpp34 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 Dpthread_internal.h120 __LIBC_HIDDEN__ int __timespec_from_absolute(timespec*, const timespec*, clockid_t);
H A Dpthread_internals.cpp73 int __timespec_from_absolute(timespec* ts, const timespec* abstime, clockid_t clock) {
/bionic/libc/kernel/uapi/linux/
H A Dtime.h25 struct timespec { struct
46 struct timespec it_interval;
47 struct timespec it_value;
H A Dandroid_alarm.h50 #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 Dsemaphore.h56 struct timespec;
57 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
H A Dpoll.h35 #include <time.h> /* For timespec. */
42 extern int ppoll(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*);
H A Dtime.h63 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 Dpthread.h174 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 Deventlib.h60 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 Dev_timers.c58 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 Dsleep.c46 struct timespec time_to_sleep;
47 struct timespec time_remaining;
H A Dusleep.c44 struct timespec time_to_sleep;
/bionic/benchmarks/
H A Dtime_benchmark.cpp25 timespec t;
37 timespec t;
/bionic/tests/
H A Dsys_stat_test.cpp33 timespec times[2];
49 timespec times[2];

Completed in 382 milliseconds

12