Home
last modified time | relevance | path

Searched refs:timer_settime (Results 1 - 25 of 82) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/clock_settime/
H A Dclock_settime03.c23 { .clock_gettime = sys_clock_gettime, .clock_settime = sys_clock_settime, .timer_settime = sys_timer_settime, .ts_type = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old kernel spec"},
27 { .clock_gettime = sys_clock_gettime64, .clock_settime = sys_clock_settime64, .timer_settime = sys_timer_settime64, .ts_type = TST_KERN_TIMESPEC, .desc = "syscall time64 with kernel spec"},
78 TEST(tv->timer_settime(timer, TIMER_ABSTIME, tst_its_get(&its), NULL)); in run()
80 tst_brk(TBROK | TTERRNO, "timer_settime() failed"); in run()
/third_party/ltp/testcases/kernel/syscalls/timer_settime/
H A Dtimer_settime01.c11 * This tests the timer_settime(2) syscall under various conditions:
51 { .clock_gettime = sys_clock_gettime, .timer_gettime = sys_timer_gettime, .timer_settime = sys_timer_settime, .ts_type = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old kernel spec"},
55 { .clock_gettime = sys_clock_gettime64, .timer_gettime = sys_timer_gettime64, .timer_settime = sys_timer_settime64, .ts_type = TST_KERN_TIMESPEC, .desc = "syscall time64 with kernel spec"},
137 TEST(tv->timer_settime(timer, tc->flag, tst_its_get(&new_set), tst_its_get(tc->old_ptr))); in run()
140 tst_res(TFAIL | TTERRNO, "timer_settime(%s) failed", in run()
165 tst_res(TPASS, "timer_settime(%s) passed", in run()
H A Dtimer_settime02.c11 * This tests basic error handling of the timer_settime(2) syscall:
64 { .timer_settime = sys_timer_settime, .ts_type = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old kernel spec"},
68 { .timer_settime = sys_timer_settime64, .ts_type = TST_KERN_TIMESPEC, .desc = "syscall time64 with kernel spec"},
117 TEST(tv->timer_settime(*tc->timer_id, 0, new, old)); in run()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
H A D8-3.c8 * Test that timer_settime() will return ovalue.it_value = the previous
50 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
51 perror("timer_settime() did not return success\n"); in main()
57 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
58 perror("timer_settime() did not return success\n"); in main()
H A D8-4.c8 * Test that timer_settime() will return ovalue.it_interval = the previous
47 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
48 perror("timer_settime() did not return success\n"); in main()
53 * second call to timer_settime() in main()
55 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
56 perror("timer_settime() did not return success\n"); in main()
H A D8-2.c8 * Test that timer_settime() will return ovalue.it_value = 0
49 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
50 perror("timer_settime() did not return success\n"); in main()
67 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
68 perror("timer_settime() did not return success\n"); in main()
H A D3-2.c68 if (timer_settime(tid, 0, &its, NULL) != 0) { in main()
69 perror("timer_settime() did not return success\n"); in main()
79 if (timer_settime(tid, 0, &its, NULL) != 0) { in main()
80 perror("timer_settime() did not return success\n"); in main()
H A D3-3.c73 if (timer_settime(tid, 0, &its, NULL) != 0) { in main()
74 perror("timer_settime() did not return success\n"); in main()
104 if (timer_settime(tid, 0, &its, NULL) != 0) { in main()
105 perror("timer_settime() did not return success\n"); in main()
H A D8-1.c8 * Test that timer_settime() will return ovalue.it_value = 0
44 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
45 perror("timer_settime() did not return success\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/functional/timers/timers/
H A Dtwoevtimers.c86 if (timer_settime(tid1, flags, &its, NULL) != 0) { in main()
87 perror("timer_settime() did not return success\n"); in main()
91 if (timer_settime(tid2, flags, &its, NULL) != 0) { in main()
92 perror("timer_settime() did not return success\n"); in main()
H A Dtwoptimers.c70 if (timer_settime(tid, flags, &its, NULL) != 0) { in main()
71 perror("timer_settime() did not return success\n"); in main()
125 if (timer_settime(tid, flags, &its, NULL) != 0) { in main()
126 perror("timer_settime() did not return success\n"); in main()
/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dtimer_settime.c67 result = timer_settime(timerid, 0, &its, NULL); in timer_settime_0100()
91 timer_settime(NULL, 0, NULL, NULL); in timer_settime_0200()
/third_party/musl/porting/uniproton/kernel/include/
H A Dtime.h111 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict);
153 __REDIR(timer_settime, __timer_settime64);
/third_party/musl/porting/liteos_m/user/include/
H A Dtime.h110 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict);
152 __REDIR(timer_settime, __timer_settime64);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dtime.h111 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict);
153 __REDIR(timer_settime, __timer_settime64);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dtime.h126 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict);
168 __REDIR(timer_settime, __timer_settime64);
/third_party/musl/include/
H A Dtime.h113 int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct itimerspec *__restrict);
155 __REDIR(timer_settime, __timer_settime64);
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
H A D33-1-buildonly.c10 int timer_settime(timer_t, int, const struct itimerspec *,
23 dummyvar = timer_settime; in dummyfcn()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/
H A D1-2.c9 * cannot be armed by calling timer_settime().
13 * - Try to call timer_settime() on that timer and ensure it fails
53 if (timer_settime(tid, 0, &its, NULL) == -1) { in main()
63 printf("timer_settime() did not fail after timer_delete()\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/speculative/
H A D12-2.c8 * Test to see if timer_settime() sets errno = EINVAL timerid != a timer ID
45 if (timer_settime(tid + 1, 0, &its, NULL) == -1) { in main()
H A D12-3.c8 * Test to see if timer_settime() sets errno = EINVAL when timerid =
47 if (timer_settime(tid, 0, &its, NULL) == -1) { in main()
H A D12-1.c8 * Test to see if timer_settime() sets errno = EINVAL if no timers have been
30 if (timer_settime(tid, 0, &its, NULL) == -1) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_create/
H A D9-1.c69 if (timer_settime(tid, 0, &its, NULL) != 0) { in main()
70 perror("timer_settime() did not return success\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/
H A D2-2.c48 if (timer_settime(tid, 0, &itsset, NULL) != 0) { in main()
49 perror("timer_settime() did not return success\n"); in main()
/third_party/musl/compat/time32/
H A Dtimer_settime32.c7 int r = timer_settime(t, flags, (&(struct itimerspec){ in __timer_settime32()

Completed in 8 milliseconds

1234