/freebsd-10.3-release/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-10.3-release/contrib/ofed/management/libibcommon/src/ |
H A D | time.c | 43 struct timeval tv; local 45 gettimeofday(&tv, 0); 46 return (uint64_t)tv.tv_sec * 1000000 + tv.tv_usec;
|
/freebsd-10.3-release/contrib/ntp/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...] |
H A D | time.c | 62 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-10.3-release/lib/libc/gen/ |
H A D | utime.c | 45 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-10.3-release/sys/sys/ |
H A D | timespec.h | 41 #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-10.3-release/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-10.3-release/tests/sys/kern/acct/ |
H A D | acct_test.c | 82 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-10.3-release/sys/netipx/ |
H A D | spx_timer.h | 141 #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-10.3-release/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) * UINT64_C(1000) + tv.tv_nsec / 1000000; 44 struct timeval tv; 45 gettimeofday(&tv, NULL); 46 return (uint64_t)(tv.tv_sec) * UINT64_C(1000) + tv.tv_usec / 1000;
|
/freebsd-10.3-release/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-10.3-release/lib/libc/sys/ |
H A D | gettimeofday.c | 35 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 D | futimens.c | 43 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 D | utimensat.c | 43 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-10.3-release/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-10.3-release/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); 84 struct timeval tv; local 106 tv.tv_sec = 0; 107 tv.tv_usec = rand_int(50000); 108 evtimer_add(ev[i], &tv);
|
/freebsd-10.3-release/sys/ofed/include/linux/ |
H A D | ktime.h | 52 * endian-aware order of the tv struct members is chosen to allow 69 } tv; member in union:ktime 129 static inline ktime_t timeval_to_ktime(struct timeval tv) argument 131 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); 153 * that the tv.sec field is negative and the tv.nsec field is greater 157 * tv.sec < 0 and 0 >= tv.nsec < NSEC_PER_SEC 163 return (ktime_t) { .tv 246 timeval_to_ktime(const struct timeval tv) argument [all...] |
H A D | jiffies.h | 41 struct timeval tv; local 43 tv.tv_sec = msec / 1000; 44 tv.tv_usec = (msec % 1000) * 1000; 45 return (tvtohz(&tv) - 1);
|
/freebsd-10.3-release/tools/regression/priv/ |
H A D | priv_vfs_utimes.c | 34 * 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-10.3-release/contrib/gcc/ |
H A D | timevar.c | 266 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-10.3-release/tools/regression/poll/ |
H A D | pipeselect.c | 20 #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-10.3-release/contrib/gcclibs/libgomp/config/posix/ |
H A D | time.c | 59 struct timeval tv; 60 gettimeofday (&tv, NULL); 61 return tv.tv_sec + tv.tv_usec / 1e6;
|
/freebsd-10.3-release/contrib/ntp/include/ |
H A D | adjtime.h | 49 struct timeval tv; member in struct:__anon4007::__anon4008
|
/freebsd-10.3-release/contrib/ntp/sntp/libevent/include/event2/ |
H A D | event_compat.h | 198 #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))
|