Searched refs:ts (Results 201 - 225 of 317) sorted by relevance

1234567891011>>

/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_cond_timedwait/
H A Dstress2.c193 struct timespec ts; local
203 ret = clock_gettime(cd->cid, &ts);
205 ts.tv_sec += TIMEOUT * SCALABILITY_FACTOR;
213 ret = pthread_cond_timedwait(&(cd->cnd), &(cd->mtx), &ts);
273 struct timespec ts; local
297 ret = clock_gettime(cd->cid, &ts);
299 randval = (ts.tv_sec + (ts.tv_nsec >> 10) ) % (NCHILDREN * SCALABILITY_FACTOR + 2);
314 cd->boolean = (ts.tv_sec & 1)?-1:1;
H A Dstress1.c203 struct timespec ts; local
214 ret = clock_gettime(cd->cid, &ts);
217 ts.tv_sec += TIMEOUT;
219 ret = pthread_cond_timedwait(&(cd->cnd), &(cd->mtx), &ts);
247 struct timespec ts; local
272 ret = clock_gettime(cd->cid, &ts);
275 ts.tv_sec += TIMEOUT;
277 ret = pthread_cond_timedwait(&(cd->cnd), &(cd->mtx), &ts);
H A Ds-c.c162 * compute the difference and put it into ts.
164 void do_measure(pthread_mutex_t *mtx, pthread_cond_t *cnd, clockid_t cid, struct timespec *ts) argument
196 ts->tv_sec = ts_clk.tv_sec - ts_cnd.tv_sec;
197 ts->tv_nsec = ts_clk.tv_nsec - ts_cnd.tv_nsec;
198 if (ts->tv_nsec < 0)
200 ts->tv_nsec += 1000000000;
201 ts->tv_sec -= 1;
204 if (ts->tv_sec < 0)
274 struct timespec ts, ts_cumul; local
398 do_measure(&mtx, &cnd, test_scenar[s].cid, &ts);
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_cond_wait/
H A Dstress.c193 struct timespec ts; local
203 ret = clock_gettime(cd->cid, &ts);
205 ts.tv_sec += TIMEOUT * SCALABILITY_FACTOR;
213 ret = pthread_cond_timedwait(&(cd->cnd), &(cd->mtx), &ts);
273 struct timespec ts; local
297 ret = clock_gettime(cd->cid, &ts);
299 randval = (ts.tv_sec + (ts.tv_nsec >> 10) ) % (NCHILDREN * SCALABILITY_FACTOR + 2);
314 cd->boolean = (ts.tv_sec & 1)?-1:1;
H A Dstress2.c193 struct timespec ts; local
203 ret = clock_gettime(cd->cid, &ts);
205 ts.tv_sec += TIMEOUT * SCALABILITY_FACTOR;
213 ret = pthread_cond_timedwait(&(cd->cnd), &(cd->mtx), &ts);
273 struct timespec ts; local
297 ret = clock_gettime(cd->cid, &ts);
299 randval = (ts.tv_sec + (ts.tv_nsec >> 10) ) % (NCHILDREN * SCALABILITY_FACTOR + 2);
314 cd->boolean = (ts.tv_sec & 1)?-1:1;
/haiku-fatelf/src/libs/ncurses/ncurses/widechar/
H A Dlib_box_set.c47 const ARG_CH_T ts, const ARG_CH_T bs,
59 _tracech_t2(3, ts),
73 RENDER_WITH_DEFAULT(ts, WACS_HLINE);
45 wborder_set(WINDOW *win, const ARG_CH_T ls, const ARG_CH_T rs, const ARG_CH_T ts, const ARG_CH_T bs, const ARG_CH_T tl, const ARG_CH_T tr, const ARG_CH_T bl, const ARG_CH_T br) argument
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/threads/pi_test/
H A Dpitest-2.c98 struct timespec ts; local
113 ts.tv_sec = 0;
114 ts.tv_nsec = tp->sleep_ms * 1000 * 1000;
120 rc = nanosleep(&ts, NULL);
163 struct timespec ts; local
176 ts.tv_sec = 0;
177 ts.tv_nsec = period * 1000 * 1000;
185 rc = nanosleep(&ts, NULL);
H A Dpitest-3.c100 struct timespec ts; local
117 ts.tv_sec = 0;
118 ts.tv_nsec = tp->sleep_ms * 1000 * 1000;
124 rc = nanosleep(&ts, NULL);
173 struct timespec ts; local
189 ts.tv_sec = 0;
190 ts.tv_nsec = period * 1000 * 1000;
198 rc = nanosleep(&ts, NULL);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/
H A Dhelper.c96 char *ts="[??:??:??]"; local
177 printf(ts);
/haiku-fatelf/src/apps/cortex/addons/LoggingConsumer/
H A DNodeHarnessWin.cpp210 BTimeSource* ts = r->MakeTimeSourceFor(mTimeSource); local
211 r->StartNode(mConnection.consumer, ts->Now());
212 ts->Release();
224 BTimeSource* ts = r->MakeTimeSourceFor(mConnection.consumer); local
226 r->StartNode(mConnection.producer, ts->Now() + latency);
227 ts->Release();
/haiku-fatelf/src/bin/network/tcpdump/libpcap/
H A Dpcap-dag.c395 register unsigned long long ts; local
398 ts = SWAP_TS(header->ts);
400 ts = header->ts;
403 pcap_header.ts.tv_sec = ts >> 32;
404 ts = (ts & 0xffffffffULL) * 1000000;
405 ts
[all...]
H A Dsavefile.c1066 hdr->ts.tv_sec = SWAPLONG(sf_hdr.ts.tv_sec);
1067 hdr->ts.tv_usec = SWAPLONG(sf_hdr.ts.tv_usec);
1071 hdr->ts.tv_sec = sf_hdr.ts.tv_sec;
1072 hdr->ts.tv_usec = sf_hdr.ts.tv_usec;
1226 sf_hdr.ts.tv_sec = h->ts
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5212/
H A Dar5212_xmit.c841 struct ath_desc *ds, struct ath_tx_status *ts)
856 ts->ts_seqnum = MS(ads->ds_txstatus1, AR_SeqNum);
857 ts->ts_tstamp = MS(ads->ds_txstatus0, AR_SendTimestamp);
858 ts->ts_status = 0;
861 ts->ts_status |= HAL_TXERR_XRETRY;
863 ts->ts_status |= HAL_TXERR_FILT;
865 ts->ts_status |= HAL_TXERR_FIFO;
871 ts->ts_finaltsi = MS(ads->ds_txstatus1, AR_FinalTSIndex);
872 switch (ts->ts_finaltsi) {
874 ts
840 ar5212ProcTxDesc(struct ath_hal *ah, struct ath_desc *ds, struct ath_tx_status *ts) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5210/
H A Dar5210_xmit.c586 struct ath_desc *ds, struct ath_tx_status *ts)
594 ts->ts_seqnum = ads->ds_status1 & AR_SeqNum;
595 ts->ts_tstamp = MS(ads->ds_status0, AR_SendTimestamp);
596 ts->ts_status = 0;
599 ts->ts_status |= HAL_TXERR_XRETRY;
601 ts->ts_status |= HAL_TXERR_FILT;
603 ts->ts_status |= HAL_TXERR_FIFO;
605 ts->ts_rate = MS(ads->ds_ctl0, AR_XmitRate);
606 ts->ts_rssi = MS(ads->ds_status1, AR_AckSigStrength);
607 ts
585 ar5210ProcTxDesc(struct ath_hal *ah, struct ath_desc *ds, struct ath_tx_status *ts) argument
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/
H A D2-5.c118 struct timespec ts; local
121 ret = clock_gettime(data.cid, &ts);
123 ts.tv_sec += 30;
138 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx1), &ts);
165 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx2), &ts);
H A D2-4.c156 struct timespec ts; local
172 ret = clock_gettime(td->cid, &ts);
179 ts.tv_sec += 10;
181 output("[child] Will timeout at %i.%09i\n", ts.tv_sec, ts.tv_nsec);
187 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts);
H A D4-2.c201 struct timespec ts, ts_junk; local
443 ret = clock_gettime(cid, &ts);
447 ts_junk.tv_sec = junks_ts[j].sec_val + (junks_ts[j].sec_is_offset?ts.tv_sec:0) ;
448 ts_junk.tv_nsec = junks_ts[j].nsec_val + (junks_ts[j].nsec_is_offset?ts.tv_nsec:0) ;
456 output("Now is: %i.%09li\n", ts.tv_sec, ts.tv_nsec);
/haiku-fatelf/src/bin/
H A Dwatch.c187 char *ts = ctime(&t); local
188 int tsl = strlen(ts);
211 mvaddstr(0, width - tsl + 1, ts);
/haiku-fatelf/src/libs/ncurses/ncurses/base/
H A Dlib_box.c62 chtype ts, chtype bs,
74 _tracechtype2(3, ts),
86 RENDER_WITH_DEFAULT(ts, ACS_HLINE);
60 wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br) argument
/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-wb.c322 u_int32_t ts = EXTRACT_32BITS(&dh->dh_ts); local
323 printf("%d", ts - ss + 1);
324 if (ss > ts || ts > es) {
326 if (ts < ss)
329 ss = ts;
/haiku-fatelf/src/libs/ncurses/tack/
H A Dcontrol.c217 char *ts, *ls; local
222 for (ts = cb; (*ts = *cap); ++cap) {
224 ls = ts;
226 ++ts;
229 ts = ls;
/haiku-fatelf/src/add-ons/kernel/file_systems/udf/
H A DIcb.cpp185 timestamp ts; local
187 ts = _ExtendedEntry()->access_date_and_time();
189 ts = _FileEntry()->access_date_and_time();
191 if (decode_time(ts, timespec) != B_OK) {
202 timestamp ts; local
204 ts = _ExtendedEntry()->modification_date_and_time();
206 ts = _FileEntry()->modification_date_and_time();
208 if (decode_time(ts, timespec) != B_OK) {
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sigaction/
H A D28-1.c130 char *ts = "[??:??:??]"; local
141 printf( ts );
H A D28-10.c130 char *ts = "[??:??:??]"; local
141 printf( ts );
H A D28-11.c130 char *ts = "[??:??:??]"; local
141 printf( ts );

Completed in 210 milliseconds

1234567891011>>