Searched refs:ts (Results 151 - 175 of 317) sorted by relevance

1234567891011>>

/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mq_timedsend/
H A D9-1.c38 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 D20-1.c55 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 D15-1.c55 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 D5-1.c76 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 D5-2.c81 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 D9-1.c42 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 D1-1.c61 struct timespec ts; local
83 ts.tv_sec=SIGTIMEDWAITSEC;
84 ts.tv_nsec=0;
97 if (sigtimedwait(&selectset, NULL, &ts) != -1) {
H A D2-1.c62 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 D2-2.c39 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 D3-1.c36 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 D1-2.c42 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 D3-1.c46 struct timespec ts, tsleft; local
62 ts.tv_sec=SLEEPDELTA;
63 ts.tv_nsec=0;
84 if (nanosleep(&ts, &tsleft) == -1) {
H A D3-2.c38 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 Dmutex.c139 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 Dpoll.c165 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 D5-1.c46 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 D5-2.c46 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 D11-1.c44 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 D18-1.c50 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 D18-2.c49 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 D5-2.c47 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 D4-3.c164 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 Dtwoptimers.c28 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 D3-1.c58 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 D3-1.c59 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;

Completed in 139 milliseconds

1234567891011>>