/third_party/musl/src/time/ |
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() 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/ |
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()
|
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/libc-test/src/api/ |
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/rust/crates/rustix/src/backend/libc/time/ |
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(); 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/ |
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/ |
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);
|
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_id, int flags, in libc_clock_nanosleep() [all …]
|
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/liteos_m/kernel/include/ |
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/ |
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);
|
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/uniproton/kernel/include/ |
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/ndk_musl_include/ |
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);
|
D | pthread.h | 130 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/ |
D | time.h | 103 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/ |
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/ltp/lib/ |
D | tst_clocks.c | 15 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()
|
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/ |
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/ |
D | time.rs | 12 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/ |
D | pthread.h | 139 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/ |
D | AudioClock.h | 29 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/ |
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*… in MakeTimeout() 208 clockid_t clock; 222 clockid_t clock; 237 clockid_t clock;
|
/third_party/rust/crates/rustix/src/backend/libc/thread/ |
D | syscalls.rs | 33 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()
|