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

1234567891011>>

/freebsd-11-stable/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-11-stable/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...]
/freebsd-11-stable/lib/libc/gen/
H A Dutime.c43 struct timeval tv[2], *tvp; local
46 tv[0].tv_sec = times->actime;
47 tv[1].tv_sec = times->modtime;
48 tv[0].tv_usec = tv[1].tv_usec = 0;
49 tvp = tv;
/freebsd-11-stable/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-11-stable/contrib/blacklist/port/
H A Dclock_gettime.c11 struct timeval tv; local
12 if (gettimeofday(&tv, NULL) == -1)
14 ts->tv_sec = tv.tv_sec;
15 ts->tv_nsec = tv.tv_usec * 1000;
/freebsd-11-stable/contrib/openbsm/compat/
H A Dclock_gettime.h41 struct timeval tv; local
47 if (gettimeofday(&tv, NULL) < 0)
49 ts->tv_sec = tv.tv_sec;
50 ts->tv_nsec = tv.tv_usec * 1000;
/freebsd-11-stable/tests/sys/kern/acct/
H A Dacct_test.c82 struct timeval tv; local
84 tv.tv_sec = 0;
85 tv.tv_usec = 0;
86 v.c = encode_timeval(tv);
113 struct timeval tv; local
115 tv.tv_sec = 1;
116 tv.tv_usec = 0;
117 v.c = encode_timeval(tv);
119 (float)tv.tv_sec * AHZ + tv
130 struct timeval tv; local
147 struct timeval tv; local
166 struct timeval tv; local
186 struct timeval tv; local
204 struct timeval tv; local
[all...]
/freebsd-11-stable/contrib/xz/src/xz/
H A Dmytime.c37 struct timespec tv; local
38 while (clock_gettime(clk_id, &tv))
41 return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_nsec / 1000000);
43 struct timeval tv;
44 gettimeofday(&tv, NULL);
45 return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_usec / 1000);
/freebsd-11-stable/contrib/netbsd-tests/libexec/ld.elf_so/
H A Dt_dl_symver.sh42 for tv in 0 1 2; do
45 -o file:$(datadir)/symver-output-ref-stdout.v$tv-v$lv \
46 -e file:$(datadir)/symver-output-ref-stderr.v$tv-v$lv \
47 -x "LD_LIBRARY_PATH=$(atf_get_srcdir)/h_helper_symver_dso$lv $(atf_get_srcdir)/h_dl_symver_v$tv"
/freebsd-11-stable/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);
H A Dfutimens.c43 struct timeval now, tv[2], *tvp; local
71 tv[0].tv_sec = times[0].tv_sec;
72 tv[0].tv_usec = times[0].tv_nsec / 1000;
73 tv[1].tv_sec = times[1].tv_sec;
74 tv[1].tv_usec = times[1].tv_nsec / 1000;
75 tvp = tv;
81 tv[0].tv_sec = sb.st_atim.tv_sec;
82 tv[0].tv_usec = sb.st_atim.tv_nsec / 1000;
85 tv[1].tv_sec = sb.st_mtim.tv_sec;
86 tv[
[all...]
H A Dutimensat.c43 struct timeval now, tv[2], *tvp; local
75 tv[0].tv_sec = times[0].tv_sec;
76 tv[0].tv_usec = times[0].tv_nsec / 1000;
77 tv[1].tv_sec = times[1].tv_sec;
78 tv[1].tv_usec = times[1].tv_nsec / 1000;
79 tvp = tv;
85 tv[0].tv_sec = sb.st_atim.tv_sec;
86 tv[0].tv_usec = sb.st_atim.tv_nsec / 1000;
89 tv[1].tv_sec = sb.st_mtim.tv_sec;
90 tv[
[all...]
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dtest_time.c43 struct timeval tv; local
47 gettimeofday(&tv, NULL);
49 ret = krb5_set_real_time(context, tv.tv_sec + diff, tv.tv_usec);
57 diff2 = abs(sec - tv.tv_sec);
61 abs(sec - tv.tv_sec));
H A Dtime.c55 struct timeval tv; local
57 gettimeofday(&tv, NULL);
59 context->kdc_sec_offset = sec - tv.tv_sec;
66 context->kdc_usec_offset = usec - tv.tv_usec;
73 context->kdc_usec_offset = tv.tv_usec;
99 struct timeval tv; local
101 gettimeofday (&tv, NULL);
103 *sec = tv.tv_sec + context->kdc_sec_offset;
104 *usec = tv.tv_usec; /* XXX */
/freebsd-11-stable/contrib/elftoolchain/libelftc/
H A Delftc_set_timestamps.c66 struct timeval tv[2]; local
68 tv[0].tv_sec = sb->ATIME.tv_sec;
69 tv[0].tv_usec = sb->ATIME.tv_nsec / 1000;
70 tv[1].tv_sec = sb->MTIME.tv_sec;
71 tv[1].tv_usec = sb->MTIME.tv_nsec / 1000;
73 return (utimes(fn, tv));
/freebsd-11-stable/contrib/ncurses/ncurses/win32con/
H A Dgettimeofday.c40 gettimeofday(struct timeval *tv, void *tz GCC_UNUSED) argument
48 tv->tv_usec = (long) ((data.since1601 / 10LL) % 1000000LL);
49 tv->tv_sec = (long) ((data.since1601 - JAN1970) / 10000000LL);
/freebsd-11-stable/tools/build/
H A Dfutimens.c44 struct timeval now, tv[2], *tvp; local
67 tv[0].tv_sec = times[0].tv_sec;
68 tv[0].tv_usec = times[0].tv_nsec / 1000;
69 tv[1].tv_sec = times[1].tv_sec;
70 tv[1].tv_usec = times[1].tv_nsec / 1000;
71 tvp = tv;
77 tv[0].tv_sec = sb.st_atim.tv_sec;
78 tv[0].tv_usec = sb.st_atim.tv_nsec / 1000;
81 tv[1].tv_sec = sb.st_mtim.tv_sec;
82 tv[
[all...]
H A Dutimensat.c44 struct timeval now, tv[2], *tvp; local
71 tv[0].tv_sec = times[0].tv_sec;
72 tv[0].tv_usec = times[0].tv_nsec / 1000;
73 tv[1].tv_sec = times[1].tv_sec;
74 tv[1].tv_usec = times[1].tv_nsec / 1000;
75 tvp = tv;
81 tv[0].tv_sec = sb.st_atim.tv_sec;
82 tv[0].tv_usec = sb.st_atim.tv_nsec / 1000;
85 tv[1].tv_sec = sb.st_mtim.tv_sec;
86 tv[
[all...]
/freebsd-11-stable/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-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dtime.h46 struct timeval tv; local
50 tv.tv_sec = 0;
51 tv.tv_usec = 0;
52 return (tv);
55 tv.tv_sec = nsec / NSEC_PER_SEC;
58 tv.tv_sec--;
61 tv.tv_usec = rem / 1000;
62 return (tv);
66 timeval_to_ns(const struct timeval *tv) argument
68 return ((int64_t)tv
[all...]
/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/usr.sbin/ypserv/common/
H A Dyplib_host.c71 struct timeval tv; local
95 tv.tv_sec = 10;
96 tv.tv_usec = 0;
102 client = clntudp_create(&rsrv_sin, program, version, tv,
118 struct timeval tv; local
127 tv.tv_sec = 10;
128 tv.tv_usec = 0;
130 client = clntudp_create(&rsrv_sin, program, version, tv, &rsrv_sock);
144 struct timeval tv; local
150 tv
182 struct timeval tv; local
221 struct timeval tv; local
261 struct timeval tv; local
286 struct timeval tv; local
313 struct timeval tv; local
339 struct timeval tv; local
[all...]
/freebsd-11-stable/contrib/ntp/include/
H A Dadjtime.h49 struct timeval tv; member in struct:__anon4750::__anon4751

Completed in 313 milliseconds

1234567891011>>