Searched refs:tv (Results 51 - 75 of 439) sorted by relevance

1234567891011>>

/freebsd-10-stable/contrib/ntp/sntp/libevent/include/event2/
H A Devent.h845 @param tv the amount of time after which the loop should terminate,
975 #define evtimer_add(ev, tv) event_add((ev), (tv))
977 #define evtimer_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv))
987 #define evsignal_add(ev, tv) event_add((ev), (tv))
993 #define evsignal_pending(ev, tv) event_pending((ev), EV_SIGNAL, (tv))
1225 event_add() replaces the old timeout with the new one if tv i
[all...]
/freebsd-10-stable/contrib/netbsd-tests/net/in_cksum/
H A Din_cksum.c175 struct timeval tv, old_tv; local
242 tv = res.ru_utime;
246 timersub(&res.ru_utime, &tv, &old_tv);
253 tv = res.ru_utime;
257 timersub(&res.ru_utime, &tv, &tv);
260 (intmax_t)tv.tv_sec, (intmax_t)tv.tv_usec);
262 100 * ((double)tv.tv_sec * 1e6 + tv
[all...]
/freebsd-10-stable/contrib/pf/libevent/
H A Devent.h166 #define evtimer_add(ev, tv) event_add(ev, tv)
169 #define evtimer_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv)
172 #define timeout_add(ev, tv) event_add(ev, tv)
175 #define timeout_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv)
178 #define signal_add(ev, tv) event_add(ev, tv)
[all...]
/freebsd-10-stable/lib/libc/yp/
H A Dyplib.c293 struct timeval tv; local
468 tv.tv_sec = _yplib_timeout/2;
469 tv.tv_usec = 0;
472 (xdrproc_t)xdr_ypbind_resp, &ypbr, tv);
524 tv.tv_sec = _yplib_timeout/2;
525 tv.tv_usec = 0;
528 YPPROG, YPVERS, tv, &ysd->dom_socket, 1280, 2304);
564 tv.tv_sec = 1;
565 tv.tv_usec = 0;
566 clnt_control(ysd->dom_client, CLSET_RETRY_TIMEOUT, (char*)&tv);
655 struct timeval tv; local
779 struct timeval tv; local
857 struct timeval tv; local
936 struct timeval tv; local
1005 struct timeval tv; local
1063 struct timeval tv; local
1109 struct timeval tv; local
[all...]
/freebsd-10-stable/contrib/binutils/binutils/
H A Drename.c118 struct timeval tv[2]; local
120 tv[0].tv_sec = statbuf->st_atime;
121 tv[0].tv_usec = 0;
122 tv[1].tv_sec = statbuf->st_mtime;
123 tv[1].tv_usec = 0;
124 result = utimes (destination, tv);
/freebsd-10-stable/contrib/tcsh/
H A Ddotlock.c52 struct timeval tv; local
58 (void)gettimeofday(&tv, NULL);
63 cookie = pid ^ tv.tv_usec;
/freebsd-10-stable/contrib/unbound/util/
H A Dtimehist.h91 * @param tv: time value
93 void timehist_insert(struct timehist* hist, struct timeval* tv);
H A Dmini_event.h173 #define evtimer_add(ev, tv) event_add(ev, tv)
/freebsd-10-stable/crypto/openssh/openbsd-compat/
H A Dbsd-poll.c49 struct timeval tv, *tvp = NULL; local
86 tv.tv_sec = timeout / 1000;
87 tv.tv_usec = (timeout % 1000) * 1000;
88 tvp = &tv;
/freebsd-10-stable/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-10-stable/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-10-stable/usr.bin/rwall/
H A Drwall.c80 struct timeval tv; local
103 tv.tv_sec = 15; /* XXX ?? */
104 tv.tv_usec = 0;
106 (xdrproc_t)xdr_void, &res, tv) != RPC_SUCCESS) {
/freebsd-10-stable/usr.sbin/ngctl/
H A Dmsg.c101 struct timeval tv; local
106 memset(&tv, 0, sizeof(tv));
107 switch (select(csock + 1, &rfds, NULL, NULL, &tv)) {
/freebsd-10-stable/usr.bin/procstat/
H A Dprocstat_rusage.c65 format_time(struct timeval *tv) argument
70 minutes = tv->tv_sec / 60;
71 seconds = tv->tv_sec % 60;
83 hours, minutes, seconds, (unsigned int)tv->tv_usec);
/freebsd-10-stable/contrib/ntp/sntp/
H A Dutilities.h24 char *tv_to_str(const struct timeval *tv);
/freebsd-10-stable/contrib/amd/fixmount/
H A Dfixmount.c155 struct timeval tv; local
167 tv.tv_sec = CALL_TIMEOUT;
168 tv.tv_usec = 0;
176 tv)) != RPC_SUCCESS) {
223 struct timeval tv; local
228 tv.tv_sec = CALL_TIMEOUT;
229 tv.tv_usec = 0;
237 tv)) != RPC_SUCCESS) {
274 struct timeval tv; local
374 tv
[all...]
/freebsd-10-stable/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);
/freebsd-10-stable/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 Dtest-ratelim.c259 struct timeval tv; local
359 tv.tv_sec = cfg_duration - 1;
360 tv.tv_usec = 995000;
362 event_base_loopexit(base, &tv);
364 tv.tv_sec = 0;
365 tv.tv_usec = 100*1000;
366 ms100_common = event_base_init_common_timeout(base, &tv);
394 tv.tv_sec = 0;
395 tv.tv_usec = 300000;
396 event_base_loopexit(base, &tv);
591 struct timeval tv; local
[all...]
H A Dbench.c143 struct timeval *tv; local
199 tv = run_once();
200 if (tv == NULL)
203 tv->tv_sec * 1000000L + tv->tv_usec);
/freebsd-10-stable/sys/dev/drm2/
H A Ddrm_os_freebsd.c42 timeval_to_ns(const struct timeval *tv) argument
44 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) +
45 tv->tv_usec * NSEC_PER_USEC;
51 struct timeval tv; local
55 tv.tv_sec = 0;
56 tv.tv_usec = 0;
57 return (tv);
60 tv.tv_sec = nsec / NSEC_PER_SEC;
63 tv.tv_sec--;
66 tv
[all...]
/freebsd-10-stable/lib/libc/rpc/
H A Dauth_time.c251 struct timeval tv; local
350 tv.tv_sec = 5;
351 tv.tv_usec = 0;
354 (xdrproc_t)xdr_u_long, &thetime, tv);
462 gettimeofday(&tv, 0);
489 tv.tv_sec += (tv.tv_sec > 500000) ? 1 : 0;
490 delta = (thetime > tv.tv_sec) ? thetime - tv.tv_sec :
491 tv
[all...]
/freebsd-10-stable/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-10-stable/contrib/amd/amd/
H A Damfs_host.c204 struct timeval tv; local
214 tv.tv_sec = 20;
215 tv.tv_usec = 0;
241 tv);
264 tv);
319 struct timeval tv; local
364 tv.tv_sec = 2;
365 tv.tv_usec = 0;
370 client = get_mount_client(host, &sin, &tv, &sock, mnt_version);
639 struct timeval tv; local
[all...]
/freebsd-10-stable/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);

Completed in 342 milliseconds

1234567891011>>