Home
last modified time | relevance | path

Searched refs:clockid_t (Results 1 – 25 of 185) sorted by relevance

12345678

/third_party/musl/porting/linux/user/src/time/
Dclock_gettime.c28 static int cgt_time32_wrap(clockid_t clk, struct timespec *ts) in cgt_time32_wrap()
31 int (*f)(clockid_t, long[2]) = in cgt_time32_wrap()
32 (int (*)(clockid_t, long[2]))vdso_func_32; in cgt_time32_wrap()
49 static int cgt_init(clockid_t clk, struct timespec *ts) in cgt_init()
62 int (*f)(clockid_t, struct timespec *) = in cgt_init()
63 (int (*)(clockid_t, struct timespec *))p; in cgt_init()
72 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime()
77 int (*f)(clockid_t, struct timespec *) = in __clock_gettime()
78 (int (*)(clockid_t, struct timespec *))vdso_func; in __clock_gettime()
Dclock_getres.c26 static int cgr_init(clockid_t clk, struct timespec *ts) in cgr_init()
30 int (*f)(clockid_t, struct timespec *) = in cgr_init()
31 (int (*)(clockid_t, struct timespec *))p; in cgr_init()
40 int clock_getres(clockid_t clk, struct timespec *ts) in clock_getres()
44 int (*f)(clockid_t, struct timespec *) = in clock_getres()
45 (int (*)(clockid_t, struct timespec *))vdso_cgr; in clock_getres()
/third_party/musl/src/time/
Dclock_gettime.c13 static int cgt_time32_wrap(clockid_t clk, struct timespec *ts) in cgt_time32_wrap()
16 int (*f)(clockid_t, long[2]) = in cgt_time32_wrap()
17 (int (*)(clockid_t, long[2]))vdso_func_32; in cgt_time32_wrap()
34 static int cgt_init(clockid_t clk, struct timespec *ts) in cgt_init()
46 int (*f)(clockid_t, struct timespec *) = in cgt_init()
47 (int (*)(clockid_t, struct timespec *))p; in cgt_init()
56 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime()
61 int (*f)(clockid_t, struct timespec *) = in __clock_gettime()
62 (int (*)(clockid_t, struct timespec *))vdso_func; in __clock_gettime()
Dclock_getcpuclockid.c6 int clock_getcpuclockid(pid_t pid, clockid_t *clk) in clock_getcpuclockid()
9 clockid_t id = (-pid-1)*8U + 2; in clock_getcpuclockid()
/third_party/musl/libc-test/src/api/
Dtime.c11 T(clockid_t) in f()
57 {int(*p)(pid_t,clockid_t*) = clock_getcpuclockid;} in f()
58 {int(*p)(clockid_t,struct timespec*) = clock_getres;} in f()
59 {int(*p)(clockid_t,struct timespec*) = clock_gettime;} in f()
60 {int(*p)(clockid_t,int,const struct timespec*,struct timespec*) = clock_nanosleep;} in f()
61 {int(*p)(clockid_t,const struct timespec*) = clock_settime;} in f()
67 {int(*p)(clockid_t,struct sigevent*restrict,timer_t*restrict) = timer_create;} in f()
/third_party/ltp/include/
Dtst_clocks.h12 int tst_clock_getres(clockid_t clk_id, struct timespec *res);
14 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts);
16 int tst_clock_settime(clockid_t clk_id, struct timespec *ts);
21 const char *tst_clock_name(clockid_t clk_id);
Dtst_timer.h197 static inline int libc_clock_getres(clockid_t clk_id, void *ts) in libc_clock_getres()
202 static inline int sys_clock_getres(clockid_t clk_id, void *ts) in sys_clock_getres()
207 static inline int sys_clock_getres64(clockid_t clk_id, void *ts) in sys_clock_getres64()
212 static inline int libc_clock_gettime(clockid_t clk_id, void *ts) in libc_clock_gettime()
217 static inline int sys_clock_gettime(clockid_t clk_id, void *ts) in sys_clock_gettime()
222 static inline int sys_clock_gettime64(clockid_t clk_id, void *ts) in sys_clock_gettime64()
227 static inline int libc_clock_settime(clockid_t clk_id, void *ts) in libc_clock_settime()
232 static inline int sys_clock_settime(clockid_t clk_id, void *ts) in sys_clock_settime()
237 static inline int sys_clock_settime64(clockid_t clk_id, void *ts) in sys_clock_settime64()
242 static inline int libc_clock_nanosleep(clockid_t clk_id, int flags, in libc_clock_nanosleep()
[all …]
Dtime64_variants.h32 int (*clock_gettime)(clockid_t clk_id, void *ts);
33 int (*clock_settime)(clockid_t clk_id, void *ts);
34 int (*clock_nanosleep)(clockid_t clock_id, int flags, void *request, void *remain);
Dtst_safe_clocks.h19 clockid_t clk_id, struct timespec *res) in safe_clock_getres()
38 clockid_t clk_id, struct timespec *tp) in safe_clock_gettime()
58 clockid_t clk_id, struct timespec *tp) in safe_clock_settime()
77 clockid_t clockid, struct sigevent *sevp, timer_t *timerid) in safe_timer_create()
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dtime.h90 int clock_getres(clockid_t, struct timespec *);
91 int clock_gettime(clockid_t, struct timespec *);
92 int clock_settime(clockid_t, const struct timespec *);
93 int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
96 int timer_create(clockid_t, struct sigevent *__restrict, timer_t *__restrict);
/third_party/musl/porting/uniproton/kernel/include/
Dtime.h102 int clock_getres (clockid_t, struct timespec *);
103 int clock_gettime (clockid_t, struct timespec *);
104 int clock_settime (clockid_t, const struct timespec *);
105 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
106 int clock_getcpuclockid (pid_t, clockid_t *);
109 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict);
/third_party/musl/porting/liteos_m/user/include/
Dtime.h101 int clock_getres (clockid_t, struct timespec *);
102 int clock_gettime (clockid_t, struct timespec *);
103 int clock_settime (clockid_t, const struct timespec *);
104 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
105 int clock_getcpuclockid (pid_t, clockid_t *);
108 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict);
Dusr_lib_ops.h79 int (*pthread_condattr_setclock)(pthread_condattr_t *attr, clockid_t clk);
93 … int (*timer_create)(clockid_t clockID, struct sigevent *restrict evp, timer_t *restrict timerID);
98 int (*clock_settime)(clockid_t clockID, const struct timespec *tp);
99 int (*clock_gettime)(clockid_t clockID, struct timespec *tp);
100 int (*clock_getres)(clockid_t clockID, struct timespec *tp);
101 …int (*clock_nanosleep)(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem);
/third_party/musl/include/
Dtime.h101 int clock_getres (clockid_t, struct timespec *);
102 int clock_gettime (clockid_t, struct timespec *);
103 int clock_settime (clockid_t, const struct timespec *);
104 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
105 int clock_getcpuclockid (pid_t, clockid_t *);
108 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict);
/third_party/musl/porting/liteos_m/kernel/include/
Dtime.h102 int clock_getres (clockid_t, struct timespec *);
103 int clock_gettime (clockid_t, struct timespec *);
104 int clock_settime (clockid_t, const struct timespec *);
105 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
106 int clock_getcpuclockid (pid_t, clockid_t *);
109 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict);
/third_party/musl/ndk_musl_include/
Dtime.h101 int clock_getres (clockid_t, struct timespec *);
102 int clock_gettime (clockid_t, struct timespec *);
103 int clock_settime (clockid_t, const struct timespec *);
104 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
105 int clock_getcpuclockid (pid_t, clockid_t *);
108 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict);
Dpthread.h145 int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, const struct timespec *__restri…
192 clockid_t, const struct timespec *__restrict);
245 int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
297 int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
345 int pthread_condattr_setclock(pthread_condattr_t *, clockid_t);
347 int pthread_condattr_getclock(const pthread_condattr_t *__restrict, clockid_t *__restrict);
362 int pthread_getcpuclockid(pthread_t, clockid_t *);
/third_party/musl/porting/liteos_a/kernel/include/
Dtime.h115 int clock_getres (clockid_t, struct timespec *);
116 int clock_gettime (clockid_t, struct timespec *);
117 int clock_settime (clockid_t, const struct timespec *);
118 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
119 int clock_getcpuclockid (pid_t, clockid_t *);
122 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict);
/third_party/ltp/lib/
Dtst_clocks.c15 typedef int (*mysyscall)(clockid_t clk_id, void *ts);
28 int tst_clock_getres(clockid_t clk_id, struct timespec *res) in tst_clock_getres()
58 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts) in tst_clock_gettime()
88 int tst_clock_settime(clockid_t clk_id, struct timespec *ts) in tst_clock_settime()
116 const char *tst_clock_name(clockid_t clk_id) in tst_clock_name()
Dtst_timer.c16 static clockid_t clock_id;
18 void tst_timer_check(clockid_t clk_id) in tst_timer_check()
32 void tst_timer_start(clockid_t clk_id) in tst_timer_start()
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/
Dclock_gettime04.c28 clockid_t clks[] = {
40 static inline int do_vdso_gettime(gettime_t vdso, clockid_t clk_id, void *ts) in do_vdso_gettime()
50 static inline int vdso_gettime(clockid_t clk_id, void *ts) in vdso_gettime()
55 static inline int vdso_gettime64(clockid_t clk_id, void *ts) in vdso_gettime64()
60 static inline int my_gettimeofday(clockid_t clk_id, void *ts) in my_gettimeofday()
/third_party/musl/porting/linux/user/include/
Dpthread.h151 int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, const struct timespec *__restri…
201 clockid_t, const struct timespec *__restrict);
254 int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
306 int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
358 int pthread_condattr_setclock(pthread_condattr_t *, clockid_t);
360 int pthread_condattr_getclock(const pthread_condattr_t *__restrict, clockid_t *__restrict);
378 int pthread_getcpuclockid(pthread_t, clockid_t *);
/third_party/skia/third_party/externals/oboe/src/common/
DAudioClock.h29 static int64_t getNanoseconds(clockid_t clockId = CLOCK_MONOTONIC) {
46 static int sleepUntilNanoTime(int64_t nanoTime, clockid_t clockId = CLOCK_MONOTONIC) {
62 static int sleepForNanos(int64_t nanoseconds, clockid_t clockId = CLOCK_REALTIME) {
/third_party/musl/porting/liteos_a/kernel/src/include/
Dtime.h6 hidden int __clock_gettime(clockid_t, struct timespec *);
7 hidden int __clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
/third_party/musl/src/include/
Dtime.h6 hidden int __clock_gettime(clockid_t, struct timespec *);
7 hidden int __clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);

12345678