/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_timedsend/ |
H A D | 9-1.c | 38 struct timespec ts; local 56 ts.tv_sec=time(NULL)+1; 57 ts.tv_nsec=0; 58 if (mq_timedsend(queue+1, msgptr, strlen(msgptr), 1, &ts) != -1) {
|
H A D | 20-1.c | 55 struct timespec ts; local 74 ts.tv_sec=currsec+TIMEOUT; 75 ts.tv_nsec=0; 88 if (mq_timedsend(gqueue, msgptr, strlen(msgptr), 1, &ts) 110 if (time(NULL) > ts.tv_sec+DELTA) {
|
H A D | 15-1.c | 55 struct timespec ts; local 74 ts.tv_sec=currsec-5; //time in past 75 ts.tv_nsec=0; 88 if (mq_timedsend(gqueue, msgptr, strlen(msgptr), 1, &ts)
|
H A D | 5-1.c | 76 struct timespec ts; local 79 ts.tv_sec=INT32_MAX; 80 ts.tv_nsec=0; 84 mq_timedsend(gqueue, msgptr, strlen(msgptr), 1, &ts);
|
H A D | 5-2.c | 81 struct timespec ts; local 83 ts.tv_sec=INT32_MAX; 84 ts.tv_nsec=0; 89 strlen(msgptr), 1, &ts) == -1) {
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sem_timedwait/ |
H A D | 9-1.c | 42 struct timespec ts; local 72 ts.tv_sec = time(NULL)+3; 73 ts.tv_nsec = 0; 75 sem_timedwait(&mysemp, &ts);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sigtimedwait/ |
H A D | 1-1.c | 61 struct timespec ts; local 83 ts.tv_sec=SIGTIMEDWAITSEC; 84 ts.tv_nsec=0; 97 if (sigtimedwait(&selectset, NULL, &ts) != -1) {
|
H A D | 2-1.c | 62 struct timespec ts; local 84 ts.tv_sec=SIGTIMEDWAITSEC; 85 ts.tv_nsec=0; 98 if (sigtimedwait(&selectset, NULL, &ts) != -1) {
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/timer_getoverrun/ |
H A D | 2-2.c | 39 struct timespec ts; local 78 ts.tv_nsec = VALUENSEC + ((EXPECTEDOVERRUNS)*INTERVALNSEC); 79 ts.tv_sec = 0; 80 if (nanosleep(&ts, NULL) != 0) {
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/timer_gettime/ |
H A D | 3-1.c | 36 struct timespec ts; local 48 if (clock_gettime(CLOCK_REALTIME, &ts) != 0) { 55 itsset.it_value.tv_sec = ts.tv_sec+TIMERSEC; 56 itsset.it_value.tv_nsec = ts.tv_nsec;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/timer_settime/ |
H A D | 1-2.c | 42 struct timespec ts, tsleft; local 73 ts.tv_sec=timervals[i][0]+SLEEPDELTA; 74 ts.tv_nsec=timervals[i][1]; 86 if (nanosleep(&ts, &tsleft) != -1) {
|
H A D | 3-1.c | 46 struct timespec ts, tsleft; local 62 ts.tv_sec=SLEEPDELTA; 63 ts.tv_nsec=0; 84 if (nanosleep(&ts, &tsleft) == -1) {
|
H A D | 3-2.c | 38 struct timespec ts; local 87 ts.tv_sec=TIMEREXPIRE; 88 ts.tv_nsec=0; 90 if (nanosleep(&ts, NULL) == -1) {
|
/haiku-fatelf/src/tests/system/benchmarks/libMicro/ |
H A D | mutex.c | 139 tsd_t *ts = (tsd_t *)tsd; local 152 ts->ts_lock = lock; 169 tsd_t *ts = (tsd_t *)tsd; local 174 (void) pthread_mutex_lock(ts->ts_lock); 177 (void) pthread_mutex_unlock(ts->ts_lock);
|
H A D | poll.c | 165 tsd_t *ts = (tsd_t *)tsd; local 169 if (ts->ts_once++ == 0) { 170 ts->ts_pfds = (pfd_t *)malloc(optn * sizeof (pfd_t)); 171 if (ts->ts_pfds == NULL) { 176 ts->ts_pfds[i].fd = fds[i]; 177 ts->ts_pfds[i].events = POLLIN; 181 ts->ts_pfds[i].events |= POLLOUT; 191 tsd_t *ts = (tsd_t *)tsd; local 195 if (poll(ts->ts_pfds, optn, 0) != target) {
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/clock_settime/ |
H A D | 5-1.c | 46 struct timespec tsclock, ts, tsleft, tsreset; local 110 ts.tv_sec=TIMERSEC+SLEEPDELTA; 111 ts.tv_nsec=0; 113 if (nanosleep(&ts, &tsleft) != -1) { 126 (int) ts.tv_sec- (int) tsleft.tv_sec,
|
H A D | 5-2.c | 46 struct timespec tsclock, ts, tsleft, tsreset; local 110 ts.tv_sec=TIMERSEC+SLEEPDELTA; 111 ts.tv_nsec=0; 113 if (nanosleep(&ts, &tsleft) != -1) { 126 (int) ts.tv_sec- (int) tsleft.tv_sec,
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_timedreceive/ |
H A D | 11-1.c | 44 struct timespec ts; local 66 ts.tv_sec = time(NULL) + 1; 67 ts.tv_nsec = 0; 68 if (mq_timedreceive(mqdes, msgrv1, BUFFER, NULL, &ts) != strlen(msgptr2)) { 72 if (mq_timedreceive(mqdes, msgrv2, BUFFER, NULL, &ts) != strlen(msgptr1)) {
|
H A D | 18-1.c | 50 struct timespec ts; local 72 ts.tv_sec = time(NULL) + TIMEOUT; 73 ts.tv_nsec = 0; 74 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
|
H A D | 18-2.c | 49 struct timespec ts; local 72 ts.tv_sec = time(NULL) - TIMEOUT; 73 ts.tv_nsec = 0; 74 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) != -1) {
|
H A D | 5-2.c | 47 struct timespec ts; local 71 ts.tv_sec = time(NULL) + TIMEOUT; 72 ts.tv_nsec = 0; 74 mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 4-3.c | 164 struct timespec ts; local 175 ret = clock_gettime(CLOCK_REALTIME, &ts); 178 ts.tv_nsec += TIMEOUT; 179 while (ts.tv_nsec >= 1000000000) 181 ts.tv_nsec -= 1000000000; 182 ts.tv_sec += 1; 187 ret = pthread_cond_timedwait(&(data.cnd),&(data.mtx),&ts); 214 struct timespec ts, tsrem; local 220 ts.tv_sec=0; 221 ts [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/timers/timers/ |
H A D | twoptimers.c | 28 struct timespec ts; local 30 if (clock_gettime(CLOCK_REALTIME, &ts) != 0) { 61 its.it_value.tv_sec = ts.tv_sec + EXPIREDELTA; 62 its.it_value.tv_nsec = ts.tv_nsec; 107 its.it_value.tv_sec = ts.tv_sec + EXPIREDELTA; 108 its.it_value.tv_nsec = ts.tv_nsec;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 3-1.c | 58 struct timespec timeout, ts; local 62 clock_gettime(CLOCK_REALTIME, &ts); 63 currsec1.tv_sec = ts.tv_sec; 64 currsec1.tv_usec = ts.tv_nsec / 1000; 66 (void)ts; 94 clock_gettime(CLOCK_REALTIME, &ts); 95 currsec2.tv_sec = ts.tv_sec; 96 currsec2.tv_usec = ts.tv_nsec / 1000;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 3-1.c | 59 struct timespec timeout, ts; local 63 rc = clock_gettime(CLOCK_REALTIME, &ts); 69 currsec1.tv_sec = ts.tv_sec; 70 currsec1.tv_usec = ts.tv_nsec / 1000; 72 (void)ts; 105 rc = clock_gettime(CLOCK_REALTIME, &ts); 111 currsec2.tv_sec = ts.tv_sec; 112 currsec2.tv_usec = ts.tv_nsec / 1000;
|