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

1234567891011>>

/freebsd-9.3-release/contrib/ntp/libntp/
H A Dbuftvtots.c21 struct timeval tv; local
26 memcpy(&tv, bufp, sizeof(tv));
31 if (tv.tv_usec > MICROSECONDS - 1)
34 *ts = tval_stamp_to_lfp(tv);
/freebsd-9.3-release/contrib/bind9/lib/isc/unix/
H A Dstdtime.c41 fix_tv_usec(struct timeval *tv) { argument
44 if (tv->tv_usec < 0) {
47 tv->tv_sec -= 1;
48 tv->tv_usec += US_PER_S;
49 } while (tv->tv_usec < 0);
50 } else if (tv->tv_usec >= US_PER_S) {
53 tv->tv_sec += 1;
54 tv->tv_usec -= US_PER_S;
55 } while (tv->tv_usec >=US_PER_S);
67 struct timeval tv; local
[all...]
H A Dtime.c64 fix_tv_usec(struct timeval *tv) { argument
67 if (tv->tv_usec < 0) {
70 tv->tv_sec -= 1;
71 tv->tv_usec += US_PER_S;
72 } while (tv->tv_usec < 0);
73 } else if (tv->tv_usec >= US_PER_S) {
76 tv->tv_sec += 1;
77 tv->tv_usec -= US_PER_S;
78 } while (tv->tv_usec >=US_PER_S);
149 struct timeval tv; local
191 struct timeval tv; local
[all...]
/freebsd-9.3-release/contrib/ofed/management/libibcommon/src/
H A Dtime.c43 struct timeval tv; local
45 gettimeofday(&tv, 0);
46 return (uint64_t)tv.tv_sec * 1000000 + tv.tv_usec;
/freebsd-9.3-release/contrib/ntp/lib/isc/unix/
H A Dstdtime.c41 fix_tv_usec(struct timeval *tv) { argument
44 if (tv->tv_usec < 0) {
47 tv->tv_sec -= 1;
48 tv->tv_usec += US_PER_S;
49 } while (tv->tv_usec < 0);
50 } else if (tv->tv_usec >= US_PER_S) {
53 tv->tv_sec += 1;
54 tv->tv_usec -= US_PER_S;
55 } while (tv->tv_usec >=US_PER_S);
67 struct timeval tv; local
[all...]
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-9.3-release/lib/libc/gen/
H A Dutime.c45 struct timeval tv[2], *tvp; local
48 tv[0].tv_sec = times->actime;
49 tv[1].tv_sec = times->modtime;
50 tv[0].tv_usec = tv[1].tv_usec = 0;
51 tvp = tv;
/freebsd-9.3-release/sys/sys/
H A Dtimespec.h41 #define TIMEVAL_TO_TIMESPEC(tv, ts) \
43 (ts)->tv_sec = (tv)->tv_sec; \
44 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
46 #define TIMESPEC_TO_TIMEVAL(tv, ts) \
48 (tv)->tv_sec = (ts)->tv_sec; \
49 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
/freebsd-9.3-release/contrib/openbsm/compat/
H A Dclock_gettime.h43 struct timeval tv; local
49 if (gettimeofday(&tv, NULL) < 0)
51 ts->tv_sec = tv.tv_sec;
52 ts->tv_nsec = tv.tv_usec * 1000;
/freebsd-9.3-release/sys/netipx/
H A Dspx_timer.h141 #define SPXT_RANGESET(tv, value, tvmin, tvmax) { \
142 (tv) = (value); \
143 if ((tv) < (tvmin)) \
144 (tv) = (tvmin); \
145 else if ((tv) > (tvmax)) \
146 (tv) = (tvmax); \
/freebsd-9.3-release/lib/libc/sys/
H A Dgettimeofday.c35 int __gettimeofday(struct timeval *tv, struct timezone *tz);
40 __gettimeofday(struct timeval *tv, struct timezone *tz) argument
44 error = __vdso_gettimeofday(tv, tz);
46 error = __sys_gettimeofday(tv, tz);
/freebsd-9.3-release/tools/regression/acct/
H A Dpack.c78 struct timeval tv; local
84 tv.tv_sec = random();
85 tv.tv_usec = (random() % 1000000);
86 v.c = encode_timeval(tv);
88 (float)tv.tv_sec * AHZ + tv.tv_usec, v);
95 tv.tv_sec = atol(argv[1]);
96 tv.tv_usec = atol(argv[2]);
97 v.c = encode_timeval(tv);
99 (float)tv
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dtest_time.c45 struct timeval tv; local
49 gettimeofday(&tv, NULL);
51 ret = krb5_set_real_time(context, tv.tv_sec + diff, tv.tv_usec);
59 diff2 = abs(sec - tv.tv_sec);
63 abs(sec - tv.tv_sec));
H A Dtime.c49 struct timeval tv; local
51 gettimeofday(&tv, NULL);
53 context->kdc_sec_offset = sec - tv.tv_sec;
54 context->kdc_usec_offset = usec - tv.tv_usec;
84 struct timeval tv; local
86 gettimeofday (&tv, NULL);
88 *sec = tv.tv_sec + context->kdc_sec_offset;
89 *usec = tv.tv_usec; /* XXX */
/freebsd-9.3-release/sys/ofed/include/linux/
H A Djiffies.h40 struct timeval tv; local
42 tv.tv_sec = msec / 1000;
43 tv.tv_usec = (msec % 1000) * 1000;
44 return (tvtohz(&tv));
/freebsd-9.3-release/contrib/ntp/sntp/libevent/test/
H A Dtest-time.c63 struct timeval tv; local
71 tv.tv_sec = 0;
72 tv.tv_usec = rand_int(50000);
73 if (tv.tv_usec % 2 || called < NEVENT)
74 evtimer_add(ev[j], &tv);
84 struct timeval tv; local
106 tv.tv_sec = 0;
107 tv.tv_usec = rand_int(50000);
108 evtimer_add(ev[i], &tv);
/freebsd-9.3-release/tools/regression/priv/
H A Dpriv_vfs_utimes.c34 * Test NULL and non-NULL tv arguments to utimes() -- if NULL, then it is
92 struct timeval tv[2]; local
95 tv[0].tv_sec = 0;
96 tv[0].tv_usec = 0;
97 tv[1].tv_sec = 0;
98 tv[1].tv_usec = 0;
99 error = utimes(fpath, tv);
135 struct timeval tv[2]; local
138 tv[0].tv_sec = 0;
139 tv[
176 struct timeval tv[2]; local
[all...]
/freebsd-9.3-release/contrib/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...]
/freebsd-9.3-release/tools/regression/poll/
H A Dpipeselect.c20 #define SETUP(fd, rfds, tv) do { \
23 (tv).tv_sec = 0; \
24 (tv).tv_usec = 0; \
63 struct timeval tv; local
76 SETUP(fd, rfds, tv);
77 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
107 SETUP(fd, rfds, tv);
108 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
116 SETUP(fd, rfds, tv);
117 if (select(fd + 1, &rfds, NULL, NULL, &tv) <
[all...]
/freebsd-9.3-release/contrib/gcclibs/libgomp/config/posix/
H A Dtime.c59 struct timeval tv;
60 gettimeofday (&tv, NULL);
61 return tv.tv_sec + tv.tv_usec / 1e6;
/freebsd-9.3-release/contrib/ntp/include/
H A Dadjtime.h49 struct timeval tv; member in struct:__anon1::__anon2
/freebsd-9.3-release/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-9.3-release/sys/gnu/fs/xfs/FreeBSD/
H A Dxfs_vnode.c154 timespec_t tv; local
156 vfs_timestamp(&tv);
158 ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec;
159 ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec;
162 ip->i_d.di_atime.t_sec = (__int32_t)tv.tv_sec;
163 ip->i_d.di_atime.t_nsec = (__int32_t)tv.tv_nsec;
166 ip->i_d.di_ctime.t_sec = (__int32_t)tv.tv_sec;
167 ip->i_d.di_ctime.t_nsec = (__int32_t)tv.tv_nsec;
196 timespec_t tv; local
199 vfs_timestamp(&tv);
[all...]
/freebsd-9.3-release/contrib/ntp/sntp/libevent/
H A Dtime-internal.h56 long evutil_tv_to_msec_(const struct timeval *tv);
57 void evutil_usleep_(const struct timeval *tv);
91 int evutil_gettime_monotonic_(struct evutil_monotonic_timer *mt, struct timeval *tv);
/freebsd-9.3-release/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);

Completed in 282 milliseconds

1234567891011>>