/freebsd-current/contrib/ntp/include/ |
H A D | timevalops.h | 76 #define TVTOTS(tv, ts) \ 78 (ts)->l_ui = (u_long)(tv)->tv_sec; \ 79 TVUTOTSF((tv)->tv_usec, (ts)->l_uf); \ 82 #define sTVTOTS(tv, ts) \ 86 (ts)->l_ui = (tv)->tv_sec; \ 87 usec = (tv)->tv_usec; \ 88 if (((tv)->tv_sec < 0) || ((tv)->tv_usec < 0)) { \ 103 #define TSTOTV(ts, tv) \ 105 (tv) [all...] |
/freebsd-current/tools/test/stress2/misc/ |
H A D | select.sh | 87 struct timeval tv; 102 tv.tv_sec = 0; 103 tv.tv_usec = N; 106 r = select(1, NULL, NULL, NULL, &tv); 113 fprintf(stderr, "FAIL n = %d, tv = %ld.%06ld\n", 114 n, (long)tv.tv_sec, tv.tv_usec);
|
/freebsd-current/contrib/ncurses/include/ |
H A D | nc_mingw.h | 54 #define gettimeofday(tv,tz) _nc_gettimeofday(tv,tz)
|
/freebsd-current/contrib/sendmail/libsm/ |
H A D | debug.c | 146 struct timeval tv, tvd; local 148 gettimeofday(&tv, NULL); 150 timersub(&tv, &lasttv, &tvd); 158 lasttv = tv; 162 struct timeval tv; local 164 gettimeofday(&tv, NULL); 168 (long) tv.tv_sec, 169 (long) tv.tv_usec);
|
/freebsd-current/sys/contrib/libsodium/test/default/ |
H A D | pwhash_argon2id.exp | 4 [tv] pwhash failure (maybe intentional): [3]
|
H A D | xchacha20.c | 32 const HChaCha20TV *tv; local 46 tv = &tvs[i]; 48 tv->key, strlen(tv->key), NULL, NULL, NULL); 50 tv->in, strlen(tv->in), NULL, NULL, NULL); 52 tv->out, strlen(tv->out), NULL, NULL, NULL); 104 const XChaCha20TV *tv; local 117 tv 214 const XChaCha20Poly1305TV *tv; local [all...] |
/freebsd-current/stand/kboot/kboot/ |
H A D | hostcons.c | 92 struct host_timeval tv = {0,0}; local 96 ret = host_select(32, &fds, NULL, NULL, &tv);
|
/freebsd-current/contrib/ntp/util/ |
H A D | jitter.c | 111 struct timeval tv; /* seconds and microseconds */ local 116 gettimeofday(&tv, NULL); 117 now->l_i = tv.tv_sec + JAN_1970; 118 dtemp = tv.tv_usec / 1e6;
|
/freebsd-current/usr.bin/mkimg/ |
H A D | uuid.c | 66 struct timeval tv; local 71 if (gettimeofday(&tv, NULL) == -1) 74 time += (uint64_t)tv.tv_sec * 10000000LL; 75 time += tv.tv_usec * 10;
|
/freebsd-current/sys/netinet/ |
H A D | tcp_seq.h | 89 struct timeval tv; local 95 getmicrouptime(&tv); 96 return (tv.tv_sec * 1000 + tv.tv_usec / 1000);
|
/freebsd-current/contrib/pf/libevent/ |
H A D | event.c | 348 event_loopexit(struct timeval *tv) argument 351 current_base, tv)); 355 event_base_loopexit(struct event_base *event_base, struct timeval *tv) argument 358 event_base, tv)); 374 struct timeval tv; local 402 gettime(&tv); 403 if (timercmp(&tv, &base->event_tv, <)) { 407 timersub(&base->event_tv, &tv, &off); 410 base->event_tv = tv; 413 timeout_next(base, &tv); 465 event_once(int fd, short events, void (*callback)(int, short, void *), void *arg, struct timeval *tv) argument 563 event_pending(struct event *ev, short event, struct timeval *tv) argument 592 event_add(struct event *ev, struct timeval *tv) argument 714 timeout_next(struct event_base *base, struct timeval *tv) argument [all...] |
H A D | event.h | 165 #define evtimer_add(ev, tv) event_add(ev, tv) 168 #define evtimer_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv) 171 #define timeout_add(ev, tv) event_add(ev, tv) 174 #define timeout_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv) 177 #define signal_add(ev, tv) event_add(ev, tv) [all...] |
/freebsd-current/contrib/ncurses/ncurses/tinfo/ |
H A D | lib_win32util.c | 122 _nc_gettimeofday(struct timeval *tv, void *tz GCC_UNUSED) 130 tv->tv_usec = (long) ((data.since1601 / 10LL) % 1000000LL); 131 tv->tv_sec = (long) ((data.since1601 - JAN1970) / 10000000LL); 121 _nc_gettimeofday(struct timeval *tv, void *tz GCC_UNUSED) argument
|
/freebsd-current/contrib/ntp/sntp/libevent/test/ |
H A D | bench_cascade.c | 146 struct timeval *tv; local 176 tv = run_once(num_pipes); 177 if (tv == NULL) 180 tv->tv_sec * 1000000L + tv->tv_usec);
|
/freebsd-current/tools/tools/net80211/wesside/udps/ |
H A D | udps.c | 130 struct timeval tv; local 157 memset(&tv, 0, sizeof(tv)); 158 tv.tv_usec = 1000*10; 161 rd = select(s + 1, &rfds, NULL ,NULL ,&tv);
|
/freebsd-current/contrib/libevent/test/ |
H A D | bench_cascade.c | 146 struct timeval *tv; local 176 tv = run_once(num_pipes); 177 if (tv == NULL) 180 tv->tv_sec * 1000000L + tv->tv_usec);
|
/freebsd-current/usr.sbin/ypset/ |
H A D | ypset.c | 62 struct timeval tv; local 86 tv.tv_sec = 15; 87 tv.tv_usec = 0; 89 client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock); 98 (xdrproc_t)xdr_void, NULL, tv);
|
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_work.c | 54 struct timespec tv; local 86 tv.tv_sec = (earliest - now) / NANOSEC; 87 tv.tv_nsec = (earliest - now) % NANOSEC; 90 * Wait for either 'tv' nanoseconds to pass or to receive notification 94 (void) pthread_cond_reltimedwait_np(&dph->dph_cv, &dph->dph_lock, &tv); 97 clock_gettime(CLOCK_REALTIME,&tv); 98 tv.tv_sec += earliest / NANOSEC; 99 tv.tv_nsec += earliest % NANOSEC; 100 while (tv.tv_nsec > NANOSEC) { 101 tv [all...] |
/freebsd-current/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 73 static int tstotv(struct timeval *tv, struct timespec *ts); 74 static int tvtohz(struct timeval *tv); 209 struct timeval tv; local 223 tstotv(&tv, &ts); 224 ticks = tvtohz(&tv); 289 struct timeval tv_start, tv_end, tv_now, tv; local 299 timersub(&tv_end, &tv_start, &tv); 300 sec = tv.tv_sec; 314 cmd_prefix, cmd, sec, (long)tv.tv_usec, 319 cmd_prefix, cmd, sec, (long)tv 571 tstotv(struct timeval *tv, struct timespec *ts) argument 584 tvtohz(struct timeval *tv) argument [all...] |
/freebsd-current/contrib/netbsd-tests/net/in_cksum/ |
H A D | in_cksum.c | 175 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-current/lib/libc/yp/ |
H A D | yplib.c | 287 struct timeval tv; local 462 tv.tv_sec = _yplib_timeout/2; 463 tv.tv_usec = 0; 466 (xdrproc_t)xdr_ypbind_resp, &ypbr, tv); 518 tv.tv_sec = _yplib_timeout/2; 519 tv.tv_usec = 0; 522 YPPROG, YPVERS, tv, &ysd->dom_socket, 65507, 65507); 558 tv.tv_sec = 1; 559 tv.tv_usec = 0; 560 clnt_control(ysd->dom_client, CLSET_RETRY_TIMEOUT, (char*)&tv); 649 struct timeval tv; local 773 struct timeval tv; local 851 struct timeval tv; local 930 struct timeval tv; local 999 struct timeval tv; local 1057 struct timeval tv; local 1103 struct timeval tv; local [all...] |
/freebsd-current/usr.sbin/yppoll/ |
H A D | yppoll.c | 71 struct timeval tv; local 90 tv.tv_sec = 10; 91 tv.tv_usec = 0; 93 client = clntudp_create(&rsrv_sin, YPPROG, YPVERS, tv, &rsrv_sock); 103 (xdrproc_t)xdr_ypresp_order, &ypro, tv); 115 &yprnk, (xdrproc_t)xdr_ypresp_master, &yprm, tv);
|
/freebsd-current/stand/efi/libefi/ |
H A D | time.c | 265 struct timeval tv; local 267 memset(&tv, 0, sizeof(tv)); 268 EFI_GetTimeOfDay(&tv, NULL); 271 *tloc = tv.tv_sec; 272 return (tv.tv_sec);
|
/freebsd-current/contrib/tcsh/ |
H A D | dotlock.c | 51 struct timeval tv; local 57 (void)gettimeofday(&tv, NULL); 62 cookie = pid ^ tv.tv_usec;
|
/freebsd-current/contrib/ntp/sntp/libevent/include/event2/ |
H A D | event.h | 838 @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...] |