Home
last modified time | relevance | path

Searched refs:it_value (Results 1 – 25 of 156) sorted by relevance

1234567

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
D9-2.c97 its.it_value.tv_sec = tsbefore.tv_sec + in main()
99 its.it_value.tv_nsec = tsbefore.tv_nsec + in main()
102 its.it_value.tv_sec = tsbefore.tv_sec + in main()
104 its.it_value.tv_nsec = tsbefore.tv_nsec + in main()
109 (int)its.it_value.tv_sec, (int)its.it_value.tv_nsec); in main()
128 if (tsafter.tv_sec < its.it_value.tv_sec) { in main()
130 (int)tsafter.tv_sec, (int)its.it_value.tv_sec); in main()
132 } else if (tsafter.tv_sec == its.it_value.tv_sec) { in main()
133 if (tsafter.tv_nsec < its.it_value.tv_nsec) { in main()
137 (int)its.it_value.tv_nsec); in main()
D8-2.c38 its.it_value.tv_sec = TIMERSEC; in main()
39 its.it_value.tv_nsec = 0; in main()
62 oits.it_value.tv_sec = 1000; in main()
63 oits.it_value.tv_nsec = 1000; in main()
72 if ((0 == oits.it_value.tv_sec) && in main()
73 (0 == oits.it_value.tv_nsec) && in main()
80 (int)oits.it_value.tv_sec, (int)oits.it_value.tv_nsec); in main()
D8-1.c36 its.it_value.tv_sec = TIMERSEC; in main()
37 its.it_value.tv_nsec = 0; in main()
49 if ((0 == oits.it_value.tv_sec) && in main()
50 (0 == oits.it_value.tv_nsec) && in main()
57 (int)oits.it_value.tv_sec, (int)oits.it_value.tv_nsec); in main()
D2-1.c73 its.it_value.tv_sec = TIMERVALUESEC; in main()
74 its.it_value.tv_nsec = 0; in main()
92 printf("Test for value %d\n", (int)its.it_value.tv_sec); in main()
120 delta = timeelapsed - its.it_value.tv_sec; in main()
123 (int)its.it_value.tv_sec); in main()
128 its.it_value.tv_sec += INCREMENT; in main()
D9-1.c83 its.it_value.tv_sec = timeroffsets[i][0]; in main()
84 its.it_value.tv_nsec = timeroffsets[i][1]; in main()
87 (int)its.it_value.tv_sec, (int)its.it_value.tv_nsec); in main()
111 testnsecs = (unsigned long)its.it_value.tv_sec * 1000000000 + in main()
112 its.it_value.tv_nsec; in main()
/third_party/musl/compat/time32/
Dtimerfd_settime32.c11 .it_value.tv_sec = val32->it_value.tv_sec, in __timerfd_settime32()
12 .it_value.tv_nsec = val32->it_value.tv_nsec}), in __timerfd_settime32()
22 old32->it_value.tv_sec = old.it_value.tv_sec; in __timerfd_settime32()
23 old32->it_value.tv_nsec = old.it_value.tv_nsec; in __timerfd_settime32()
Dsetitimer_time32.c11 .it_value.tv_sec = new32->it_value.tv_sec, in __setitimer_time32()
12 .it_value.tv_usec = new32->it_value.tv_usec}), &old); in __setitimer_time32()
21 old32->it_value.tv_sec = old.it_value.tv_sec; in __setitimer_time32()
22 old32->it_value.tv_usec = old.it_value.tv_usec; in __setitimer_time32()
Dtimer_settime32.c10 .it_value.tv_sec = val32->it_value.tv_sec, in __timer_settime32()
11 .it_value.tv_nsec = val32->it_value.tv_nsec}), in __timer_settime32()
21 old32->it_value.tv_sec = old.it_value.tv_sec; in __timer_settime32()
22 old32->it_value.tv_nsec = old.it_value.tv_nsec; in __timer_settime32()
Dtimerfd_gettime32.c13 val32->it_value.tv_sec = old.it_value.tv_sec; in __timerfd_gettime32()
14 val32->it_value.tv_nsec = old.it_value.tv_nsec; in __timerfd_gettime32()
Dgetitimer_time32.c12 old32->it_value.tv_sec = old.it_value.tv_sec; in __getitimer_time32()
13 old32->it_value.tv_usec = old.it_value.tv_usec; in __getitimer_time32()
Dtimer_gettime32.c12 val32->it_value.tv_sec = old.it_value.tv_sec; in __timer_gettime32()
13 val32->it_value.tv_nsec = old.it_value.tv_nsec; in __timer_gettime32()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/
D1-1.c42 itsset.it_value.tv_sec = TIMERSEC; in main()
43 itsset.it_value.tv_nsec = 0; in main()
60 delta = itsset.it_value.tv_sec - itsget.it_value.tv_sec; in main()
64 printf("%d > %d\n", (int)itsget.it_value.tv_sec, in main()
65 (int)itsset.it_value.tv_sec); in main()
75 printf("%d !~= %d\n", (int)itsget.it_value.tv_sec, in main()
76 (int)itsset.it_value.tv_sec); in main()
D1-2.c44 itsset.it_value.tv_sec = TIMERSEC; in main()
45 itsset.it_value.tv_nsec = 0; in main()
67 delta = (itsset.it_value.tv_sec - SLEEPSEC) - itsget.it_value.tv_sec; in main()
71 printf("%d > %d\n", (int)itsget.it_value.tv_sec, in main()
72 (int)itsset.it_value.tv_sec - SLEEPSEC); in main()
82 printf("%d !~= %d\n", (int)itsget.it_value.tv_sec, in main()
83 (int)itsset.it_value.tv_sec - SLEEPSEC); in main()
D3-1.c55 itsset.it_value.tv_sec = ts.tv_sec + TIMERSEC; in main()
56 itsset.it_value.tv_nsec = ts.tv_nsec; in main()
69 delta = TIMERSEC - itsget.it_value.tv_sec; in main()
73 printf("%d > %d\n", (int)itsget.it_value.tv_sec, in main()
74 (int)itsset.it_value.tv_sec); in main()
84 printf("%d !~= %d\n", (int)itsget.it_value.tv_sec, in main()
85 (int)itsset.it_value.tv_sec); in main()
D1-4.c51 itsset.it_value.tv_sec = TIMERVALSEC; in main()
52 itsset.it_value.tv_nsec = 0; in main()
94 (SLEEPSEC - itsset.it_value.tv_sec); in main()
95 delta = expectedleft - itsget.it_value.tv_sec; in main()
99 printf("%d > %d\n", (int)itsget.it_value.tv_sec, expectedleft); in main()
109 printf("%d !~= %d\n", (int)itsget.it_value.tv_sec, in main()
110 (int)itsset.it_value.tv_sec - SLEEPSEC); in main()
D2-2.c37 itsset.it_value.tv_sec = TIMERSEC; in main()
38 itsset.it_value.tv_nsec = 0; in main()
63 if (0 == itsget.it_value.tv_sec && 0 == itsget.it_value.tv_nsec) { in main()
69 (int)itsget.it_value.tv_sec, in main()
70 (int)itsget.it_value.tv_nsec); in main()
D1-3.c45 itsset.it_value.tv_sec = 0; in main()
46 itsset.it_value.tv_nsec = TIMERNSEC; in main()
76 if (itsget.it_value.tv_sec) { in main()
78 itsget.it_value.tv_sec); in main()
82 deltans = (itsset.it_value.tv_nsec - ts.tv_nsec) - in main()
83 itsget.it_value.tv_nsec; in main()
/third_party/rust/crates/rustix/tests/time/
Dy2038.rs32 it_value: Timespec { tv_sec, tv_nsec: 0 }, in test_y2038()
52 it_value: Timespec { in test_y2038_with_timerfd()
74 assert!(new.it_value.tv_sec <= set.it_value.tv_sec); in test_y2038_with_timerfd()
76 new.it_value.tv_nsec < set.it_value.tv_nsec || new.it_value.tv_sec < set.it_value.tv_sec in test_y2038_with_timerfd()
Dtimerfd.rs15 it_value: Timespec { in test_timerfd()
32 assert!(new.it_value.tv_sec <= set.it_value.tv_sec); in test_timerfd()
34 new.it_value.tv_nsec < set.it_value.tv_nsec || new.it_value.tv_sec < set.it_value.tv_sec in test_timerfd()
49 it_value: Timespec { in test_timerfd_with_interval()
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/libcompat/
Dtimer_settime.c36 interval.it_value.tv_sec = new_value->it_value.tv_sec; in timer_settime()
37 interval.it_value.tv_usec = new_value->it_value.tv_nsec / 1000; in timer_settime()
43 int seconds = new_value->it_value.tv_sec; in timer_settime()
49 if (new_value->it_value.tv_nsec > 0) { in timer_settime()
/third_party/ltp/testcases/kernel/syscalls/timer_settime/
Dtimer_settime03.c74 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &spec.it_value); in run()
77 if (nsec > spec.it_value.tv_nsec) { in run()
78 spec.it_value.tv_sec -= 1; in run()
79 spec.it_value.tv_nsec += 1000000000; in run()
84 spec.it_value.tv_sec -= handler_delay / 100000000; in run()
85 spec.it_value.tv_nsec -= nsec; in run()
/third_party/musl/src/linux/
Dtimerfd.c15 time_t is = new->it_interval.tv_sec, vs = new->it_value.tv_sec; in timerfd_settime()
16 long ins = new->it_interval.tv_nsec, vns = new->it_value.tv_nsec; in timerfd_settime()
32 old->it_value.tv_sec = old32[2]; in timerfd_settime()
33 old->it_value.tv_nsec = old32[3]; in timerfd_settime()
53 cur->it_value.tv_sec = cur32[2]; in timerfd_gettime()
54 cur->it_value.tv_nsec = cur32[3]; in timerfd_gettime()
/third_party/rust/crates/rustix/src/backend/linux_raw/time/
Dsyscalls.rs141 it_value: __kernel_old_timespec { in timerfd_settime_old()
143 .it_value in timerfd_settime_old()
148 .it_value in timerfd_settime_old()
170 it_value: __kernel_timespec { in timerfd_settime_old()
171 tv_sec: old_result.it_value.tv_sec.into(), in timerfd_settime_old()
172 tv_nsec: old_result.it_value.tv_nsec.into(), in timerfd_settime_old()
222 it_value: __kernel_timespec { in timerfd_gettime_old()
223 tv_sec: old_result.it_value.tv_sec.into(), in timerfd_gettime_old()
224 tv_nsec: old_result.it_value.tv_nsec.into(), in timerfd_gettime_old()
/third_party/ltp/testcases/kernel/syscalls/setitimer/
Dsetitimer01.c98 value->it_value.tv_sec = SEC1; in main()
99 value->it_value.tv_usec = SEC0; in main()
119 value->it_value.tv_sec = SEC2; in main()
120 value->it_value.tv_usec = SEC0; in main()
127 if (ovalue->it_value.tv_sec <= SEC1) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D13-1.c63 it.it_value.tv_sec = 10; in main()
64 it.it_value.tv_usec = 0; in main()
108 if (it.it_value.tv_sec != 0) { in main()
119 if (it.it_value.tv_sec != 0) { in main()
130 if (it.it_value.tv_sec != 0) { in main()

1234567