/freebsd-current/contrib/ntp/libntp/ |
H A D | buftvtots.c | 21 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-current/contrib/ntp/libntp/lib/isc/unix/ |
H A D | stdtime.c | 41 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-current/lib/libc/gen/ |
H A D | utime.c | 39 struct timeval tv[2], *tvp; local 42 tv[0].tv_sec = times->actime; 43 tv[1].tv_sec = times->modtime; 44 tv[0].tv_usec = tv[1].tv_usec = 0; 45 tvp = tv;
|
/freebsd-current/contrib/unbound/util/ |
H A D | timeval_func.h | 45 #define timeval_isset(tv) ((tv)->tv_sec || (tv)->tv_usec) 48 #define timeval_clear(tv) ((tv)->tv_sec = (tv)->tv_usec = 0)
|
/freebsd-current/sys/sys/ |
H A D | timespec.h | 39 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ 41 (ts)->tv_sec = (tv)->tv_sec; \ 42 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 44 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ 46 (tv)->tv_sec = (ts)->tv_sec; \ 47 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
/freebsd-current/contrib/openbsm/compat/ |
H A D | clock_gettime.h | 41 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-current/contrib/blocklist/port/ |
H A D | clock_gettime.c | 11 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-current/tests/sys/kern/acct/ |
H A D | acct_test.c | 79 struct timeval tv; local 81 tv.tv_sec = 0; 82 tv.tv_usec = 0; 83 v.c = encode_timeval(tv); 110 struct timeval tv; local 112 tv.tv_sec = 1; 113 tv.tv_usec = 0; 114 v.c = encode_timeval(tv); 116 (float)tv.tv_sec * AHZ + tv 127 struct timeval tv; local 144 struct timeval tv; local 163 struct timeval tv; local 183 struct timeval tv; local 201 struct timeval tv; local [all...] |
/freebsd-current/contrib/xz/src/xz/ |
H A D | mytime.c | 38 struct timespec tv; local 39 while (clock_gettime(clk_id, &tv)) 42 return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_nsec / 1000000); 44 struct timeval tv; 45 gettimeofday(&tv, NULL); 46 return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_usec / 1000);
|
/freebsd-current/contrib/netbsd-tests/libexec/ld.elf_so/ |
H A D | t_dl_symver.sh | 42 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-current/crypto/openssh/regress/ |
H A D | timestamp.c | 34 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);
|
/freebsd-current/lib/libsys/ |
H A D | gettimeofday.c | 34 int __gettimeofday(struct timeval *tv, struct timezone *tz); 39 __gettimeofday(struct timeval *tv, struct timezone *tz) argument 43 error = __vdso_gettimeofday(tv, tz); 45 error = __sys_gettimeofday(tv, tz);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/hkdf/ |
H A D | hkdf_test.c | 182 run_test(int i, const hkdf_tv_t *tv) argument 189 ret = hkdf_sha512((uint8_t *)tv->ikm, tv->ikm_len, (uint8_t *)tv->salt, 190 tv->salt_len, (uint8_t *)tv->info, tv->info_len, good, tv->okm_len); 196 if (memcmp(good, tv->okm, tv [all...] |
/freebsd-current/contrib/elftoolchain/libelftc/ |
H A D | elftc_set_timestamps.c | 66 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-current/crypto/heimdal/lib/krb5/ |
H A D | test_time.c | 43 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 D | time.c | 55 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-current/contrib/ncurses/ncurses/win32con/ |
H A D | gettimeofday.c | 44 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-current/tools/build/ |
H A D | futimens.c | 42 struct timeval now, tv[2], *tvp; local 65 tv[0].tv_sec = times[0].tv_sec; 66 tv[0].tv_usec = times[0].tv_nsec / 1000; 67 tv[1].tv_sec = times[1].tv_sec; 68 tv[1].tv_usec = times[1].tv_nsec / 1000; 69 tvp = tv; 75 tv[0].tv_sec = sb.st_atim.tv_sec; 76 tv[0].tv_usec = sb.st_atim.tv_nsec / 1000; 79 tv[1].tv_sec = sb.st_mtim.tv_sec; 80 tv[ [all...] |
H A D | utimensat.c | 42 struct timeval now, tv[2], *tvp; local 69 tv[0].tv_sec = times[0].tv_sec; 70 tv[0].tv_usec = times[0].tv_nsec / 1000; 71 tv[1].tv_sec = times[1].tv_sec; 72 tv[1].tv_usec = times[1].tv_nsec / 1000; 73 tvp = tv; 79 tv[0].tv_sec = sb.st_atim.tv_sec; 80 tv[0].tv_usec = sb.st_atim.tv_nsec / 1000; 83 tv[1].tv_sec = sb.st_mtim.tv_sec; 84 tv[ [all...] |
/freebsd-current/sys/contrib/libsodium/test/default/ |
H A D | pwhash_argon2i.exp | 4 [tv] pwhash failure (maybe intentional): [3] 7 [tv] pwhash failure (maybe intentional): [6]
|
H A D | sign.exp | 3 ed25519ph tv sig: [98a70222f0b8121aa9d30f813d683f809e462b469c7ff87639499bb94e6dae4131f85042463c2a355a2003d062adf5aaa10b8c61e636062aaad11c2a26083406]
|
/freebsd-current/contrib/ntp/sntp/libevent/test/ |
H A D | test-time.c | 63 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); 85 struct timeval tv; local 107 tv.tv_sec = 0; 108 tv.tv_usec = rand_int(50000); 109 evtimer_add(ev[i], &tv);
|
/freebsd-current/contrib/libevent/test/ |
H A D | test-time.c | 63 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); 85 struct timeval tv; local 107 tv.tv_sec = 0; 108 tv.tv_usec = rand_int(50000); 109 evtimer_add(ev[i], &tv);
|
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | time.h | 48 struct timeval tv; local 52 tv.tv_sec = 0; 53 tv.tv_usec = 0; 54 return (tv); 57 tv.tv_sec = nsec / NSEC_PER_SEC; 60 tv.tv_sec--; 63 tv.tv_usec = rem / 1000; 64 return (tv); 68 timeval_to_ns(const struct timeval *tv) argument 70 return ((int64_t)tv [all...] |
/freebsd-current/tools/regression/priv/ |
H A D | priv_vfs_utimes.c | 32 * Test NULL and non-NULL tv arguments to utimes() -- if NULL, then it is 90 struct timeval tv[2]; local 93 tv[0].tv_sec = 0; 94 tv[0].tv_usec = 0; 95 tv[1].tv_sec = 0; 96 tv[1].tv_usec = 0; 97 error = utimes(fpath, tv); 133 struct timeval tv[2]; local 136 tv[0].tv_sec = 0; 137 tv[ 174 struct timeval tv[2]; local [all...] |