/third_party/musl/porting/linux/user/src/time/ |
H A D | clock_gettime.c | 13 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()
|
H A D | clock_getres.c | 26 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/ |
H A D | clock_gettime.c | 13 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() 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()
|
H A D | clock_getres.c | 13 static int cgr_init(clockid_t clk, struct timespec *ts) in cgr_init() 17 int (*f)(clockid_t, struct timespec *) = in cgr_init() 18 (int (*)(clockid_t, struct timespec *))p; in cgr_init() 28 int clock_getres(clockid_t clk, struct timespec *ts) in clock_getres() 32 int (*f)(clockid_t, struct timespec *) = in clock_getres() 33 (int (*)(clockid_t, struct timespec *))vdso_cgr; in clock_getres()
|
/third_party/musl/libc-test/src/api/ |
H A D | time.c | 11 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/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | time.h | 90 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/ |
H A D | tst_clocks.h | 12 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);
|
H A D | tst_timer.h | 197 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_i [all...] |
H A D | time64_variants.h | 32 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/uniproton/kernel/include/ |
H A D | time.h | 102 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/ |
H A D | time.h | 101 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);
|
H A D | usr_lib_ops.h | 79 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/liteos_m/kernel/include/ |
H A D | time.h | 102 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/rust/crates/rustix/src/backend/libc/time/ |
H A D | syscalls.rs | 26 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(); 72 let _ = c::clock_getres(id as c::clockid_t, timespec.as_mut_ptr()); 85 id as c::clockid_t, in clock_getres_old() 109 id as c::clockid_t, 128 ret(c::clock_gettime(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); 141 id as c::clockid_t, in clock_gettime_old() 157 let id: c::clockid_t = match id { 158 DynamicClockId::Known(id) => id as c::clockid_t, [all...] |
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | time.h | 117 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/musl/include/ |
H A D | time.h | 104 int clock_getres (clockid_t, struct timespec *); 105 int clock_gettime (clockid_t, struct timespec *); 106 int clock_settime (clockid_t, const struct timespec *); 107 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); 108 int clock_getcpuclockid (pid_t, clockid_t *); 111 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict);
|
H A D | pthread.h | 129 int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, const struct timespec *__restrict); 163 * @param clockid_t Clock ID used in clock and timer functions. 171 clockid_t, const struct timespec *__restrict); 216 int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__restrict); 264 int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__restrict); 335 int pthread_condattr_setclock(pthread_condattr_t *, clockid_t); 337 int pthread_condattr_getclock(const pthread_condattr_t *__restrict, clockid_t *__restrict); 356 int pthread_getcpuclockid(pthread_t, clockid_t *);
|
/third_party/ltp/lib/ |
H A D | tst_clocks.c | 15 typedef int (*mysyscall)(clockid_t clk_id, void *ts); 29 int tst_clock_getres(clockid_t clk_id, struct timespec *res) in tst_clock_getres() 59 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts) in tst_clock_gettime() 89 int tst_clock_settime(clockid_t clk_id, struct timespec *ts) in tst_clock_settime() 117 const char *tst_clock_name(clockid_t clk_id) in tst_clock_name()
|
H A D | tst_timer.c | 16 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/ |
H A D | clock_gettime04.c | 28 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/ |
H A D | time.rs | 12 use libc::{self, clockid_t}; 17 /// Newtype pattern around `clockid_t` (which is just alias). It prevents bugs caused by 20 pub struct ClockId(clockid_t); 23 /// Creates `ClockId` from raw `clockid_t` 24 pub const fn from_raw(clk_id: clockid_t) -> Self { 68 /// Gets the raw `clockid_t` wrapped by `self` 69 pub const fn as_raw(self) -> clockid_t { 205 impl From<ClockId> for clockid_t { 211 impl From<clockid_t> for ClockId { 212 fn from(clk_id: clockid_t) [all...] |
/third_party/skia/third_party/externals/oboe/src/common/ |
H A D | AudioClock.h | 29 static int64_t getNanoseconds(clockid_t clockId = CLOCK_MONOTONIC) { in getNanoseconds() 46 static int sleepUntilNanoTime(int64_t nanoTime, clockid_t clockId = CLOCK_MONOTONIC) { in sleepUntilNanoTime() 62 static int sleepForNanos(int64_t nanoseconds, clockid_t clockId = CLOCK_REALTIME) { in sleepForNanos()
|
/third_party/musl/porting/linux/user/include/ |
H A D | pthread.h | 154 int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, const struct timespec *__restrict); 196 * @param clockid_t Clock ID used in clock and timer functions. 204 clockid_t, const struct timespec *__restrict); 257 int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__restrict); 309 int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__restrict); 361 int pthread_condattr_setclock(pthread_condattr_t *, clockid_t); 363 int pthread_condattr_getclock(const pthread_condattr_t *__restrict, clockid_t *__restrict); 381 int pthread_getcpuclockid(pthread_t, clockid_t *);
|
/third_party/rust/crates/rustix/src/backend/libc/thread/ |
H A D | syscalls.rs | 33 weak!(fn __clock_nanosleep_time64(c::clockid_t, c::c_int, *const LibcTimespec, *mut LibcTimespec) -> c::c_int); 65 id as c::clockid_t, 87 match c::clock_nanosleep(id as c::clockid_t, flags, request, remain.as_mut_ptr()) { 116 id as c::clockid_t, in clock_nanosleep_relative_old() 159 id as c::clockid_t, 178 match unsafe { c::clock_nanosleep(id as c::clockid_t, flags, request, null_mut()) } { 197 match unsafe { c::clock_nanosleep(id as c::clockid_t, flags, &old_request, null_mut()) } { in clock_nanosleep_absolute_old()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | pthread_cond_test.cpp | 53 clockid_t clock; in InitMonotonic() 63 clockid_t clock, int (*testWaitFunc)(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* timeout)) in MakeTimeout() 208 clockid_t clock; in HWTEST_F() 222 clockid_t clock; in HWTEST_F() 237 clockid_t clock; in HWTEST_F()
|