Searched refs:tv (Results 26 - 50 of 531) sorted by relevance

1234567891011>>

/freebsd-current/tools/regression/poll/
H A Dpipeselect.c19 #define SETUP(fd, rfds, tv) do { \
22 (tv).tv_sec = 0; \
23 (tv).tv_usec = 0; \
62 struct timeval tv; local
75 SETUP(fd, rfds, tv);
76 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
106 SETUP(fd, rfds, tv);
107 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
115 SETUP(fd, rfds, tv);
116 if (select(fd + 1, &rfds, NULL, NULL, &tv) <
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dtime.h85 struct timeval tv; local
86 (void) gettimeofday(&tv, NULL);
87 ts->tv_sec = tv.tv_sec;
88 ts->tv_nsec = tv.tv_usec * NSEC_PER_USEC;
94 struct timeval tv; local
95 (void) gettimeofday(&tv, NULL);
96 return (tv.tv_sec);
/freebsd-current/usr.sbin/ypserv/common/
H A Dyplib_host.c68 struct timeval tv; local
92 tv.tv_sec = 10;
93 tv.tv_usec = 0;
99 client = clntudp_create(&rsrv_sin, program, version, tv,
115 struct timeval tv; local
124 tv.tv_sec = 10;
125 tv.tv_usec = 0;
127 client = clntudp_create(&rsrv_sin, program, version, tv, &rsrv_sock);
141 struct timeval tv; local
147 tv
179 struct timeval tv; local
218 struct timeval tv; local
258 struct timeval tv; local
283 struct timeval tv; local
310 struct timeval tv; local
336 struct timeval tv; local
[all...]
/freebsd-current/contrib/ntp/include/
H A Dadjtime.h49 struct timeval tv; member in struct:__anon5266::__anon5267
/freebsd-current/contrib/libevent/include/event2/
H A Devent_compat.h198 #define timeout_add(ev, tv) event_add((ev), (tv))
201 #define timeout_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv))
212 #define signal_add(ev, tv) event_add((ev), (tv))
216 #define signal_pending(ev, tv) event_pending((ev), EV_SIGNAL, (tv))
/freebsd-current/contrib/ntp/sntp/libevent/include/event2/
H A Devent_compat.h198 #define timeout_add(ev, tv) event_add((ev), (tv))
201 #define timeout_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv))
212 #define signal_add(ev, tv) event_add((ev), (tv))
216 #define signal_pending(ev, tv) event_pending((ev), EV_SIGNAL, (tv))
/freebsd-current/contrib/ntp/sntp/libevent/sample/
H A Dtime-test.c59 struct timeval tv; local
60 evutil_timerclear(&tv);
61 tv.tv_sec = 2;
62 event_add(timeout, &tv);
70 struct timeval tv; local
97 evutil_timerclear(&tv);
98 tv.tv_sec = 2;
99 event_add(&timeout, &tv);
/freebsd-current/contrib/libevent/sample/
H A Dtime-test.c59 struct timeval tv; local
60 evutil_timerclear(&tv);
61 tv.tv_sec = 2;
62 event_add(timeout, &tv);
70 struct timeval tv; local
97 evutil_timerclear(&tv);
98 tv.tv_sec = 2;
99 event_add(&timeout, &tv);
/freebsd-current/sys/contrib/libsodium/test/default/
H A Dkeygen.c38 const KeygenTV *tv; local
44 tv = &tvs[i];
45 key = (unsigned char *) sodium_malloc(tv->key_len);
46 key[tv->key_len - 1U] = 0;
48 tv->fn(key);
49 if (key[tv->key_len - 1U] != 0) {
H A Dpwhash_scrypt_ll.c24 tv(const char *passwd, const char *salt, uint64_t N, uint32_t r, uint32_t p) function
54 tv(passwd1, salt1, N1, r1, p1);
55 tv(passwd2, salt2, N2, r2, p2);
56 tv(passwd3, salt3, N3, r3, p3);
/freebsd-current/contrib/ntp/libntp/lib/isc/unix/
H A Dtime.c62 fix_tv_usec(struct timeval *tv) { argument
65 if (tv->tv_usec < 0) {
68 tv->tv_sec -= 1;
69 tv->tv_usec += US_PER_S;
70 } while (tv->tv_usec < 0);
71 } else if (tv->tv_usec >= US_PER_S) {
74 tv->tv_sec += 1;
75 tv->tv_usec -= US_PER_S;
76 } while (tv->tv_usec >=US_PER_S);
147 struct timeval tv; local
189 struct timeval tv; local
[all...]
/freebsd-current/contrib/netbsd-tests/lib/librumphijack/
H A Dh_client.c52 struct timeval tv; local
56 tv.tv_sec = 0;
57 tv.tv_usec = 1;
64 rv = select(pipefd[0]+1, &rfds, NULL, NULL, &tv);
75 struct timeval tv; local
78 tv.tv_sec = 0;
79 tv.tv_usec = 1;
83 rv = select(100, &fds, &fds, &fds, &tv);
89 rv = select(0, NULL, NULL, NULL, &tv);
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devutil_time.c72 evutil_gettimeofday(struct timeval *tv, struct timezone *tz) argument
93 if (tv == NULL)
118 tv->tv_sec = (long) (ft.ft_64 / UNITS_PER_SEC);
119 tv->tv_usec = (long) ((ft.ft_64 / UNITS_PER_USEC) % USEC_PER_SEC);
128 evutil_tv_to_msec_(const struct timeval *tv) argument
130 if (tv->tv_usec > 1000000 || tv->tv_sec > MAX_SECONDS_IN_MSEC_LONG)
133 return (tv->tv_sec * 1000) + ((tv->tv_usec + 999) / 1000);
141 evutil_usleep_(const struct timeval *tv) argument
231 adjust_monotonic_time(struct evutil_monotonic_timer *base, struct timeval *tv) argument
[all...]
H A Dtime-internal.h56 long evutil_tv_to_msec_(const struct timeval *tv);
58 void evutil_usleep_(const struct timeval *tv);
94 int evutil_gettime_monotonic_(struct evutil_monotonic_timer *mt, struct timeval *tv);
/freebsd-current/contrib/libevent/
H A Devutil_time.c72 evutil_gettimeofday(struct timeval *tv, struct timezone *tz) argument
93 if (tv == NULL)
118 tv->tv_sec = (long) (ft.ft_64 / UNITS_PER_SEC);
119 tv->tv_usec = (long) ((ft.ft_64 / UNITS_PER_USEC) % USEC_PER_SEC);
128 evutil_tv_to_msec_(const struct timeval *tv) argument
130 if (tv->tv_usec > 1000000 || tv->tv_sec > MAX_SECONDS_IN_MSEC_LONG)
133 return (tv->tv_sec * 1000) + ((tv->tv_usec + 999) / 1000);
141 evutil_usleep_(const struct timeval *tv) argument
231 adjust_monotonic_time(struct evutil_monotonic_timer *base, struct timeval *tv) argument
[all...]
H A Dtime-internal.h56 long evutil_tv_to_msec_(const struct timeval *tv);
58 void evutil_usleep_(const struct timeval *tv);
94 int evutil_gettime_monotonic_(struct evutil_monotonic_timer *mt, struct timeval *tv);
/freebsd-current/sys/netinet/
H A Dtcp_hpts.h205 struct timeval tv; local
208 sv = &tv;
214 tcp_get_u64_usecs(struct timeval *tv) argument
218 if (tv == NULL)
219 tv = &tvd;
220 microuptime(tv);
221 return (tcp_tv_to_lusectick(tv));
225 tcp_get_usecs(struct timeval *tv) argument
229 if (tv == NULL)
230 tv
[all...]
H A Dtcp_timer.h130 #define TCPT_RANGESET(tv, value, tvmin, tvmax) do { \
131 (tv) = (value) + tcp_rexmit_slop; \
132 if ((u_long)(tv) < (u_long)(tvmin)) \
133 (tv) = (tvmin); \
134 if ((u_long)(tv) > (u_long)(tvmax)) \
135 (tv) = (tvmax); \
/freebsd-current/lib/msun/src/
H A Ds_exp2f.c96 double tv, twopk, u, z; local
130 tv = exp2ft[i0];
131 u = tv * z;
132 tv = tv + u * (P1 + z * P2) + u * (z * z) * (P3 + z * P4);
135 return (tv * twopk);
/freebsd-current/contrib/ncurses/include/
H A Dwin32_curses.h72 #define gettimeofday(tv,tz) _nc_gettimeofday(tv,tz)
/freebsd-current/contrib/libxo/tests/gettext/
H A Dgt_01.c89 struct timeval tv; local
90 tv.tv_sec = 1435085229;
91 tv.tv_usec = 123456;
94 (void) gmtime_r(&tv.tv_sec, &tm);
/freebsd-current/contrib/ntp/kernel/sys/
H A Dppsclock.h42 struct timeval tv; member in struct:ppsclockev
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dnet_write.c55 struct timeval tv, *tvp; local
66 tv.tv_sec = timeout;
67 tv.tv_usec = 0;
68 tvp = &tv;
/freebsd-current/contrib/llvm-project/libcxx/src/filesystem/
H A Dfilesystem_clock.cpp56 timeval tv;
57 gettimeofday(&tv, 0);
58 return time_point(__secs(tv.tv_sec) + __microsecs(tv.tv_usec));
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/
H A Dt_time.c94 struct timeval tv = { 0, 0 }; local
98 ATF_REQUIRE(gettimeofday(&tv, NULL) == 0);
102 (int64_t)t1, (int64_t)tv.tv_sec);
104 if (t1 > tv.tv_sec || t2 < tv.tv_sec)

Completed in 176 milliseconds

1234567891011>>