/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_create/speculative/ |
H A D | 2-1.c | 26 if (*(timer_t *) key == *(timer_t *) amemb) { in compare() 36 timer_t tid; in main() 37 timer_t *tids; in main() 49 tids = malloc(max * sizeof(timer_t)); in main() 66 if (lfind(&tid, tids, &i, sizeof(timer_t), compare) != NULL) { in main()
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | time.h | 96 int timer_create(clockid_t, struct sigevent *__restrict, timer_t *__restrict); 97 int timer_delete(timer_t); 98 int timer_settime(timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict); 99 int timer_gettime(timer_t, struct itimerspec *); 100 int timer_getoverrun(timer_t);
|
/third_party/musl/libc-test/src/api/ |
H A D | time.c | 12 T(timer_t) in f() 67 {int(*p)(clockid_t,struct sigevent*restrict,timer_t*restrict) = timer_create;} in f() 68 {int(*p)(timer_t) = timer_delete;} in f() 69 {int(*p)(timer_t) = timer_getoverrun;} in f() 70 {int(*p)(timer_t,struct itimerspec*) = timer_gettime;} in f() 71 {int(*p)(timer_t,int,const struct itimerspec*restrict,struct itimerspec*restrict) = timer_settime;} in f()
|
/kernel/liteos_a/testsuites/unittest/libc/time/timer/smoke/ |
H A D | timer_test_004.cpp | 53 timer_t timerid = *(timer_t *)si->si_value.sival_ptr; in SigHandler() 55 timer_t timerid = *reinterpret_cast<timer_t *>(si); in SigHandler() 65 timer_t timerid; in SigInfoTimerTest()
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | time.h | 109 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict); 110 int timer_delete (timer_t); 111 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict); 112 int timer_gettime (timer_t, struct itimerspec *); 113 int timer_getoverrun (timer_t);
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | time.h | 108 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict); 109 int timer_delete (timer_t); 110 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict); 111 int timer_gettime (timer_t, struct itimerspec *); 112 int timer_getoverrun (timer_t);
|
H A D | usr_lib_ops.h | 93 int (*timer_create)(clockid_t clockID, struct sigevent *restrict evp, timer_t *restrict timerID); 94 int (*timer_delete)(timer_t timerID); 95 int (*timer_settime)(timer_t timerID, int flags, const struct itimerspec *restrict value, struct itimerspec *restrict oldValue); 96 int (*timer_gettime)(timer_t timerID, struct itimerspec *value); 97 int (*timer_getoverrun)(timer_t timerID);
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | time.h | 109 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict); 110 int timer_delete (timer_t); 111 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict); 112 int timer_gettime (timer_t, struct itimerspec *); 113 int timer_getoverrun (timer_t);
|
/test/xts/hats/kernel/syscalls/timer/timercreate/ |
H A D | TimerCreateApiTest.cpp | 72 timer_t timerId; in HWTEST_F() 113 timer_t timerId; in HWTEST_F() 155 timer_t timerId; in HWTEST_F() 197 timer_t timerId; in HWTEST_F() 240 timer_t timerId; in HWTEST_F() 283 timer_t timerId; in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/ |
H A D | timer_test.cpp | 47 timer_t timerId_; 91 timer_t GetTimerid() in GetTimerid() 152 timer_t timerid; in HWTEST_F() 172 timer_t timer; in HWTEST_F() 200 timer_t timerid = scaler.GetTimerid(); in HWTEST_F() 245 timer_t timerid = scaler.GetTimerid(); in HWTEST_F()
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | time.h | 124 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict); 125 int timer_delete (timer_t); 126 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict); 127 int timer_gettime (timer_t, struct itimerspec *); 128 int timer_getoverrun (timer_t);
|
/third_party/musl/include/ |
H A D | time.h | 111 int timer_create (clockid_t, struct sigevent *__restrict, timer_t *__restrict); 112 int timer_delete (timer_t); 113 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict); 114 int timer_gettime (timer_t, struct itimerspec *); 115 int timer_getoverrun (timer_t);
|
/kernel/liteos_a/syscall/ |
H A D | time_syscall.c | 160 int SysTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID) in SysTimerCreate() 163 timer_t stimerID; in SysTimerCreate() 181 if (LOS_ArchCopyToUser(timerID, &stimerID, sizeof(timer_t))) { in SysTimerCreate() 189 int SysTimerGettime(timer_t timerID, struct itimerspec *value) in SysTimerGettime() 212 int SysTimerSettime(timer_t timerID, int flags, const struct itimerspec *value, struct itimerspec *oldValue) in SysTimerSettime() 241 int SysTimerGetoverrun(timer_t timerID) in SysTimerGetoverrun() 252 int SysTimerDelete(timer_t timerID) in SysTimerDelete() 524 int SysTimerGettime64(timer_t timerID, struct itimerspec64 *value) in SysTimerGettime64() 553 int SysTimerSettime64(timer_t timerID, int flags, const struct itimerspec64 *value, struct itimerspec64 *oldValue) in SysTimerSettime64()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | timer_settime.c | 26 extern int __timer_settime64(timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict); 48 timer_t timerid; in timer_settime_0100() 102 timer_t timerid; in timer_settime64_0100()
|
/test/xts/acts/kernel_lite/time_posix/src/ |
H A D | AlarmTest.cpp | 218 timer_t tid = nullptr;
in HWTEST_F() 250 timer_t tid = nullptr;
in HWTEST_F() 293 timer_t tid = NULL;
in HWTEST_F() 294 timer_t tidArr[max];
in HWTEST_F() 297 tidArr[i] = (timer_t)-1;
in HWTEST_F() 312 if (tidArr[i] == ((timer_t)-1)) {
in HWTEST_F() 324 if (tidArr[k] != (timer_t)-1) {
in HWTEST_F() 338 timer_t tid = nullptr;
in HWTEST_F() 377 timer_t tid = nullptr;
in HWTEST_F() 391 timer_t ti in HWTEST_F() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/speculative/ |
H A D | 6-1.c | 22 timer_t tid; in main() 24 tid = (timer_t) & tval; in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/speculative/ |
H A D | 5-1.c | 22 timer_t tid; in main() 24 tid = (timer_t) & tval; in main()
|
/third_party/ltp/include/ |
H A D | tst_safe_clocks.h | 77 clockid_t clockid, struct sigevent *sevp, timer_t *timerid) in safe_timer_create() 97 timer_t timerid, int flags, const struct itimerspec *new_value, in safe_timer_settime() 117 timer_t timerid, struct itimerspec *curr_value) in safe_timer_gettime() 136 timer_t timerid) in safe_timer_delete()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/speculative/ |
H A D | 6-1.c | 22 timer_t tid; in main() 25 tid = (timer_t) & tval; in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/speculative/ |
H A D | 12-1.c | 21 timer_t tid; in main() 24 tid = (timer_t) & tval; in main()
|
/kernel/linux/linux-5.10/kernel/time/ |
H A D | posix-timers.c | 105 static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags); 120 timer_t id) in __posix_timers_find() 132 static struct k_itimer *posix_timer_by_id(timer_t id) in posix_timer_by_id() 504 timer_t __user *created_timer_id) in do_timer_create() 528 new_timer->it_id = (timer_t) new_timer_id; in do_timer_create() 584 timer_t __user *, created_timer_id) in SYSCALL_DEFINE3() 599 timer_t __user *, created_timer_id) in COMPAT_SYSCALL_DEFINE3() 619 static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags) in __lock_timer() 624 * timer_t could be any type >= int and we want to make sure any in __lock_timer() 720 static int do_timer_gettime(timer_t timer_i [all...] |
/kernel/linux/linux-6.6/kernel/time/ |
H A D | posix-timers.c | 62 static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags); 77 timer_t id) in __posix_timers_find() 89 static struct k_itimer *posix_timer_by_id(timer_t id) in posix_timer_by_id() 445 timer_t __user *created_timer_id) in do_timer_create() 473 new_timer->it_id = (timer_t) new_timer_id; in do_timer_create() 532 timer_t __user *, created_timer_id) in SYSCALL_DEFINE3() 547 timer_t __user *, created_timer_id) in COMPAT_SYSCALL_DEFINE3() 560 static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags) in __lock_timer() 565 * timer_t could be any type >= int and we want to make sure any in __lock_timer() 696 static int do_timer_gettime(timer_t timer_i [all...] |
/kernel/liteos_a/compat/posix/src/ |
H A D | time.c | 784 int timer_create(clockid_t clockID, struct sigevent *restrict evp, timer_t *restrict timerID) in timer_create() 817 *timerID = (timer_t)(UINTPTR)swtmrID; in timer_create() 821 int OsTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID) in OsTimerCreate() 872 *timerID = (timer_t)(UINTPTR)swtmrID; in OsTimerCreate() 876 int timer_delete(timer_t timerID) in timer_delete() 908 int timer_settime(timer_t timerID, int flags, in timer_settime() 974 int timer_gettime(timer_t timerID, struct itimerspec *value) in timer_gettime() 1003 int timer_getoverrun(timer_t timerID) in timer_getoverrun() 1100 timer_t timerID = 0; in setitimer() 1112 if (processCB->timerID == (timer_t)(UINTPT in setitimer() [all...] |
/kernel/liteos_a/testsuites/unittest/security/vid/smoke/ |
H A D | vid_test_001.cpp | 45 timer_t tid; in ChildFunc() 51 timer_t *tid2 = nullptr; in ChildFunc() 57 tid2 = (timer_t *)malloc(sizeof(UINTPTR) * 1024); in ChildFunc()
|
/test/xts/acts/commonlibrary/thirdparty/musl32/entry/src/main/cpp/ |
H A D | timendk32.cpp | 47 extern "C" int __timer_gettime64(timer_t, struct itimerspec *);
48 extern "C" int __timer_settime64(timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict);
53 timer_t timerid;
in Timer_getTime64_One() 94 timer_t timerid;
in Timer_setTime64_One()
|