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

123

/bionic/libc/bionic/
H A Dclock_nanosleep.cpp33 extern "C" int ___clock_nanosleep(clockid_t, int, const timespec*, timespec*);
35 int clock_nanosleep(clockid_t clock_id, int flags, const timespec* in, timespec* out) {
H A Dfutimens.cpp32 int futimens(int fd, const struct timespec times[2]) {
H A Dsigtimedwait.cpp33 extern "C" int __rt_sigtimedwait(const sigset_t*, siginfo_t*, const timespec*, size_t);
35 int sigtimedwait(const sigset_t* set, siginfo_t* info, const timespec* timeout) {
H A Dbionic_time_conversions.cpp33 bool timespec_from_timeval(timespec& ts, const timeval& tv) {
45 void timespec_from_ms(timespec& ts, const int ms) {
50 void timeval_from_timespec(timeval& tv, const timespec& ts) {
55 void absolute_timespec_from_timespec(timespec& abs_ts, const timespec& ts, clockid_t clock) {
H A Dpoll.cpp37 extern "C" int __ppoll(pollfd*, unsigned int, timespec*, const kernel_sigset_t*, size_t);
38 extern "C" int __pselect6(int, fd_set*, fd_set*, fd_set*, timespec*, void*);
41 timespec ts;
42 timespec* ts_ptr = NULL;
50 int ppoll(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset_t* ss) {
51 timespec mutable_ts;
52 timespec* mutable_ts_ptr = NULL;
69 timespec ts;
70 timespec* ts_ptr = NULL;
86 const timespec* t
[all...]
H A Dutimes.cpp37 timespec ts[2];
38 timespec* ts_ptr = NULL;
H A Dclock.cpp37 timespec ts;
H A Dclock_getcpuclockid.cpp43 timespec ts;
H A Dpthread_cond.cpp174 bool use_realtime_clock, const timespec* abs_timeout_or_null) {
206 const timespec *abstime) {
216 const timespec* abs_timeout) {
223 const timespec* abs_timeout) {
229 const timespec* rel_timeout) {
230 timespec ts;
231 timespec* abs_timeout = nullptr;
241 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);
/bionic/libc/private/
H A Dbionic_time_conversions.h40 __LIBC_HIDDEN__ bool timespec_from_timeval(timespec& ts, const timeval& tv);
41 __LIBC_HIDDEN__ void timespec_from_ms(timespec& ts, const int ms);
43 __LIBC_HIDDEN__ void timeval_from_timespec(timeval& tv, const timespec& ts);
45 __LIBC_HIDDEN__ void absolute_timespec_from_timespec(timespec& abs_ts, const timespec& ts,
50 static inline int check_timespec(const timespec* ts, bool null_allowed) {
54 // glibc just segfaults if you pass a null timespec.
H A Dbionic_futex.h41 struct timespec;
44 const struct timespec* timeout,
64 static inline int __futex_wait(volatile void* ftx, int value, const struct timespec* timeout) {
69 bool use_realtime_clock, const struct timespec* abs_timeout) {
H A Dbionic_vdso.h41 extern "C" int __clock_gettime(int, timespec*);
/bionic/libc/include/bits/
H A Dtimespec.h35 * This file is used to include timespec definition without introducing the whole
40 struct timespec { struct
/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.h47 #define ANDROID_ALARM_SET(type) ALARM_IOW(2, type, struct timespec)
49 #define ANDROID_ALARM_SET_AND_WAIT(type) ALARM_IOW(3, type, struct timespec)
50 #define ANDROID_ALARM_GET_TIME(type) ALARM_IOW(4, type, struct timespec)
51 #define ANDROID_ALARM_SET_RTC _IOW('a', 5, struct timespec)
/bionic/libc/include/
H A Dsemaphore.h36 struct timespec;
51 int sem_timedwait(sem_t*, const struct timespec*);
H A Dtime.h63 extern int nanosleep(const struct timespec*, struct timespec*) __LIBC_ABI_PUBLIC__;
90 extern int clock_getres(clockid_t, struct timespec*) __LIBC_ABI_PUBLIC__;
91 extern int clock_gettime(clockid_t, struct timespec*) __LIBC_ABI_PUBLIC__;
92 extern int clock_nanosleep(clockid_t, int, const struct timespec*, struct timespec*) __LIBC_ABI_PUBLIC__;
93 extern int clock_settime(clockid_t, const struct timespec*) __LIBC_ABI_PUBLIC__;
H A Dpoll.h35 #include <time.h> /* For timespec. */
42 int ppoll(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*);
48 int __ppoll_chk(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*, size_t);
49 int __ppoll_real(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*) __RENAME(ppoll);
71 int ppoll(struct pollfd* fds, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask) {
/bionic/libc/include/sys/
H A Dstat.h32 #include <bits/timespec.h>
53 struct timespec st_atim; \
54 struct timespec st_mtim; \
55 struct timespec st_ctim; \
71 struct timespec st_atim; \
72 struct timespec st_mtim; \
73 struct timespec st_ctim; \
91 struct timespec st_atim; \
92 struct timespec st_mtim; \
93 struct timespec st_cti
[all...]
/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;
33 timespec t;

Completed in 1779 milliseconds

123