Searched refs:tv (Results 1 - 25 of 427) sorted by relevance

1234567891011>>

/openbsd-current/lib/libc/gen/
H A Dutime.c38 struct timeval tv[2], *tvp; local
43 tv[0].tv_sec = times->actime;
44 tv[1].tv_sec = times->modtime;
45 tv[0].tv_usec = tv[1].tv_usec = 0;
46 tvp = tv;
/openbsd-current/usr.sbin/unbound/util/
H A Dtimeval_func.h45 #define timeval_isset(tv) ((tv)->tv_sec || (tv)->tv_usec)
48 #define timeval_clear(tv) ((tv)->tv_sec = (tv)->tv_usec = 0)
/openbsd-current/sbin/unwind/libunbound/util/
H A Dtimeval_func.h45 #define timeval_isset(tv) ((tv)->tv_sec || (tv)->tv_usec)
48 #define timeval_clear(tv) ((tv)->tv_sec = (tv)->tv_usec = 0)
/openbsd-current/regress/sys/kern/itimer/
H A Ditimer.c25 struct timeval stv, tv; local
66 gettimeofday(&tv, NULL);
67 timersub(&tv, &stv, &tv);
73 tv = ru.ru_utime;
79 if (timercmp(&stv, &tv, <))
80 timersub(&tv, &stv, &tv);
82 timersub(&stv, &tv, &tv);
[all...]
/openbsd-current/regress/usr.bin/ssh/
H A Dtimestamp.c34 struct timeval tv; local
38 if (gettimeofday(&tv, NULL) != 0)
40 if ((tm = localtime(&tv.tv_sec)) == NULL)
44 printf("%s.%06d\n", buf, (int)tv.tv_usec);
/openbsd-current/regress/lib/libc/timekeep/
H A Dtest_gettimeofday.c26 struct timeval tv = {0}; local
29 ASSERT_EQ(0, gettimeofday(&tv, NULL));
30 ASSERT_EQ(0, gettimeofday(&tv, &tzp));
/openbsd-current/regress/lib/libc/gcvt/
H A Dgcvt_test.c97 dotest(struct test_vector *tv) argument
101 got = gcvt(tv->d, tv->ndig, buf);
102 if (strcmp(tv->expect, got) != 0) {
104 tv->d, tv->ndig, tv->expect, got);
/openbsd-current/usr.sbin/smtpd/
H A Dreport_smtp.c26 struct timeval tv; local
28 gettimeofday(&tv, NULL);
32 m_add_timeval(p_lka, &tv);
45 struct timeval tv; local
47 gettimeofday(&tv, NULL);
51 m_add_timeval(p_lka, &tv);
60 struct timeval tv; local
62 gettimeofday(&tv, NULL);
66 m_add_timeval(p_lka, &tv);
76 struct timeval tv; local
91 struct timeval tv; local
105 struct timeval tv; local
121 struct timeval tv; local
136 struct timeval tv; local
151 struct timeval tv; local
168 struct timeval tv; local
185 struct timeval tv; local
201 struct timeval tv; local
217 struct timeval tv; local
233 struct timeval tv; local
248 struct timeval tv; local
263 struct timeval tv; local
278 struct timeval tv; local
295 struct timeval tv; local
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/opt/
H A Dnrv7.C13 A tv = foo(); variable
/openbsd-current/regress/lib/libevent/
H A Dtest-time.c48 struct timeval tv; local
56 tv.tv_sec = 0;
57 tv.tv_usec = rand_int(50000);
58 if (tv.tv_usec % 2)
59 evtimer_add(ev[j], &tv);
69 struct timeval tv; local
80 tv.tv_sec = 0;
81 tv.tv_usec = rand_int(50000);
82 evtimer_add(ev[i], &tv);
/openbsd-current/regress/sys/kern/rcvtimeo/
H A Drcvtimeo.c31 struct timeval tv; local
51 tv.tv_sec = 1;
52 tv.tv_usec = 0;
53 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0)
63 tv.tv_sec = 0;
64 tv.tv_usec = 1;
65 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0)
/openbsd-current/gnu/gcc/gcc/
H A Dtimevar.c266 struct timevar_def *tv = &timevars[timevar]; local
271 tv->used = 1;
274 gcc_assert (!tv->standalone);
299 context->timevar = tv;
344 struct timevar_def *tv = &timevars[timevar]; local
350 tv->used = 1;
354 gcc_assert (!tv->standalone);
355 tv->standalone = 1;
357 get_time (&tv->start_time);
366 struct timevar_def *tv local
415 struct timevar_def *tv = &timevars[(timevar_id_t) id]; local
[all...]
/openbsd-current/usr.sbin/ntpd/
H A Dutil.c38 struct timeval tv; local
39 if (adjtime(NULL, &tv) == -1)
41 return (tv.tv_sec + 1.0e-6 * tv.tv_usec);
47 struct timeval tv; local
49 if (gettimeofday(&tv, NULL) == -1)
52 return (gettime_from_timeval(&tv));
56 gettime_from_timeval(struct timeval *tv) argument
61 return ((uint64_t)tv->tv_sec + JAN_1970 + 1.0e-6 * tv
77 d_to_tv(double d, struct timeval *tv) argument
[all...]
/openbsd-current/gnu/gcc/libgomp/config/posix/
H A Dtime.c59 struct timeval tv;
60 gettimeofday (&tv, NULL);
61 return tv.tv_sec + tv.tv_usec / 1e6;
/openbsd-current/lib/libc/yp/
H A Dyp_maplist.c42 struct timeval tv; local
49 tv.tv_sec = _yplib_timeout;
50 tv.tv_usec = 0;
55 xdr_domainname, &indomain, xdr_ypresp_maplist, &ypml, tv);
/openbsd-current/sys/netinet/
H A Dtcp_timer.h142 #define TCPT_RANGESET(tv, value, tvmin, tvmax) \
144 (tv) = (value); \
145 if ((tv) < (tvmin)) \
146 (tv) = (tvmin); \
147 else if ((tv) > (tvmax)) \
148 (tv) = (tvmax); \
/openbsd-current/gnu/usr.bin/gcc/gcc/
H A Dtimevar.c261 struct timevar_def *tv = &timevars[timevar]; local
269 tv->used = 1;
272 if (tv->standalone)
299 context->timevar = tv;
354 struct timevar_def *tv = &timevars[timevar]; local
360 tv->used = 1;
364 if (tv->standalone)
366 tv->standalone = 1;
368 get_time (&tv->start_time);
378 struct timevar_def *tv local
400 struct timevar_def *tv = &timevars[timevar]; local
456 struct timevar_def *tv = &timevars[(timevar_id_t) id]; local
[all...]
/openbsd-current/usr.sbin/ypserv/common/
H A Dyplib_host.c52 struct timeval tv; local
78 tv.tv_sec = 10;
79 tv.tv_usec = 0;
85 client = clntudp_create(&rsrv_sin, program, version, tv,
101 struct timeval tv; local
110 tv.tv_sec = 10;
111 tv.tv_usec = 0;
113 client = clntudp_create(&rsrv_sin, program, version, tv, &rsrv_sock);
127 struct timeval tv; local
133 tv
163 struct timeval tv; local
200 struct timeval tv; local
297 struct timeval tv; local
320 struct timeval tv; local
345 struct timeval tv; local
369 struct timeval tv; local
[all...]
/openbsd-current/sys/arch/sparc64/dev/
H A Dprtc.c104 prtc_gettime(todr_chip_handle_t handle, struct timeval *tv) argument
112 tv->tv_sec = tod;
113 tv->tv_usec = 0;
118 prtc_settime(todr_chip_handle_t handle, struct timeval *tv) argument
124 prtc_opl_gettime(todr_chip_handle_t handle, struct timeval *tv) argument
141 tv->tv_sec = args.time;
142 tv->tv_usec = 0;
148 prtc_opl_settime(todr_chip_handle_t handle, struct timeval *tv) argument
165 args.diff = tv->tv_sec - otv.tv_sec;
H A Dvrtc.c78 vrtc_gettime(todr_chip_handle_t handle, struct timeval *tv) argument
85 tv->tv_sec = tod;
86 tv->tv_usec = 0;
91 vrtc_settime(todr_chip_handle_t handle, struct timeval *tv) argument
93 if (hv_tod_set(tv->tv_sec) != H_EOK)
/openbsd-current/libexec/ftpd/
H A Dlogwtmp.c59 struct timeval tv; local
69 gettimeofday(&tv, NULL);
70 ut.ut_time = tv.tv_sec;
/openbsd-current/lib/libm/src/
H A Ds_exp2f.c94 double tv, twopk, u, z; local
128 tv = exp2ft[i0];
129 u = tv * z;
130 tv = tv + u * (P1 + z * P2) + u * (z * z) * (P3 + z * P4);
133 return (tv * twopk);
/openbsd-current/sys/arch/luna88k/luna88k/
H A Dclock.c71 rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv) argument
75 (*clockfns->cf_get)(clockdev, tv->tv_sec, &dt);
76 tv->tv_sec = clock_ymdhms_to_secs(&dt);
77 tv->tv_usec = 0;
82 rtc_settime(struct todr_chip_handle *handle, struct timeval *tv) argument
86 clock_secs_to_ymdhms(tv->tv_sec, &dt);
/openbsd-current/gnu/lib/libiberty/src/
H A Dmkstemps.c80 struct timeval tv; local
98 gettimeofday (&tv, NULL);
99 value += ((gcc_uint64_t) tv.tv_usec << 16) ^ tv.tv_sec ^ getpid ();
/openbsd-current/lib/libc/rpc/
H A Dclnt_generic.c52 struct timeval tv; local
82 tv.tv_sec = 5;
83 tv.tv_usec = 0;
84 client = clntudp_create(&sin, prog, vers, tv, &sock);

Completed in 322 milliseconds

1234567891011>>