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

1234567891011>>

/freebsd-current/contrib/ntp/include/
H A Dtimevalops.h76 #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 Dselect.sh87 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 Dnc_mingw.h54 #define gettimeofday(tv,tz) _nc_gettimeofday(tv,tz)
/freebsd-current/contrib/sendmail/libsm/
H A Ddebug.c146 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 Dpwhash_argon2id.exp4 [tv] pwhash failure (maybe intentional): [3]
H A Dxchacha20.c32 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 Dhostcons.c92 struct host_timeval tv = {0,0}; local
96 ret = host_select(32, &fds, NULL, NULL, &tv);
/freebsd-current/contrib/ntp/util/
H A Djitter.c111 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 Duuid.c66 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 Dtcp_seq.h89 struct timeval tv; local
95 getmicrouptime(&tv);
96 return (tv.tv_sec * 1000 + tv.tv_usec / 1000);
/freebsd-current/contrib/pf/libevent/
H A Devent.c348 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 Devent.h165 #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 Dlib_win32util.c122 _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 Dbench_cascade.c146 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 Dudps.c130 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 Dbench_cascade.c146 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 Dypset.c62 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 Ddt_work.c54 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 Dwatchdogd.c73 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 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-current/lib/libc/yp/
H A Dyplib.c287 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 Dyppoll.c71 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 Dtime.c265 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 Ddotlock.c51 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 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...]

Completed in 152 milliseconds

1234567891011>>