Searched refs:tv (Results 226 - 250 of 531) sorted by relevance

1234567891011>>

/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_iocp.c93 struct timeval tv; local
99 tv.tv_sec = 0;
100 tv.tv_usec = ms * 1000;
102 EVTHREAD_COND_WAIT_TIMED(count_cond, count_lock, &tv);
/freebsd-current/contrib/pf/libevent/
H A Devbuffer.c56 struct timeval tv, *ptv = NULL; local
59 timerclear(&tv);
60 tv.tv_sec = timeout;
61 ptv = &tv;
/freebsd-current/contrib/ntp/sntp/libevent/
H A Dwin32select.c280 win32_dispatch(struct event_base *base, struct timeval *tv) argument
308 long msec = tv ? evutil_tv_to_msec_(tv) : LONG_MAX;
322 (struct fd_set*)win32op->exset_out, tv);
H A Devthread.c297 debug_cond_wait(void *cond_, void *lock_, const struct timeval *tv) argument
305 r = original_cond_fns_.wait_condition(cond_, lock->lock, tv);
489 evthreadimpl_cond_wait_(void *cond, void *lock, const struct timeval *tv) argument
492 return evthread_cond_fns_.wait_condition(cond, lock, tv);
H A Dpoll.c136 poll_dispatch(struct event_base *base, struct timeval *tv) argument
174 if (tv != NULL) {
175 msec = evutil_tv_to_msec_(tv);
/freebsd-current/tests/sys/netinet/libalias/
H A Dperf.c43 #define timevalcmp(tv, uv, cmp) \
44 (((tv).tv_sec == (uv).tv_sec) \
45 ? ((tv).tv_usec cmp (uv).tv_usec) \
46 : ((tv).tv_sec cmp (uv).tv_sec))
/freebsd-current/libexec/bootpd/tools/bootptest/
H A Dbootptest.c382 struct timeval tv; local
385 tv.tv_sec = WAITSECS;
386 tv.tv_usec = 0L;
388 n = select(s + 1, (fd_set *) & readfds, NULL, NULL, &tv);
/freebsd-current/sys/kern/
H A Dsubr_msgbuf.c239 struct timeval tv; local
241 microuptime(&tv);
243 (intmax_t)tv.tv_sec, (int)tv.tv_usec);
/freebsd-current/usr.sbin/bluetooth/bthidd/
H A Dserver.c179 struct timeval tv; local
185 tv.tv_sec = 1;
186 tv.tv_usec = 0;
192 n = select(srv->maxfd + 1, &rfdset, &wfdset, NULL, &tv);
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c358 struct timeval end, tv; local
367 tv.tv_sec = timeout / 1000;
368 tv.tv_usec = (timeout % 1000) * 1000;
369 timeradd(&end, &tv, &end);
372 gettimeofday(&tv, NULL);
373 if (timercmp(&tv, &end, >=)) {
380 timersub(&end, &tv, &tv);
381 if (tv.tv_sec == 0 && tv
[all...]
/freebsd-current/tools/tools/net80211/wesside/dics/
H A Ddics.c316 struct timeval tv; local
405 tv.tv_sec = 0;
406 tv.tv_usec = 10*1000;
407 rd = select(us+1, &rfds, NULL, NULL, &tv);
/freebsd-current/tools/regression/rpcsec_gss/
H A Drpctest.c92 struct timeval tv; local
148 tv.tv_sec = 5;
149 tv.tv_usec = 0;
153 (xdrproc_t) xdr_int, (char *) &num, tv);
/freebsd-current/sys/sys/
H A Dvdso.h79 int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz);
/freebsd-current/usr.sbin/ppp/
H A Dradius.c657 struct timeval tv; local
661 if ((got = rad_continue_send_request(r->cx.rad, sel, &r->cx.fd, &tv)) == 0) {
664 r->cx.timer.load = tv.tv_usec / TICKUNIT + tv.tv_sec * SECTICKS;
697 struct timeval tv; local
703 tv.tv_sec = 0;
704 tv.tv_usec = TICKUNIT;
705 select(r->cx.fd + 1, &s, NULL, NULL, &tv);
898 struct timeval tv; local
1056 if ((got = rad_init_send_request(r->cx.rad, &r->cx.fd, &tv)))
1099 struct timeval tv; local
[all...]
/freebsd-current/contrib/libevent/
H A Devthread.c297 debug_cond_wait(void *cond_, void *lock_, const struct timeval *tv) argument
305 r = original_cond_fns_.wait_condition(cond_, lock->lock, tv);
489 evthreadimpl_cond_wait_(void *cond, void *lock, const struct timeval *tv) argument
492 return evthread_cond_fns_.wait_condition(cond, lock, tv);
H A Dwin32select.c280 win32_dispatch(struct event_base *base, struct timeval *tv) argument
308 long msec = tv ? evutil_tv_to_msec_(tv) : LONG_MAX;
322 (struct fd_set*)win32op->exset_out, tv);
H A Dpoll.c136 poll_dispatch(struct event_base *base, struct timeval *tv) argument
174 if (tv != NULL) {
175 msec = evutil_tv_to_msec_(tv);
/freebsd-current/lib/libtacplus/
H A Dtaclib.c260 struct timeval tv; local
269 tv.tv_sec = srvp->timeout;
270 tv.tv_usec = 0;
271 nfds = select(h->fd + 1, NULL, &wfds, NULL, &tv);
495 struct timeval tv; local
505 gettimeofday(&tv, NULL);
506 timersub(deadline, &tv, &tv);
507 if (tv.tv_sec >= 0) {
513 select(h->fd + 1, &rfds, NULL, NULL, &tv);
647 struct timeval tv; local
[all...]
/freebsd-current/contrib/ntp/libntp/
H A Dsystime.c149 struct timeval tv; local
151 rc = GETTIMEOFDAY(&tv, NULL);
152 tsp->tv_sec = tv.tv_sec;
153 tsp->tv_nsec = tv.tv_usec * 1000;
/freebsd-current/contrib/ntp/libparse/
H A Dparsesolaris.c357 parse->parse_ppsclockev.tv.tv_sec = 0;
358 parse->parse_ppsclockev.tv.tv_usec = 0;
653 c_time.tv.tv_sec = hres_time.tv_sec;
654 c_time.tv.tv_usec = hres_time.tv_nsec / 1000;
734 c_time.tv.tv_sec = hres_time.tv_sec;
735 c_time.tv.tv_usec = hres_time.tv_nsec / 1000;
764 parse->parse_ppsclockev.tv = c_time.tv;
1013 cdevent.tv.tv_sec = hres_time.tv_sec;
1014 cdevent.tv
[all...]
/freebsd-current/contrib/ntp/include/
H A Dtimepps-Solaris.h460 struct timeval tv; member in struct:ppsclockev
505 infobuf.assert_timestamp.tv_sec = ev.tv.tv_sec;
506 infobuf.assert_timestamp.tv_nsec = ev.tv.tv_usec * 1000;
H A Dtimepps-SunOS.h394 struct timeval tv; member in struct:ppsclockev
447 infobuf.assert_timestamp.tv_sec = ev.tv.tv_sec;
448 infobuf.assert_timestamp.tv_nsec = ev.tv.tv_usec * 1000;
/freebsd-current/crypto/heimdal/kdc/
H A Dprocess.c42 krb5_kdc_update_time(struct timeval *tv) argument
44 if (tv == NULL)
47 _kdc_now = *tv;
/freebsd-current/contrib/ofed/opensm/libvendor/
H A Dosm_pkt_randomizer.c136 struct timeval tv; local
147 gettimeofday(&tv, &tz);
148 seed = tv.tv_usec;
/freebsd-current/sys/dev/watchdog/
H A Dwatchdog.c96 struct timeval tv; local
100 TIMESPEC_TO_TIMEVAL(&tv, &ts);
101 return (tvtohz(&tv));

Completed in 323 milliseconds

1234567891011>>