Home
last modified time | relevance | path

Searched refs:timespec (Results 1 – 25 of 79) sorted by relevance

1234

/bionic/libc/private/
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 monotonic_time_from_realtime_time(timespec& monotonic_time,
46 const timespec& realtime_time);
50 static inline int check_timespec(const timespec* ts, bool null_allowed) { in check_timespec()
66 static inline void absolute_timespec_from_timespec(timespec& abs_ts, const timespec& ts, clockid_t … in absolute_timespec_from_timespec()
Dbionic_futex.h39 struct timespec;
42 const timespec* timeout, int bitset) { in __futex()
61 static inline int __futex_wait(volatile void* ftx, int value, const timespec* timeout) { in __futex_wait()
71 bool use_realtime_clock, const timespec* abs_timeout);
78 const timespec* abs_timeout);
Dbionic_vdso.h46 extern "C" int __clock_gettime(int, timespec*);
47 extern "C" int __clock_getres(int, timespec*);
/bionic/libc/upstream-netbsd/lib/libc/include/isc/
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 evNowTime __P((void));
170 struct timespec evUTCTime __P((void));
171 struct timespec evLastEventTime __P((evContext));
172 struct timespec evTimeSpec __P((struct timeval));
173 struct timeval evTimeVal __P((struct timespec));
174 int evCmpTime __P((struct timespec, struct timespec));
[all …]
/bionic/libc/bionic/
Dpoll.cpp38 extern "C" int __ppoll(pollfd*, unsigned int, timespec*, const sigset64_t*, size_t);
39 extern "C" int __pselect6(int, fd_set*, fd_set*, fd_set*, timespec*, void*);
42 timespec ts; in poll()
43 timespec* ts_ptr = nullptr; in poll()
51 int ppoll(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset_t* ss) { in ppoll()
63 int ppoll64(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset64_t* ss) { in ppoll64()
65 timespec mutable_ts; in ppoll64()
66 timespec* mutable_ts_ptr = nullptr; in ppoll64()
83 timespec ts; in select()
84 timespec* ts_ptr = nullptr; in select()
[all …]
Dbionic_time_conversions.cpp33 bool timespec_from_timeval(timespec& ts, const timeval& tv) { in timespec_from_timeval()
45 void timespec_from_ms(timespec& ts, const int ms) { in timespec_from_ms()
50 void timeval_from_timespec(timeval& tv, const timespec& ts) { in timeval_from_timespec()
55 void monotonic_time_from_realtime_time(timespec& monotonic_time, const timespec& realtime_time) { in monotonic_time_from_realtime_time()
58 timespec cur_monotonic_time; in monotonic_time_from_realtime_time()
60 timespec cur_realtime_time; in monotonic_time_from_realtime_time()
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) { in clock_nanosleep()
Dbionic_futex.cpp37 const timespec* abs_timeout, int bitset) { in FutexWithTimeout()
38 const timespec* futex_abs_timeout = abs_timeout; in FutexWithTimeout()
49 timespec converted_monotonic_abs_timeout; in FutexWithTimeout()
62 const timespec* abs_timeout) { in __futex_wait_ex()
68 const timespec* abs_timeout) { in __futex_pi_lock_ex()
Dpthread_cond.cpp185 bool use_realtime_clock, const timespec* abs_timeout_or_null) { in __pthread_cond_timedwait()
227 const timespec *abstime) { in pthread_cond_timedwait()
235 const timespec* abs_timeout) { in pthread_cond_timedwait_monotonic_np()
240 const struct timespec* abs_timeout) { in pthread_cond_clockwait()
255 const timespec* abs_timeout) { in pthread_cond_timedwait_monotonic()
263 const timespec* rel_timeout) { in pthread_cond_timedwait_relative_np()
264 timespec ts; in pthread_cond_timedwait_relative_np()
265 timespec* abs_timeout = nullptr; in pthread_cond_timedwait_relative_np()
275 timespec ts; in pthread_cond_timeout_np()
/bionic/libc/upstream-netbsd/lib/libc/isc/
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; in evConsTime()
82 struct timespec
83 evAddTime(struct timespec addend1, struct timespec addend2) { in evAddTime()
84 struct timespec x; in evAddTime()
95 struct timespec
96 evSubTime(struct timespec minuend, struct timespec subtrahend) { in evSubTime()
[all …]
/bionic/benchmarks/
Dtime_benchmark.cpp27 timespec t; in BM_time_clock_gettime()
36 timespec t; in BM_time_clock_gettime_syscall()
45 timespec t; in BM_time_clock_gettime_MONOTONIC_COARSE()
54 timespec t; in BM_time_clock_gettime_MONOTONIC_RAW()
63 timespec t; in BM_time_clock_gettime_REALTIME()
72 timespec t; in BM_time_clock_gettime_REALTIME_COARSE()
81 timespec t; in BM_time_clock_gettime_BOOTTIME()
90 timespec t; in BM_time_clock_getres()
99 timespec t; in BM_time_clock_getres_syscall()
108 timespec t; in BM_time_clock_getres_MONOTONIC_COARSE()
[all …]
/bionic/tests/headers/posix/
Dtime_h.c58 TYPE(struct timespec); in time_h()
59 STRUCT_MEMBER(struct timespec, time_t, tv_sec); in time_h()
60 STRUCT_MEMBER(struct timespec, long, tv_nsec); in time_h()
63 STRUCT_MEMBER(struct itimerspec, struct timespec, it_interval); in time_h()
64 STRUCT_MEMBER(struct itimerspec, struct timespec, it_value); in time_h()
80 FUNCTION(clock_getres, int (*f)(clockid_t, struct timespec*)); in time_h()
81 FUNCTION(clock_gettime, int (*f)(clockid_t, struct timespec*)); in time_h()
82 FUNCTION(clock_nanosleep, int (*f)(clockid_t, int, const struct timespec*, struct timespec*)); in time_h()
83 FUNCTION(clock_settime, int (*f)(clockid_t, const struct timespec*)); in time_h()
95 FUNCTION(nanosleep, int (*f)(const struct timespec*, struct timespec*)); in time_h()
Dsched_h.c38 TYPE(struct timespec); in sched_h()
44 STRUCT_MEMBER(struct sched_param, struct timespec, sched_ss_repl_period); in sched_h()
45 STRUCT_MEMBER(struct sched_param, struct timespec, sched_ss_init_budget); in sched_h()
60 FUNCTION(sched_rr_get_interval, int (*f)(pid_t, struct timespec*)); in sched_h()
Dsys_stat_h.c68 STRUCT_MEMBER(struct stat, struct timespec, st_atim); in sys_stat_h()
69 STRUCT_MEMBER(struct stat, struct timespec, st_mtim); in sys_stat_h()
70 STRUCT_MEMBER(struct stat, struct timespec, st_ctim); in sys_stat_h()
103 TYPE(struct timespec); in sys_stat_h()
142 FUNCTION(futimens, int (*f)(int, const struct timespec[2])); in sys_stat_h()
153 FUNCTION(utimensat, int (*f)(int, const char*, const struct timespec[2], int)); in sys_stat_h()
Dthreads_h.c60 FUNCTION(cnd_timedwait, int (*f)(cnd_t*, mtx_t*, const struct timespec*)); in threads_h()
66 FUNCTION(mtx_timedlock, int (*f)(mtx_t*, const struct timespec*)); in threads_h()
76 FUNCTION(thrd_sleep, int (*f)(const struct timespec*, struct timespec*)); in threads_h()
Dsys_select_h.c42 TYPE(struct timespec); in sys_select_h()
60 …FUNCTION(pselect, int (*f)(int, fd_set*, fd_set*, fd_set*, const struct timespec*, const sigset_t*… in sys_select_h()
/bionic/libc/include/sys/
Dstat.h57 struct timespec st_atim; \
58 struct timespec st_mtim; \
59 struct timespec st_ctim; \
76 struct timespec st_atim; \
77 struct timespec st_mtim; \
78 struct timespec st_ctim; \
95 struct timespec st_atim; \
96 struct timespec st_mtim; \
97 struct timespec st_ctim; \
173 int utimensat(int __dir_fd, const char* __path, const struct timespec __times[2], int __flags);
[all …]
/bionic/libc/include/
Dtime.h63 int nanosleep(const struct timespec* __request, struct timespec* __remainder);
96 int clock_getres(clockid_t __clock, struct timespec* __resolution);
97 int clock_gettime(clockid_t __clock, struct timespec* __ts);
98 …ck_nanosleep(clockid_t __clock, int __flags, const struct timespec* __request, struct timespec* __…
99 int clock_settime(clockid_t __clock, const struct timespec* __ts);
112 int timespec_get(struct timespec* __ts, int __base) __INTRODUCED_IN(29);
Dsemaphore.h37 struct timespec;
48 int sem_clockwait(sem_t* __sem, clockid_t __clock, const struct timespec* __ts) __INTRODUCED_IN(30);
53 int sem_timedwait(sem_t* __sem, const struct timespec* __ts);
62 int sem_timedwait_monotonic_np(sem_t* __sem, const struct timespec* __ts) __INTRODUCED_IN(28);
Dpthread.h125 const struct timespec* __timeout) __INTRODUCED_IN(30);
129 int pthread_cond_timedwait(pthread_cond_t* __cond, pthread_mutex_t* __mutex, const struct timespec*…
141 const struct timespec* __timeout) __INTRODUCED_IN_64(28);
189 const struct timespec* __abstime) __INTRODUCED_IN(30);
193 int pthread_mutex_timedlock(pthread_mutex_t* __mutex, const struct timespec* __timeout)
205 int pthread_mutex_timedlock_monotonic_np(pthread_mutex_t* __mutex, const struct timespec* __timeout)
224 …ative_np(pthread_cond_t* __cond, pthread_mutex_t* __mutex, const struct timespec* __relative_timeo…
238 const struct timespec* __timeout) __INTRODUCED_IN(30);
240 const struct timespec* __timeout) __INTRODUCED_IN(30);
244 int pthread_rwlock_timedrdlock(pthread_rwlock_t* __rwlock, const struct timespec* __timeout);
[all …]
Dthreads.h112 int cnd_timedwait(cnd_t* __cond, mtx_t* __mutex, const struct timespec* __timeout)
140 int mtx_timedlock(mtx_t* __mutex, const struct timespec* __timeout) __INTRODUCED_IN(30);
193 int thrd_sleep(const struct timespec* __duration, struct timespec* __remaining) __INTRODUCED_IN(30);
Dpoll.h64 int ppoll(struct pollfd* _Nullable __fds, nfds_t __count, const struct timespec* _Nullable __timeou…
69 int ppoll64(struct pollfd* _Nullable __fds, nfds_t __count, const struct timespec* _Nullable __tim…
/bionic/libc/kernel/uapi/linux/
Dtime.h25 struct timespec { struct
35 struct timespec it_interval; argument
36 struct timespec it_value;
/bionic/libc/include/bits/fortify/
Dpoll.h34 int __ppoll_chk(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*, size_t) __INTRODUC…
35 int __ppoll64_chk(struct pollfd*, nfds_t, const struct timespec*, const sigset64_t*, size_t) __INTR…
59 int ppoll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* time… in ppoll()
76 int ppoll64(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* ti… in ppoll64()
/bionic/tests/
Dpoll_test.cpp44 timespec ts = { .tv_nsec = 100 }; in TEST()
53 timespec ts = { .tv_nsec = 100 }; in TEST()

1234