/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/ |
D | 1-2.c | 30 clockid_t clockid; in main() 38 error = clock_getcpuclockid(1, &clockid); in main() 48 if (clock_gettime(clockid, &tp1) != 0) { in main() 50 "%d\n", clockid); in main()
|
D | 1-1.c | 39 clockid_t clockid; in main() 48 if (clock_getcpuclockid(getpid(), &clockid) != 0) { in main() 57 if (clock_gettime(clockid, &tp1) != 0) { in main() 60 clockid); in main()
|
/third_party/ltp/include/ |
D | tst_safe_clocks.h | 77 clockid_t clockid, struct sigevent *sevp, timer_t *timerid) in safe_timer_create() argument 82 ret = timer_create(clockid, sevp, timerid); in safe_timer_create() 86 "timer_create(%s) failed", tst_clock_name(clockid)); in safe_timer_create() 90 tst_clock_name(clockid), ret); in safe_timer_create() 162 #define SAFE_TIMER_CREATE(clockid, sevp, timerid)\ argument 163 safe_timer_create(__FILE__, __LINE__, (clockid), (sevp), (timerid))
|
D | tst_safe_timerfd.h | 12 int clockid, int flags); 14 #define SAFE_TIMERFD_CREATE(clockid, flags)\ argument 15 safe_timerfd_create(__FILE__, __LINE__, (clockid), (flags))
|
/third_party/ltp/lib/ |
D | tst_safe_timerfd.c | 15 int clockid, int flags) in safe_timerfd_create() argument 19 fd = timerfd_create(clockid, flags); in safe_timerfd_create() 23 "timerfd_create(%s) failed", tst_clock_name(clockid)); in safe_timerfd_create() 27 tst_clock_name(clockid), fd); in safe_timerfd_create()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/ |
D | 1-3.c | 38 clockid_t clockid; in main() local 56 if (clock_getcpuclockid(getpid(), &clockid) != 0) { in main() 61 rc = pthread_condattr_setclock(&condattr, clockid); in main()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/ |
D | vdso_wrappers.rs | 242 clockid: c::c_int, in rustix_clock_gettime_via_syscall() 245 match _rustix_clock_gettime_via_syscall(clockid, res) { in rustix_clock_gettime_via_syscall() 253 clockid: c::c_int, in _rustix_clock_gettime_via_syscall() 256 let r0 = syscall!(__NR_clock_gettime64, c_int(clockid), res); in _rustix_clock_gettime_via_syscall() 258 Err(io::Errno::NOSYS) => _rustix_clock_gettime_via_syscall_old(clockid, res), in _rustix_clock_gettime_via_syscall() 265 clockid: c::c_int, in _rustix_clock_gettime_via_syscall_old() 274 let r0 = syscall!(__NR_clock_gettime, c_int(clockid), &mut old_result); in _rustix_clock_gettime_via_syscall_old() 290 clockid: c::c_int, in _rustix_clock_gettime_via_syscall() 293 ret(syscall!(__NR_clock_gettime, c_int(clockid), res)) in _rustix_clock_gettime_via_syscall()
|
/third_party/musl/src/thread/ |
D | pthread_getcpuclockid.c | 3 int pthread_getcpuclockid(pthread_t t, clockid_t *clockid) in pthread_getcpuclockid() argument 5 *clockid = (-t->tid-1)*8U + 6; in pthread_getcpuclockid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getclock/ |
D | 1-1.c | 26 clockid_t clockid; in main() local 37 rc = pthread_condattr_getclock(&condattr, &clockid); in main()
|
D | 1-2.c | 27 clockid_t clockid; in main() local 44 rc = pthread_condattr_getclock(&condattr, &clockid); in main()
|
/third_party/ltp/include/lapi/ |
D | timerfd.h | 19 static inline int timerfd_create(int clockid, int flags) in timerfd_create() argument 21 return ltp_syscall(__NR_timerfd_create, clockid, flags); in timerfd_create()
|
/third_party/gstreamer/gstplugins_good/gst/dtmf/ |
D | gstdtmfsrc.c | 649 GstClockID *clockid; in gst_dtmf_src_create() local 735 clockid = gst_clock_new_single_shot_id (clock, dtmfsrc->timestamp + in gst_dtmf_src_create() 741 dtmfsrc->clockid = clockid; in gst_dtmf_src_create() 744 clockret = gst_clock_id_wait (clockid, NULL); in gst_dtmf_src_create() 752 gst_clock_id_unref (clockid); in gst_dtmf_src_create() 753 dtmfsrc->clockid = NULL; in gst_dtmf_src_create() 794 if (dtmfsrc->clockid) { in gst_dtmf_src_unlock() 795 gst_clock_id_unschedule (dtmfsrc->clockid); in gst_dtmf_src_unlock()
|
D | gstrtpdtmfsrc.c | 659 GstClockID *clockid; in gst_rtp_dtmf_src_create() local 765 clockid = gst_clock_new_single_shot_id (clock, dtmfsrc->timestamp + in gst_rtp_dtmf_src_create() 771 dtmfsrc->clockid = clockid; in gst_rtp_dtmf_src_create() 774 clockret = gst_clock_id_wait (clockid, NULL); in gst_rtp_dtmf_src_create() 782 gst_clock_id_unref (clockid); in gst_rtp_dtmf_src_create() 783 dtmfsrc->clockid = NULL; in gst_rtp_dtmf_src_create() 1118 if (dtmfsrc->clockid) { in gst_rtp_dtmf_src_unlock() 1119 gst_clock_id_unschedule (dtmfsrc->clockid); in gst_rtp_dtmf_src_unlock()
|
/third_party/rust/crates/rustix/src/time/ |
D | timerfd.rs | 13 pub fn timerfd_create(clockid: TimerfdClockId, flags: TimerfdFlags) -> io::Result<OwnedFd> { in timerfd_create() 14 backend::time::syscalls::timerfd_create(clockid, flags) in timerfd_create()
|
/third_party/gstreamer/gstreamer/tests/check/gst/ |
D | gstsystemclock.c | 150 GstClockID *clockid; in GST_START_TEST() local 166 clockid = gst_clock_new_periodic_id (master, in GST_START_TEST() 168 gst_clock_id_wait_async (clockid, in GST_START_TEST() 184 gst_clock_id_unschedule (clockid); in GST_START_TEST() 185 gst_clock_id_unref (clockid); in GST_START_TEST()
|
/third_party/ltp/testcases/kernel/syscalls/timerfd/ |
D | timerfd_create01.c | 35 int clockid; member 79 TEST(timerfd_create(test->clockid, test->flags)); in timerfd_create_verify()
|
D | timerfd01.c | 42 static unsigned long long getustime(int clockid) in getustime() argument 47 if (tv->clock_gettime((clockid_t) clockid, tst_ts_get(&tp))) { in getustime()
|
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/ |
D | check.c | 617 static clockid_t clockid = -1; in check_get_clockid() local 619 if (clockid == -1) { in check_get_clockid() 632 clockid = CLOCK_MONOTONIC; in check_get_clockid() 634 clockid = CLOCK_REALTIME; in check_get_clockid() 637 clockid = CLOCK_MONOTONIC; in check_get_clockid() 641 return clockid; in check_get_clockid()
|
/third_party/musl/libc-test/src/functionalext/common/ |
D | pthread_util.h | 64 static inline void GetDelayedTimeByClockid(struct timespec *ts, unsigned int ms, clockid_t clockid) in GetDelayedTimeByClockid() argument 69 clock_gettime(clockid, &tsNow); in GetDelayedTimeByClockid()
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstclock.c | 216 GstClockID clockid; member 852 if (clock->priv->clockid) { in gst_clock_finalize() 853 gst_clock_id_unschedule (clock->priv->clockid); in gst_clock_finalize() 854 gst_clock_id_unref (clock->priv->clockid); in gst_clock_finalize() 855 clock->priv->clockid = NULL; in gst_clock_finalize() 1347 if (priv->clockid) { in gst_clock_set_master() 1348 gst_clock_id_unschedule (priv->clockid); in gst_clock_set_master() 1349 gst_clock_id_unref (priv->clockid); in gst_clock_set_master() 1350 priv->clockid = NULL; in gst_clock_set_master() 1357 priv->clockid = gst_clock_new_periodic_id (master, in gst_clock_set_master() [all …]
|
/third_party/rust/crates/nix/src/sys/ |
D | timer.rs | 74 pub fn new(clockid: ClockId, mut sigevent: SigEvent) -> Result<Self> { in new() 79 clockid.as_raw(), in new()
|
D | timerfd.rs | 96 pub fn new(clockid: ClockId, flags: TimerFlags) -> Result<Self> { in new() 98 libc::timerfd_create(clockid as i32, flags.bits()) in new()
|
/third_party/rust/crates/nix/test/ |
D | test_timer.rs | 46 let clockid = ClockId::CLOCK_MONOTONIC; in alarm_fires() localVariable 52 Timer::new(clockid, sigevent).expect("failed to create timer"); in alarm_fires()
|
/third_party/musl/src/linux/ |
D | timerfd.c | 7 int timerfd_create(int clockid, int flags) in timerfd_create() argument 9 return syscall(SYS_timerfd_create, clockid, flags); in timerfd_create()
|
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/libcompat/ |
D | timer_create.c | 24 timer_create (clockid_t clockid CK_ATTRIBUTE_UNUSED, in timer_create()
|