Searched refs:tv (Results 76 - 100 of 531) sorted by relevance

1234567891011>>

/freebsd-current/tests/sys/net/routing/
H A Drtsock_print.h264 struct timeval tv; local
268 gettimeofday(&tv, NULL);
269 localtime_r(&tv.tv_sec, &tm_res);
285 struct timeval tv; local
286 gettimeofday(&tv, NULL);
288 (int)(rtm->rtm_rmx.rmx_expire - tv.tv_sec), rtm->rtm_rmx.rmx_expire);
313 struct timeval tv; local
317 gettimeofday(&tv, NULL);
318 localtime_r(&tv.tv_sec, &tm_res);
349 struct timeval tv; local
[all...]
/freebsd-current/contrib/libevent/include/event2/
H A Devent.h838 @param tv the amount of time after which the loop should terminate,
967 #define evtimer_add(ev, tv) event_add((ev), (tv))
969 #define evtimer_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv))
979 #define evsignal_add(ev, tv) event_add((ev), (tv))
985 #define evsignal_pending(ev, tv) event_pending((ev), EV_SIGNAL, (tv))
998 #define evuser_pending(ev, tv) event_pendin
[all...]
/freebsd-current/contrib/unbound/util/
H A Dtimehist.h91 * @param tv: time value
93 void timehist_insert(struct timehist* hist, struct timeval* tv);
H A Dub_event.c387 ub_event_add(struct ub_event* ev, struct timeval* tv) argument
389 return event_add(AS_EVENT(ev), tv);
400 void (*cb)(int, short, void*), void* arg, struct timeval* tv)
405 return evtimer_add(AS_EVENT(ev), tv);
415 ub_signal_add(struct ub_event* ev, struct timeval* tv) argument
417 return signal_add(AS_EVENT(ev), tv);
456 struct timeval *tv;
457 comm_base_timept(cb, &tt, &tv);
458 if(gettimeofday(tv, NULL) < 0) {
462 *tt = tv
399 ub_timer_add(struct ub_event* ev, struct ub_event_base* base, void (*cb)(int, short, void*), void* arg, struct timeval* tv) argument
[all...]
H A Dub_event_pluggable.c180 my_event_add(struct ub_event* ev, struct timeval* tv) argument
182 return event_add(&AS_MY_EVENT(ev)->ev, tv);
193 void (*cb)(int, short, void*), void* arg, struct timeval* tv)
199 return evtimer_add(&AS_MY_EVENT(ev)->ev, tv);
209 my_signal_add(struct ub_event* ev, struct timeval* tv) argument
211 return signal_add(&AS_MY_EVENT(ev)->ev, tv);
270 my_event_base_loopexit(struct ub_event_base* base, struct timeval* tv) argument
272 return event_base_loopexit(AS_MY_EVENT_BASE(base)->base, tv);
585 ub_event_add(struct ub_event* ev, struct timeval* tv) argument
590 return (*ev->vmt->add)(ev, tv);
192 my_timer_add(struct ub_event* ev, struct ub_event_base* base, void (*cb)(int, short, void*), void* arg, struct timeval* tv) argument
607 ub_timer_add(struct ub_event* ev, struct ub_event_base* base, void (*cb)(int, short, void*), void* arg, struct timeval* tv) argument
630 ub_signal_add(struct ub_event* ev, struct timeval* tv) argument
677 struct timeval *tv; local
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/
H A Dt_raise.c134 struct timespec tv, tr; local
144 tv.tv_sec = 0;
145 tv.tv_nsec = 2;
154 ATF_REQUIRE(nanosleep(&tv, &tr) == 0);
H A Dt_sleep.c113 struct timeval tv; local
115 TIMESPEC_TO_TIMEVAL(&tv, delay);
116 if (select(0, NULL, NULL, NULL, &tv) == -1)
128 struct timeval tv; local
130 TIMESPEC_TO_TIMEVAL(&tv, delay);
142 struct timeval tv; local
144 TIMESPEC_TO_TIMEVAL(&tv, delay);
/freebsd-current/tools/test/stress2/testcases/mkfifo/
H A Dmkfifo.c48 struct timeval tv; local
59 tv.tv_sec = 10;
60 tv.tv_usec = 0;
61 if (select(fd + 1, &set, NULL, NULL, &tv) == 1) {
/freebsd-current/lib/libc/stdio/
H A Dxprintf_time.c61 struct timeval *tv; local
68 tv = *((struct timeval **)arg[0]);
69 t = tv->tv_sec;
70 nsec = tv->tv_usec * 1000;
/freebsd-current/sys/dev/isci/
H A Disci_logger.c54 struct timeval tv; local
62 microtime(&tv);
64 printf("isci: %d:%06d %s %s", (int)tv.tv_sec, (int)tv.tv_usec,
/freebsd-current/usr.sbin/ngctl/
H A Dmsg.c99 struct timeval tv; local
104 memset(&tv, 0, sizeof(tv));
105 switch (select(csock + 1, &rfds, NULL, NULL, &tv)) {
/freebsd-current/usr.bin/rwall/
H A Drwall.c69 struct timeval tv; local
92 tv.tv_sec = 15; /* XXX ?? */
93 tv.tv_usec = 0;
95 (xdrproc_t)xdr_void, &res, tv) != RPC_SUCCESS) {
/freebsd-current/contrib/ntp/sntp/
H A Dutilities.h23 char *tv_to_str(const struct timeval *tv);
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_thread.c113 struct timeval tv; local
114 evutil_timerclear(&tv);
115 tv.tv_sec = 0;
116 tv.tv_usec = 3000;
121 assert(evtimer_add(&ev, &tv) == 0);
149 struct timeval tv; local
153 tv.tv_usec = 100000;
154 tv.tv_sec = 0;
155 event_base_loopexit(base, &tv);
171 struct timeval tv; local
395 struct timeval tv; local
512 struct timeval tv = {0,0}; local
[all...]
H A Dbench.c149 struct timeval *tv; local
227 tv = run_once();
228 if (tv == NULL)
231 tv->tv_sec * 1000000L + tv->tv_usec);
/freebsd-current/contrib/libevent/test/
H A Dregress_thread.c113 struct timeval tv; local
114 evutil_timerclear(&tv);
115 tv.tv_sec = 0;
116 tv.tv_usec = 3000;
121 assert(evtimer_add(&ev, &tv) == 0);
149 struct timeval tv; local
153 tv.tv_usec = 100000;
154 tv.tv_sec = 0;
155 event_base_loopexit(base, &tv);
171 struct timeval tv; local
395 struct timeval tv; local
512 struct timeval tv = {0,0}; local
[all...]
H A Dbench.c149 struct timeval *tv; local
227 tv = run_once();
228 if (tv == NULL)
231 tv->tv_sec * 1000000L + tv->tv_usec);
/freebsd-current/lib/libc/rpc/
H A Dauth_time.c246 struct timeval tv; local
345 tv.tv_sec = 5;
346 tv.tv_usec = 0;
349 (xdrproc_t)xdr_u_long, &thetime, tv);
457 gettimeofday(&tv, 0);
484 tv.tv_sec += (tv.tv_sec > 500000) ? 1 : 0;
485 delta = (thetime > tv.tv_sec) ? thetime - tv.tv_sec :
486 tv
[all...]
/freebsd-current/contrib/mtree/
H A Dcompare.c324 struct timeval tv[2]; local
331 TIMESPEC_TO_TIMEVAL(&tv[0], &s->st_mtimespec);
332 TIMESPEC_TO_TIMEVAL(&tv[1], &ps->st_mtimespec);
336 tv[0].tv_sec = smtime;
337 tv[0].tv_usec = 0;
338 tv[1].tv_sec = pmtime;
339 tv[1].tv_usec = 0;
342 if (tv[0].tv_sec != tv[1].tv_sec ||
343 tv[
[all...]
/freebsd-current/crypto/heimdal/kdc/
H A Dkdc-replay.c122 struct timeval tv; local
169 tv.tv_sec = t;
170 tv.tv_usec = 0;
172 krb5_kdc_update_time(&tv);
173 krb5_set_real_time(context, tv.tv_sec, 0);
/freebsd-current/sys/netinet/
H A Dtcp_hpts.c432 tcp_hpts_log(struct tcp_hpts_entry *hpts, struct tcpcb *tp, struct timeval *tv, argument
454 log.u_bbr.timeStamp = tcp_tv_to_usectick(tv);
466 0, &log, false, tv);
818 struct timeval tv; local
833 microuptime(&tv);
877 wheel_cts = tcp_tv_to_hptstick(&tv);
966 struct timeval tv; local
969 tv.tv_sec = 0;
970 tv.tv_usec = 0;
972 tv
1081 struct timeval tv; local
1573 struct timeval tv; local
1624 struct timeval tv; local
1816 struct timeval tv; local
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libpthread/
H A Dt_cond.c448 struct timeval tv; local
455 gettimeofday(&tv, NULL);
456 tv.tv_sec -= 2; /* Place the time in the past */
457 TIMEVAL_TO_TIMESPEC(&tv, &ts);
464 tv.tv_sec = 0;
465 tv.tv_usec = 0;
466 TIMEVAL_TO_TIMESPEC(&tv, &ts);
477 gettimeofday(&tv, NULL);
478 tv.tv_sec -= 2; /* Place the time in the past */
479 TIMEVAL_TO_TIMESPEC(&tv,
[all...]
/freebsd-current/sys/kern/
H A Dkern_clock.c590 tvtohz(struct timeval *tv) argument
600 if (__predict_false(tv->tv_usec < 0)) {
601 tv->tv_sec += tv->tv_usec / 1000000;
602 tv->tv_usec = tv->tv_usec % 1000000;
604 if (__predict_true(tv->tv_usec < 0)) {
605 tv->tv_usec += 1000000;
606 tv->tv_sec -= 1;
609 } else if (__predict_false(tv
[all...]
/freebsd-current/contrib/ntp/include/
H A Dtimepps-SCO.h392 struct timeval tv; local
425 if (ioctl(instance->filedes, TIOCDCDTIMESTAMP, &tv) < 0) {
435 if (tv.tv_sec != handle->tv_save.tv_sec || tv.tv_usec != handle->tv_save.tv_usec) {
436 handle->tv_save = tv;
446 infobuf.assert_timestamp.tv_sec = tv.tv_sec;
447 infobuf.assert_timestamp.tv_nsec = tv.tv_usec * 1000;
/freebsd-current/contrib/ofed/opensm/complib/
H A Dcl_timer.c420 struct timeval tv; local
422 gettimeofday(&tv, NULL);
425 tstamp = ((uint64_t) tv.tv_sec * 1000000) + (uint64_t) tv.tv_usec;
432 struct timeval tv; local
434 gettimeofday(&tv, NULL);
436 return (tv.tv_sec);

Completed in 323 milliseconds

1234567891011>>