Home
last modified time | relevance | path

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

123456789

/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()
/third_party/musl/porting/linux/user/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()
47 int (*f)(clockid_t, struct timespec *) = in cgt_init()
48 (int (*)(clockid_t, struct timespec *))p; in cgt_init()
57 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime()
62 int (*f)(clockid_t, struct timespec *) = in __clock_gettime()
63 (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/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/rust/crates/rustix/src/backend/libc/time/
Dsyscalls.rs26 weak!(fn __clock_gettime64(c::clockid_t, *mut LibcTimespec) -> c::c_int);
31 weak!(fn __clock_getres64(c::clockid_t, *mut LibcTimespec) -> c::c_int);
59 ret(libc_clock_getres(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); in clock_getres()
72 let _ = c::clock_getres(id as c::clockid_t, timespec.as_mut_ptr()); in clock_getres()
85 id as c::clockid_t, in clock_getres_old()
109 id as c::clockid_t, in clock_gettime()
128 ret(c::clock_gettime(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); in clock_gettime()
141 id as c::clockid_t, in clock_gettime_old()
157 let id: c::clockid_t = match id { in clock_gettime_dynamic()
158 DynamicClockId::Known(id) => id as c::clockid_t, in clock_gettime_dynamic()
[all …]
/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/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);
/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/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/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/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.h130 int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, const struct timespec *__restri…
177 clockid_t, const struct timespec *__restrict);
230 int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
282 int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
330 int pthread_condattr_setclock(pthread_condattr_t *, clockid_t);
332 int pthread_condattr_getclock(const pthread_condattr_t *__restrict, clockid_t *__restrict);
347 int pthread_getcpuclockid(pthread_t, clockid_t *);
/third_party/musl/include/
Dtime.h103 int clock_getres (clockid_t, struct timespec *);
104 int clock_gettime (clockid_t, struct timespec *);
105 int clock_settime (clockid_t, const struct timespec *);
106 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
107 int clock_getcpuclockid (pid_t, clockid_t *);
110 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict);
/third_party/musl/porting/liteos_a/kernel/include/
Dtime.h117 int clock_getres (clockid_t, struct timespec *);
118 int clock_gettime (clockid_t, struct timespec *);
119 int clock_settime (clockid_t, const struct timespec *);
120 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
121 int clock_getcpuclockid (pid_t, clockid_t *);
124 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/rust/crates/nix/src/
Dtime.rs12 use libc::{self, clockid_t};
20 pub struct ClockId(clockid_t);
24 pub const fn from_raw(clk_id: clockid_t) -> Self { in from_raw()
69 pub const fn as_raw(self) -> clockid_t { in as_raw() argument
205 impl From<ClockId> for clockid_t { implementation
211 impl From<clockid_t> for ClockId {
212 fn from(clk_id: clockid_t) -> Self { in from()
274 let mut clk_id: MaybeUninit<libc::clockid_t> = MaybeUninit::uninit(); in clock_getcpuclockid()
/third_party/musl/porting/linux/user/include/
Dpthread.h139 int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, const struct timespec *__restri…
189 clockid_t, const struct timespec *__restrict);
242 int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
294 int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
346 int pthread_condattr_setclock(pthread_condattr_t *, clockid_t);
348 int pthread_condattr_getclock(const pthread_condattr_t *__restrict, clockid_t *__restrict);
366 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/libc-test/src/functionalext/supplement/thread/thread_gtest/
Dpthread_cond_test.cpp53 clockid_t clock; in InitMonotonic()
63clockid_t clock, int (*testWaitFunc)(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec*… in MakeTimeout()
208 clockid_t clock;
222 clockid_t clock;
237 clockid_t clock;
/third_party/rust/crates/rustix/src/backend/libc/thread/
Dsyscalls.rs33 weak!(fn __clock_nanosleep_time64(c::clockid_t, c::c_int, *const LibcTimespec, *mut LibcTimespec) -…
65 id as c::clockid_t, in clock_nanosleep_relative()
87 match c::clock_nanosleep(id as c::clockid_t, flags, request, remain.as_mut_ptr()) { in clock_nanosleep_relative()
116 id as c::clockid_t, in clock_nanosleep_relative_old()
159 id as c::clockid_t, in clock_nanosleep_absolute()
178 match unsafe { c::clock_nanosleep(id as c::clockid_t, flags, request, null_mut()) } { in clock_nanosleep_absolute()
197 match unsafe { c::clock_nanosleep(id as c::clockid_t, flags, &old_request, null_mut()) } { in clock_nanosleep_absolute_old()

123456789