Searched refs:tv (Results 151 - 175 of 531) sorted by relevance

1234567891011>>

/freebsd-current/sys/kern/
H A Dkern_acct.c457 encode_timeval(struct timeval tv) argument
469 if (tv.tv_sec == 0) {
470 if (tv.tv_usec == 0)
473 val = tv.tv_usec;
479 log2_s = fls(tv.tv_sec) - 1;
482 val = 1000000 * tv.tv_sec + tv.tv_usec;
485 val = (unsigned int)(((uint64_t)1000000 * tv.tv_sec +
486 tv.tv_usec) >> exp);
/freebsd-current/contrib/capsicum-test/
H A Dselect.cc53 struct timeval tv; local
54 tv.tv_sec = 0;
55 tv.tv_usec = 100;
63 int ret = select(maxfd+1, &rset, &wset, NULL, &tv);
73 ret = select(maxfd+1, &rset, &wset, NULL, &tv);
/freebsd-current/contrib/netbsd-tests/net/config/
H A Dnetconfig.c191 struct timeval tv; local
201 tv.tv_sec = ms_timo / 1000;
202 tv.tv_usec = 1000 * (ms_timo % 1000);
204 &tv, sizeof(tv)) == -1)
/freebsd-current/usr.bin/wc/tests/
H A Dwc_test.sh22 tv="Der bode en underlig gr��spr��ngt en
119 printf "%s\n" "$tv" >foo
138 printf "%1\$s\n%1\$s\n%1\$s\n%1\$s\n%1\$s\n" "$tv"
195 printf "%s\n" "$tv" >foo
196 printf "%s\n" "$tv" >bar
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devthread-internal.h176 /** As EVTHREAD_COND_WAIT, but gives up after 'tv' has elapsed. Returns 1
178 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \
179 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), (tv)) : 0 )
205 int evthreadimpl_cond_wait_(void *cond, void *lock, const struct timeval *tv);
298 /** As EVTHREAD_COND_WAIT, but gives up after 'tv' has elapsed. Returns 1
300 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \
301 ( (cond) ? evthreadimpl_cond_wait_((cond), (lock), (tv)) : 0 )
H A Devent.c428 struct timeval tv; local
429 evutil_gettimeofday(&tv,NULL);
430 evutil_timersub(&tv, tp, &base->tv_clock_diff);
438 event_base_gettimeofday_cached(struct event_base *base, struct timeval *tv) argument
444 return evutil_gettimeofday(tv, NULL);
449 r = evutil_gettimeofday(tv, NULL);
451 evutil_timeradd(&base->tv_cache, &base->tv_clock_diff, tv);
1090 event_gettime_monotonic(struct event_base *base, struct timeval *tv) argument
1094 if (base && tv) {
1096 rv = evutil_gettime_monotonic_(&(base->monotonic_timer), tv);
1408 is_common_timeout(const struct timeval *tv, const struct event_base *base) argument
1430 get_common_timeout_list(struct event_base *base, const struct timeval *tv) argument
1491 struct timeval tv; local
1766 struct timeval tv; local
1837 event_loopexit(const struct timeval *tv) argument
1844 event_base_loopexit(struct event_base *event_base, const struct timeval *tv) argument
1926 struct timeval tv; local
2042 event_once(evutil_socket_t fd, short events, void (*callback)(evutil_socket_t, short, void *), void *arg, const struct timeval *tv) argument
2051 event_base_once(struct event_base *base, evutil_socket_t fd, short events, void (*callback)(evutil_socket_t, short, void *), void *arg, const struct timeval *tv) argument
2375 event_pending(const struct event *ev, short event, struct timeval *tv) argument
2484 event_add(struct event *ev, const struct timeval *tv) argument
2597 event_add_nolock_(struct event *ev, const struct timeval *tv, int tv_is_absolute) argument
3148 struct timeval *tv = *tv_p; local
3761 struct timeval tv; local
[all...]
H A Depoll.c417 epoll_dispatch(struct event_base *base, struct timeval *tv) argument
429 if (tv == NULL) {
434 if (tv->tv_sec == 0 && tv->tv_usec == 0) {
439 is.it_value.tv_sec = tv->tv_sec;
440 is.it_value.tv_nsec = tv->tv_usec * 1000;
451 if (tv != NULL) {
452 timeout = evutil_tv_to_msec_(tv);
/freebsd-current/usr.sbin/rpc.tlsservd/
H A Drpc.tlscommon.c61 struct timeval tv; local
98 tv.tv_sec = 0;
100 tv.tv_usec = 0;
102 tv.tv_usec = RELOADDELAY;
104 switch (select(svc_maxfd + 1, &readfds, NULL, NULL, &tv)) {
/freebsd-current/contrib/libevent/
H A Devthread-internal.h176 /** As EVTHREAD_COND_WAIT, but gives up after 'tv' has elapsed. Returns 1
178 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \
179 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), (tv)) : 0 )
205 int evthreadimpl_cond_wait_(void *cond, void *lock, const struct timeval *tv);
298 /** As EVTHREAD_COND_WAIT, but gives up after 'tv' has elapsed. Returns 1
300 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \
301 ( (cond) ? evthreadimpl_cond_wait_((cond), (lock), (tv)) : 0 )
H A Devent.c428 struct timeval tv; local
429 evutil_gettimeofday(&tv,NULL);
430 evutil_timersub(&tv, tp, &base->tv_clock_diff);
438 event_base_gettimeofday_cached(struct event_base *base, struct timeval *tv) argument
444 return evutil_gettimeofday(tv, NULL);
449 r = evutil_gettimeofday(tv, NULL);
451 evutil_timeradd(&base->tv_cache, &base->tv_clock_diff, tv);
1090 event_gettime_monotonic(struct event_base *base, struct timeval *tv) argument
1094 if (base && tv) {
1096 rv = evutil_gettime_monotonic_(&(base->monotonic_timer), tv);
1408 is_common_timeout(const struct timeval *tv, const struct event_base *base) argument
1430 get_common_timeout_list(struct event_base *base, const struct timeval *tv) argument
1491 struct timeval tv; local
1766 struct timeval tv; local
1837 event_loopexit(const struct timeval *tv) argument
1844 event_base_loopexit(struct event_base *event_base, const struct timeval *tv) argument
1926 struct timeval tv; local
2042 event_once(evutil_socket_t fd, short events, void (*callback)(evutil_socket_t, short, void *), void *arg, const struct timeval *tv) argument
2051 event_base_once(struct event_base *base, evutil_socket_t fd, short events, void (*callback)(evutil_socket_t, short, void *), void *arg, const struct timeval *tv) argument
2375 event_pending(const struct event *ev, short event, struct timeval *tv) argument
2484 event_add(struct event *ev, const struct timeval *tv) argument
2597 event_add_nolock_(struct event *ev, const struct timeval *tv, int tv_is_absolute) argument
3148 struct timeval *tv = *tv_p; local
3761 struct timeval tv; local
[all...]
H A Depoll.c417 epoll_dispatch(struct event_base *base, struct timeval *tv) argument
429 if (tv == NULL) {
434 if (tv->tv_sec == 0 && tv->tv_usec == 0) {
439 is.it_value.tv_sec = tv->tv_sec;
440 is.it_value.tv_nsec = tv->tv_usec * 1000;
451 if (tv != NULL) {
452 timeout = evutil_tv_to_msec_(tv);
H A Ddevpoll.c168 devpoll_dispatch(struct event_base *base, struct timeval *tv) argument
178 if (tv != NULL)
179 timeout = tv->tv_sec * 1000 + (tv->tv_usec + 999) / 1000;
H A Devport.c256 evport_dispatch(struct event_base *base, struct timeval *tv) argument
273 * events are active, we should wait for I/O (and tv == NULL).
277 if (tv != NULL) {
278 ts.tv_sec = tv->tv_sec;
279 ts.tv_nsec = tv->tv_usec * 1000;
/freebsd-current/contrib/ntp/sntp/
H A Dutilities.c133 * Converts a struct tv to a date string
137 const struct timeval *tv
152 gmt_time = tv->tv_sec;
175 (int)tv->tv_usec,
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dktime.h179 timeval_to_ktime(struct timeval tv) argument
181 return (ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC));
/freebsd-current/contrib/netbsd-tests/fs/puffs/h_dtfs/
H A Ddtfs_subr.c45 struct timeval tv; local
48 gettimeofday(&tv, NULL);
49 TIMEVAL_TO_TIMESPEC(&tv, &ts);
331 struct timeval tv; local
334 gettimeofday(&tv, NULL);
335 TIMEVAL_TO_TIMESPEC(&tv, &ts);
/freebsd-current/usr.bin/systat/
H A Difstat.c68 struct timeval tv; member in struct:if_stat
269 struct timeval tv, new_tv, old_tv; local
319 old_tv = ifp->tv;
320 timersub(&new_tv, &old_tv, &tv);
321 elapsed = tv.tv_sec + (tv.tv_usec * 1e-6);
351 ifp->tv.tv_sec = new_tv.tv_sec;
352 ifp->tv.tv_usec = new_tv.tv_usec;
/freebsd-current/tools/tools/net80211/stumbler/
H A Dstumbler.c881 void chanhop(struct timeval* tv) { argument
884 if (gettimeofday(tv, NULL) == -1)
888 elapsed = elapsed_ms(tv, &chaninfo.last_hop);
909 tv->tv_sec = elapsed/1000;
910 tv->tv_usec = (elapsed - tv->tv_sec*1000)*1000;
913 void check_seen(struct timeval* tv) { argument
920 will_wait = tv->tv_sec*1000+tv->tv_usec/1000;
956 tv
964 struct timeval tv; local
[all...]
/freebsd-current/tools/tools/netmap/
H A Dctrs.h68 struct timeval tv = { local
72 return tv;
/freebsd-current/contrib/libfido2/regress/
H A Ddev.c61 struct timespec tv; local
84 tv.tv_sec = d / 1000;
85 tv.tv_nsec = (d % 1000) * 1000000;
86 if (nanosleep(&tv, NULL) == -1)
108 struct timespec tv; local
118 tv.tv_sec = interval_ms / 1000;
119 tv.tv_nsec = (interval_ms % 1000) * 1000000;
120 if (nanosleep(&tv, NULL) == -1)
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_handle.c319 struct timeval tv; local
345 (void) gettimeofday(&tv, NULL);
348 tv.tv_sec, tv.tv_usec, (uintmax_t)drop.dtdda_drops,
410 struct timeval tv; local
423 (void) gettimeofday(&tv, NULL);
460 tv.tv_sec, tv.tv_usec, (uintmax_t)drop.dtdda_drops,
/freebsd-current/tools/test/gpioevents/
H A Dgpioevents.c293 struct timeval tv; local
300 tv.tv_sec = timeout / 1000;
301 tv.tv_usec = (timeout % 1000) * 1000;
302 tv_ptr = &tv;
334 struct timespec tv; local
338 tv.tv_sec = timeout / 1000;
339 tv.tv_nsec = (timeout % 1000) * 10000000;
340 tv_ptr = &tv;
/freebsd-current/contrib/nvi/ex/
H A Dex_script.c195 struct timeval tv; local
212 tv.tv_sec = 5;
213 tv.tv_usec = 0;
216 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) {
260 tv.tv_sec = 0;
261 tv.tv_usec = 100000;
262 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) {
422 struct timeval tv; local
481 tv.tv_sec = 0;
482 tv
[all...]
/freebsd-current/tools/regression/sockets/unix_cmsg/
H A Duc_common.c127 struct timeval tv; local
138 tv.tv_sec = TIMEOUT;
139 tv.tv_usec = 0;
140 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0 ||
141 setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) < 0) {
355 struct timeval tv; local
362 tv.tv_sec = TIMEOUT;
363 tv
[all...]
/freebsd-current/usr.bin/script/
H A Dscript.c105 struct timespec tv, *tvp; local
307 tv.tv_sec = 1;
308 tv.tv_nsec = 0;
309 tvp = &tv;
312 tv.tv_sec = flushtime - (tvec - start);
313 tv.tv_nsec = 0;
314 tvp = &tv;
482 struct timeval tv; local
484 (void)gettimeofday(&tv, NULL);
486 stamp.scr_sec = tv
[all...]

Completed in 181 milliseconds

1234567891011>>