/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | timerfd.cc | 14 struct itimerspec its; in main() local 15 its.it_value.tv_sec = 0; in main() 16 its.it_value.tv_nsec = 1000000; in main() 17 its.it_interval.tv_sec = its.it_value.tv_sec; in main() 18 its.it_interval.tv_nsec = its.it_value.tv_nsec; in main() 20 int res = timerfd_settime(fd, 0, &its, NULL); in main() 24 res = timerfd_settime(fd, 0, &its, &its2); in main() 26 assert(its2.it_interval.tv_sec == its.it_interval.tv_sec); in main() 27 assert(its2.it_interval.tv_nsec == its.it_interval.tv_nsec); in main() 28 assert(its2.it_value.tv_sec <= its.it_value.tv_sec); in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/ |
D | 9-2.c | 48 struct itimerspec its; in main() local 88 its.it_interval.tv_sec = 0; in main() 89 its.it_interval.tv_nsec = 0; in main() 97 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() 111 if (timer_settime(tid, flags, &its, NULL) != 0) { in main() 128 if (tsafter.tv_sec < its.it_value.tv_sec) { in main() [all …]
|
D | 13-1.c | 63 struct itimerspec its; in main() local 76 its.it_value.tv_sec = testlist[i][0]; in main() 77 its.it_value.tv_nsec = testlist[i][1]; in main() 78 its.it_interval.tv_sec = testlist[i][2]; in main() 79 its.it_interval.tv_nsec = testlist[i][3]; in main() 82 (int)its.it_value.tv_sec, (int)its.it_value.tv_nsec); in main() 84 (int)its.it_interval.tv_sec, in main() 85 (int)its.it_interval.tv_nsec); in main() 87 if (timer_settime(tid, 0, &its, NULL) == -1) { in main()
|
D | 3-3.c | 38 struct itimerspec its; in main() local 67 its.it_interval.tv_sec = 0; in main() 68 its.it_interval.tv_nsec = 0; in main() 69 its.it_value.tv_sec = 0; in main() 70 its.it_value.tv_nsec = TIMEREXPIRENSEC; in main() 73 if (timer_settime(tid, 0, &its, NULL) != 0) { in main() 98 its.it_interval.tv_sec = 0; in main() 99 its.it_interval.tv_nsec = 0; in main() 100 its.it_value.tv_sec = 0; in main() 101 its.it_value.tv_nsec = 0; in main() [all …]
|
D | 2-1.c | 40 struct itimerspec its; in main() local 71 its.it_interval.tv_sec = TIMERINTERVALSEC; in main() 72 its.it_interval.tv_nsec = 0; in main() 73 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() 98 if (timer_settime(tid, 0, &its, NULL) != 0) { in main() 120 delta = timeelapsed - its.it_value.tv_sec; in main() 123 (int)its.it_value.tv_sec); in main() 127 its.it_interval.tv_sec += INCREMENT; in main() [all …]
|
D | 3-2.c | 37 struct itimerspec its; in main() local 63 its.it_interval.tv_sec = 0; in main() 64 its.it_interval.tv_nsec = 0; in main() 65 its.it_value.tv_sec = TIMEREXPIRE; in main() 66 its.it_value.tv_nsec = 0; in main() 68 if (timer_settime(tid, 0, &its, NULL) != 0) { in main() 76 its.it_value.tv_sec = 0; in main() 77 its.it_value.tv_nsec = 0; in main() 79 if (timer_settime(tid, 0, &its, NULL) != 0) { in main()
|
D | 9-1.c | 41 struct itimerspec its; in main() local 81 its.it_interval.tv_sec = 0; in main() 82 its.it_interval.tv_nsec = 0; in main() 83 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() 94 if (timer_settime(tid, 0, &its, NULL) != 0) { in main() 111 testnsecs = (unsigned long)its.it_value.tv_sec * 1000000000 + in main() 112 its.it_value.tv_nsec; in main()
|
D | 8-4.c | 32 struct itimerspec its, oits; in main() local 37 its.it_interval.tv_sec = RELOADVAL; in main() 38 its.it_value.tv_sec = TIMERSEC; in main() 39 its.it_interval.tv_nsec = 0; in main() 40 its.it_value.tv_nsec = 0; in main() 47 if (timer_settime(tid, 0, &its, &oits) != 0) { in main() 55 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
|
D | 5-3.c | 49 struct itimerspec its; in main() local 79 its.it_interval.tv_sec = 0; in main() 80 its.it_interval.tv_nsec = 0; in main() 81 its.it_value.tv_sec = ts.tv_sec; in main() 82 its.it_value.tv_nsec = 0; in main() 86 if (timer_settime(tid, flags, &its, NULL) != 0) { in main() 90 (int)its.it_value.tv_sec); in main() 94 its.it_value.tv_sec -= SUBTRACTAMOUNT; in main()
|
D | 8-3.c | 35 struct itimerspec its, oits; in main() local 40 its.it_interval.tv_sec = 0; in main() 41 its.it_interval.tv_nsec = 0; in main() 42 its.it_value.tv_sec = TIMERSEC; in main() 43 its.it_value.tv_nsec = 0; in main() 50 if (timer_settime(tid, 0, &its, &oits) != 0) { in main() 57 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
|
D | 8-2.c | 31 struct itimerspec its, oits; in main() local 36 its.it_interval.tv_sec = 0; in main() 37 its.it_interval.tv_nsec = 0; in main() 38 its.it_value.tv_sec = TIMERSEC; in main() 39 its.it_value.tv_nsec = 0; in main() 49 if (timer_settime(tid, 0, &its, &oits) != 0) { in main() 67 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
|
D | 8-1.c | 29 struct itimerspec its, oits; in main() local 34 its.it_interval.tv_sec = 0; in main() 35 its.it_interval.tv_nsec = 0; in main() 36 its.it_value.tv_sec = TIMERSEC; in main() 37 its.it_value.tv_nsec = 0; in main() 44 if (timer_settime(tid, 0, &its, &oits) != 0) { in main()
|
/external/mesa3d/src/gallium/state_trackers/clover/util/ |
D | adaptor.hpp | 56 iterator_adaptor(F f, std::tuple<Is...> &&its) : in iterator_adaptor() argument 57 f(f), its(std::move(its)) { in iterator_adaptor() 62 return tuple::apply(f, tuple::map(derefs(), its)); in operator *() 67 tuple::map(preincs(), its); in operator ++() 80 return its == jt.its; in operator ==() 85 return its != jt.its; in operator !=() 95 tuple::map(predecs(), its); in operator --() 108 tuple::map(advances_by(n), its); in operator +=() 114 tuple::map(advances_by(-n), its); in operator -=() 134 return std::get<0>(its) - std::get<0>(jt.its); in operator -() [all …]
|
/external/ltp/testcases/open_posix_testsuite/functional/timers/timers/ |
D | twoptimers.c | 39 struct itimerspec its; in main() local 61 its.it_value.tv_sec = ts.tv_sec + EXPIREDELTA; in main() 62 its.it_value.tv_nsec = ts.tv_nsec; in main() 63 its.it_interval.tv_sec = 0; in main() 64 its.it_interval.tv_nsec = 0; in main() 67 if (timer_settime(tid, flags, &its, NULL) != 0) { in main() 84 struct itimerspec its; in main() local 107 its.it_value.tv_sec = ts.tv_sec + EXPIREDELTA; in main() 108 its.it_value.tv_nsec = ts.tv_nsec; in main() 109 its.it_interval.tv_sec = 0; in main() [all …]
|
D | twoevtimers.c | 46 struct itimerspec its; in main() local 80 its.it_value.tv_sec = ts.tv_sec + EXPIREDELTA; in main() 81 its.it_value.tv_nsec = ts.tv_nsec; in main() 82 its.it_interval.tv_sec = 0; in main() 83 its.it_interval.tv_nsec = 0; in main() 86 if (timer_settime(tid1, flags, &its, NULL) != 0) { in main() 91 if (timer_settime(tid2, flags, &its, NULL) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/ |
D | 4-2.c | 52 struct itimerspec its; in main() local 87 its.it_interval.tv_sec = 0; in main() 88 its.it_interval.tv_nsec = 0; in main() 89 its.it_value.tv_sec = tpT0.tv_sec + TIMEROFFSET; in main() 90 its.it_value.tv_nsec = tpT0.tv_nsec; in main() 91 if (timer_settime(tid, flags, &its, NULL) != 0) { in main() 96 tpclock.tv_sec = its.it_value.tv_sec + CLOCKOFFSET; in main() 97 tpclock.tv_nsec = its.it_value.tv_nsec; in main()
|
D | 4-1.c | 45 struct itimerspec its; in main() local 91 its.it_interval.tv_sec = 0; in main() 92 its.it_interval.tv_nsec = 0; in main() 93 its.it_value.tv_sec = tpT0.tv_sec + TIMEROFFSET; in main() 94 its.it_value.tv_nsec = tpT0.tv_nsec; in main() 95 if (timer_settime(tid, flags, &its, NULL) != 0) { in main() 117 delta = tpT2.tv_sec - its.it_value.tv_sec; in main() 130 (int)tpT2.tv_sec, (int)its.it_value.tv_sec); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/speculative/ |
D | 12-1.c | 22 struct itimerspec its; in main() local 25 its.it_interval.tv_sec = 0; in main() 26 its.it_interval.tv_nsec = 0; in main() 27 its.it_value.tv_sec = 0; in main() 28 its.it_value.tv_nsec = 0; in main() 30 if (timer_settime(tid, 0, &its, NULL) == -1) { in main()
|
D | 12-2.c | 30 struct itimerspec its; in main() local 32 its.it_interval.tv_sec = 0; in main() 33 its.it_interval.tv_nsec = 0; in main() 34 its.it_value.tv_sec = 0; in main() 35 its.it_value.tv_nsec = 0; in main() 45 if (timer_settime(tid + 1, 0, &its, NULL) == -1) { in main()
|
D | 12-3.c | 28 struct itimerspec its; in main() local 30 its.it_interval.tv_sec = 0; in main() 31 its.it_interval.tv_nsec = 0; in main() 32 its.it_value.tv_sec = 0; in main() 33 its.it_value.tv_nsec = 0; in main() 47 if (timer_settime(tid, 0, &its, NULL) == -1) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/speculative/ |
D | 4-3.c | 61 struct itimerspec its; in main() local 96 its.it_interval.tv_sec = TIMERINTERVAL; in main() 97 its.it_interval.tv_nsec = 0; in main() 98 its.it_value.tv_sec = tpT0.tv_sec + TIMEROFFSET; in main() 99 its.it_value.tv_nsec = tpT0.tv_nsec; in main() 100 if (timer_settime(tid, flags, &its, NULL) != 0) { in main() 105 tpclock.tv_sec = its.it_value.tv_sec + EXPECTEDOVERRUNS * TIMERINTERVAL; in main() 106 tpclock.tv_nsec = its.it_value.tv_nsec; in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/ |
D | 2-1.c | 28 struct itimerspec its; in main() local 38 if (timer_gettime(tid, &its) != 0) { in main() 43 if (0 == its.it_value.tv_sec && 0 == its.it_value.tv_nsec) { in main() 48 (int)its.it_value.tv_sec, (int)its.it_value.tv_nsec); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/ |
D | 2-2.c | 39 struct itimerspec its; in main() local 79 its.it_interval.tv_sec = 0; in main() 80 its.it_interval.tv_nsec = tsres.tv_nsec; in main() 81 its.it_value.tv_sec = 0; in main() 82 its.it_value.tv_nsec = VALUENSEC; in main() 84 if (timer_settime(tid, 0, &its, NULL) != 0) { in main() 89 ts.tv_nsec = VALUENSEC + ((EXPECTEDOVERRUNS) * its.it_interval.tv_nsec); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/ |
D | 1-2.c | 33 struct itimerspec its; in main() local 48 its.it_interval.tv_sec = 0; in main() 49 its.it_interval.tv_nsec = 0; in main() 50 its.it_value.tv_sec = TIMERSEC; in main() 51 its.it_value.tv_nsec = 0; in main() 53 if (timer_settime(tid, 0, &its, NULL) == -1) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_create/ |
D | 9-1.c | 42 struct itimerspec its; in main() local 50 its.it_interval.tv_sec = 0; in main() 51 its.it_interval.tv_nsec = 0; in main() 52 its.it_value.tv_sec = TIMERSEC; in main() 53 its.it_value.tv_nsec = 0; in main() 69 if (timer_settime(tid, 0, &its, NULL) != 0) { in main()
|