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

1234567891011>>

/freebsd-13-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-13-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-13-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-13-stable/sys/sys/
H A Dtimespec.h43 #define TIMEVAL_TO_TIMESPEC(tv, ts) \
45 (ts)->tv_sec = (tv)->tv_sec; \
46 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
48 #define TIMESPEC_TO_TIMEVAL(tv, ts) \
50 (tv)->tv_sec = (ts)->tv_sec; \
51 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
/freebsd-13-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-13-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-13-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-13-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-13-stable/lib/libc/sys/
H A Dgettimeofday.c37 int __gettimeofday(struct timeval *tv, struct timezone *tz);
42 __gettimeofday(struct timeval *tv, struct timezone *tz) argument
46 error = __vdso_gettimeofday(tv, tz);
48 error = __sys_gettimeofday(tv, tz);
/freebsd-13-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-13-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-13-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-13-stable/contrib/ncurses/ncurses/win32con/
H A Dgettimeofday.c44 gettimeofday(struct timeval *tv, void *tz GCC_UNUSED) argument
52 tv->tv_usec = (long) ((data.since1601 / 10LL) % 1000000LL);
53 tv->tv_sec = (long) ((data.since1601 - JAN1970) / 10000000LL);
/freebsd-13-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-13-stable/contrib/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
105 tv.tv_sec = 0;
106 tv.tv_usec = rand_int(50000);
107 evtimer_add(ev[i], &tv);
/freebsd-13-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-13-stable/sys/contrib/libsodium/test/default/
H A Dpwhash_argon2i.exp4 [tv] pwhash failure (maybe intentional): [3]
7 [tv] pwhash failure (maybe intentional): [6]
H A Dsign.exp3 ed25519ph tv sig: [98a70222f0b8121aa9d30f813d683f809e462b469c7ff87639499bb94e6dae4131f85042463c2a355a2003d062adf5aaa10b8c61e636062aaad11c2a26083406]
/freebsd-13-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-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/hkdf/
H A Dhkdf_test.c187 run_test(int i, hkdf_tv_t *tv) argument
194 ret = hkdf_sha512((uint8_t *)tv->ikm, tv->ikm_len, (uint8_t *)tv->salt,
195 tv->salt_len, (uint8_t *)tv->info, tv->info_len, okey, tv->okm_len);
201 if (bcmp(okey, tv->okm, tv
[all...]
/freebsd-13-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-13-stable/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-13-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...]

Completed in 135 milliseconds

1234567891011>>