/haiku-fatelf/src/system/libroot/posix/unistd/ |
H A D | alarm.c | 21 value.it_value.tv_sec = sec; 22 value.it_value.tv_usec = 0; 26 if (oldValue.it_value.tv_usec) 27 oldValue.it_value.tv_sec++; 29 return oldValue.it_value.tv_sec;
|
H A D | ualarm.c | 20 value.it_value.tv_sec = usec / 1000000; 21 value.it_value.tv_usec = usec % 1000000; 28 return (oldValue.it_value.tv_sec * 1000000) + oldValue.it_value.tv_usec;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/timer_gettime/ |
H A D | 1-3.c | 8 * Test that timer_gettime() sets sets itimerspec.it_value to the 45 itsset.it_value.tv_sec = 0; 46 itsset.it_value.tv_nsec = TIMERNSEC; 76 if (itsget.it_value.tv_sec > 0) { 79 (int) itsget.it_value.tv_sec); 83 deltans=(itsset.it_value.tv_nsec - ts.tv_nsec)- itsget.it_value.tv_nsec; 87 printf("%d > %d\n", (int) itsget.it_value.tv_nsec, 88 (int) itsset.it_value.tv_nsec - 98 printf("%d !~= %d\n", (int) itsget.it_value [all...] |
H A D | 2-2.c | 8 * Test that timer_gettime() sets itimerspec.it_value = 0 if 37 itsset.it_value.tv_sec = TIMERSEC; 38 itsset.it_value.tv_nsec = 0; 64 if ( (0 == itsget.it_value.tv_sec) && 65 (0 == itsget.it_value.tv_nsec) ) { 70 (int) itsget.it_value.tv_sec, 71 (int) itsget.it_value.tv_nsec);
|
H A D | 2-1.c | 8 * Test that timer_gettime() sets itimerspec.it_value = 0 if the timer 43 if ( (0 == its.it_value.tv_sec) && 44 (0 == its.it_value.tv_nsec) ) { 49 (int) its.it_value.tv_sec, 50 (int) its.it_value.tv_nsec);
|
H A D | 1-1.c | 8 * Test that timer_gettime() sets sets itimerspec.it_value to the 42 itsset.it_value.tv_sec = TIMERSEC; 43 itsset.it_value.tv_nsec = 0; 60 delta = itsset.it_value.tv_sec - itsget.it_value.tv_sec; 64 printf("%d > %d\n", (int) itsget.it_value.tv_sec, 65 (int) itsset.it_value.tv_sec); 74 printf("%d !~= %d\n", (int) itsget.it_value.tv_sec, 75 (int) itsset.it_value.tv_sec);
|
H A D | 1-2.c | 8 * Test that timer_gettime() sets sets itimerspec.it_value to the 44 itsset.it_value.tv_sec = TIMERSEC; 45 itsset.it_value.tv_nsec = 0; 67 delta = (itsset.it_value.tv_sec - SLEEPSEC) - itsget.it_value.tv_sec; 71 printf("%d > %d\n", (int) itsget.it_value.tv_sec, 72 (int) itsset.it_value.tv_sec - SLEEPSEC); 81 printf("%d !~= %d\n", (int) itsget.it_value.tv_sec, 82 (int) itsset.it_value.tv_sec - SLEEPSEC);
|
H A D | 3-1.c | 55 itsset.it_value.tv_sec = ts.tv_sec+TIMERSEC; 56 itsset.it_value.tv_nsec = ts.tv_nsec; 69 delta = TIMERSEC - itsget.it_value.tv_sec; 73 printf("%d > %d\n", (int) itsget.it_value.tv_sec, 74 (int) itsset.it_value.tv_sec); 83 printf("%d !~= %d\n", (int) itsget.it_value.tv_sec, 84 (int) itsset.it_value.tv_sec);
|
H A D | 1-4.c | 8 * Test that timer_gettime() sets itimerspec.it_value to the amount of 51 itsset.it_value.tv_sec = TIMERVALSEC; 52 itsset.it_value.tv_nsec = 0; 93 (SLEEPSEC - itsset.it_value.tv_sec); 94 delta = expectedleft - itsget.it_value.tv_sec; 98 printf("%d > %d\n", (int) itsget.it_value.tv_sec, 108 printf("%d !~= %d\n", (int) itsget.it_value.tv_sec, 109 (int) itsset.it_value.tv_sec - SLEEPSEC);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/timer_settime/ |
H A D | 8-2.c | 8 * Test that timer_settime() will return ovalue.it_value = 0 37 its.it_value.tv_sec = TIMERSEC; 38 its.it_value.tv_nsec = 0; 61 oits.it_value.tv_sec = 1000; oits.it_value.tv_nsec = 1000; 70 if ( (0 == oits.it_value.tv_sec) && 71 (0 == oits.it_value.tv_nsec) && 78 (int) oits.it_value.tv_sec, 79 (int) oits.it_value.tv_nsec);
|
H A D | 8-3.c | 8 * Test that timer_settime() will return ovalue.it_value = the previous 13 * - compare TIMELEFT and the value in ovalue.it_value and ensure they 41 its.it_value.tv_sec = TIMERSEC; 42 its.it_value.tv_nsec = 0; 61 if (abs(oits.it_value.tv_sec-TIMELEFT) <= ACCEPTABLEDELTA) { 65 printf("Test FAILED: time left %d oits.it_value.tv_sec %d\n", 66 TIMELEFT, (int) oits.it_value.tv_sec);
|
H A D | 9-2.c | 95 its.it_value.tv_sec = tsbefore.tv_sec + 97 its.it_value.tv_nsec = tsbefore.tv_nsec + 100 its.it_value.tv_sec = tsbefore.tv_sec + 102 its.it_value.tv_nsec = tsbefore.tv_nsec + 108 (int) its.it_value.tv_sec, 109 (int) its.it_value.tv_nsec); 129 if (tsafter.tv_sec < its.it_value.tv_sec) { 132 (int) its.it_value.tv_sec); 134 } else if (tsafter.tv_sec == its.it_value.tv_sec) { 135 if (tsafter.tv_nsec < its.it_value [all...] |
H A D | 8-1.c | 8 * Test that timer_settime() will return ovalue.it_value = 0 35 its.it_value.tv_sec = TIMERSEC; 36 its.it_value.tv_nsec = 0; 48 if ( (0 == oits.it_value.tv_sec) && 49 (0 == oits.it_value.tv_nsec) && 56 (int) oits.it_value.tv_sec, 57 (int) oits.it_value.tv_nsec);
|
H A D | 2-1.c | 9 * expiration to value.it_value if the timer was already armed. 11 * - set up a timer with value.it_value = V and value.it_interval > 0 13 * - change time value to value.it_value = V' 73 its.it_value.tv_sec = TIMERVALUESEC; 74 its.it_value.tv_nsec = 0; 86 * - get the time again => value.it_value 87 * - set new value.it_value and value.it_interval to old + INVERVAL 92 printf("Test for value %d\n", (int) its.it_value.tv_sec); 120 delta = timeelapsed-its.it_value.tv_sec; 123 (int) its.it_value [all...] |
H A D | 9-1.c | 81 its.it_value.tv_sec = timeroffsets[i][0]; 82 its.it_value.tv_nsec = timeroffsets[i][1]; 85 (int) its.it_value.tv_sec, 86 (int) its.it_value.tv_nsec); 111 testnsecs = (unsigned long) its.it_value.tv_sec*1000000000 + 112 its.it_value.tv_nsec;
|
H A D | 13-1.c | 9 * - value.it_value is not = 0 (so disabled) 31 * element 0 - value.it_value.tv_sec 32 * element 1 - value.it_value.tv_nsec 37 {1, -1, 0, 0}, // value.it_value.tv_nsec < 0 38 {1, -2147483647, 0, 0}, // value.it_value.tv_nsec < 0 39 {1, -1073743192, 0, 0}, // value.it_value.tv_nsec < 0 40 {1, 1000000000, 0, 0}, // value.it_value.tv_nsec >= 1K mi 41 {1, 1000000001, 0, 0}, // value.it_value.tv_nsec >= 1K mi 42 {1, 2147483647, 0, 0}, // value.it_value.tv_nsec >= 1K mi 43 {1, 1075002478, 0, 0}, // value.it_value [all...] |
H A D | 3-2.c | 8 * Test that if value.it_value = 0, the timer is disarmed. Test by 65 its.it_value.tv_sec = TIMEREXPIRE; 66 its.it_value.tv_nsec = 0; 74 * Second, set value.it_value = 0 76 its.it_value.tv_sec = 0; 77 its.it_value.tv_nsec = 0;
|
H A D | 5-3.c | 81 its.it_value.tv_sec = ts.tv_sec; 82 its.it_value.tv_nsec = 0; 89 printf("its.it_value.tv_sec was %d\n", 90 (int) its.it_value.tv_sec); 94 its.it_value.tv_sec -= SUBTRACTAMOUNT;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/definitions/time_h/ |
H A D | 5-1.c | 20 value = t.it_value;
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | ufuncs.c | 52 it.it_value.tv_sec = secs; 53 it.it_value.tv_usec = usecs; 59 if (oit.it_value.tv_usec) 60 oit.it_value.tv_sec++; 61 return (oit.it_value.tv_sec);
|
/haiku-fatelf/src/system/libroot/posix/sys/ |
H A D | itimer.cpp | 27 return timeval_to_timespec(val.it_value, spec.it_value) 35 timespec_to_timeval(spec.it_value, val.it_value);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/clock_settime/ |
H A D | 4-2.c | 87 its.it_value.tv_sec = tpT0.tv_sec + TIMEROFFSET; 88 its.it_value.tv_nsec = tpT0.tv_nsec; 94 tpclock.tv_sec = its.it_value.tv_sec + CLOCKOFFSET; 95 tpclock.tv_nsec = its.it_value.tv_nsec;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/fork/ |
H A D | 13-1.c | 103 it.it_value.tv_sec = 10; 104 it.it_value.tv_usec = 0; 151 if ( it.it_value.tv_sec != 0 ) 163 if ( it.it_value.tv_sec != 0 ) 175 if ( it.it_value.tv_sec != 0 )
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/timer_create/ |
H A D | 9-1.c | 52 its.it_value.tv_sec = TIMERSEC; 53 its.it_value.tv_nsec = 0;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/timer_delete/ |
H A D | 1-2.c | 50 its.it_value.tv_sec = TIMERSEC; 51 its.it_value.tv_nsec = 0;
|