/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | bsd-misc.c | 131 struct timeval tv[2]; local 136 tv[0].tv_sec = times[0].tv_sec; 137 tv[0].tv_usec = times[0].tv_nsec / 1000; 138 tv[1].tv_sec = times[1].tv_sec; 139 tv[1].tv_usec = times[1].tv_nsec / 1000; 146 return utimes(path, tv); 154 ret = futimes(fd, tv);
|
H A D | bsd-pselect.c | 160 struct timeval tv, *tvp = NULL; local 163 tv.tv_sec = timeout->tv_sec; 164 tv.tv_usec = timeout->tv_nsec / 1000; 165 tvp = &tv;
|
/freebsd-current/usr.bin/ypwhich/ |
H A D | ypwhich.c | 89 struct timeval tv; local 94 tv.tv_sec = 15; 95 tv.tv_usec = 0; 96 client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock); 103 tv.tv_sec = 5; 104 tv.tv_usec = 0; 108 (xdrproc_t)xdr_ypbind_resp, &ypbr, tv);
|
/freebsd-current/sbin/adjkerntz/ |
H A D | adjkerntz.c | 73 struct timeval tv, *stv; local 159 if (gettimeofday(&tv, &tz)) { 165 initial_sec = tv.tv_sec; 267 stv = &tv; 310 (void)gettimeofday(&tv, NULL); 311 tv.tv_sec += diff; 312 stv = &tv;
|
/freebsd-current/sys/arm/nvidia/ |
H A D | tegra_rtc.c | 128 struct timeval tv; local 137 tv.tv_sec = sec; 138 tv.tv_usec = msec * 1000; 139 TIMEVAL_TO_TIMESPEC(&tv, ts); 147 struct timeval tv; local 152 TIMESPEC_TO_TIMEVAL(&tv, ts); 154 WR4(sc, RTC_SECONDS, tv.tv_sec);
|
/freebsd-current/contrib/netbsd-tests/lib/libc/rpc/ |
H A D | t_rpc.c | 68 struct timeval tv; local 73 tv.tv_sec = 0; 74 tv.tv_usec = 500000; 81 &tv)) == NULL) 85 __rpc_control(CLCR_SET_RPCB_TIMEOUT, &tv); 91 tv.tv_sec = 1; 92 tv.tv_usec = 0; 95 (xdrproc_t)xdr_void, NULL, tv) 98 if (clnt_call(clnt, RPCBPROC_NULL, xdr_void, NULL, xdr_void, NULL, tv)
|
/freebsd-current/contrib/unbound/compat/ |
H A D | getentropy_solaris.c | 259 struct timeval tv; local 283 HX((e = gettimeofday(&tv, NULL)) == -1, tv); 285 cnt += (int)tv.tv_sec; 286 cnt += (int)tv.tv_usec; 422 HX((e = gettimeofday(&tv, NULL)) == -1, tv); 424 cnt += (int)tv.tv_sec; 425 cnt += (int)tv.tv_usec;
|
/freebsd-current/contrib/libevent/ |
H A D | evthread_pthread.c | 137 evthread_posix_cond_wait(void *cond_, void *lock_, const struct timeval *tv) argument 143 if (tv) { 147 evutil_timeradd(&now, tv, &abstime);
|
H A D | ratelim-internal.h | 72 /** In which tick does 'tv' fall according to 'cfg'? Note that ticks can 74 ev_uint32_t ev_token_bucket_get_tick_(const struct timeval *tv,
|
/freebsd-current/contrib/ntp/sntp/libevent/ |
H A D | evthread_pthread.c | 137 evthread_posix_cond_wait(void *cond_, void *lock_, const struct timeval *tv) argument 143 if (tv) { 147 evutil_timeradd(&now, tv, &abstime);
|
H A D | ratelim-internal.h | 72 /** In which tick does 'tv' fall according to 'cfg'? Note that ticks can 74 ev_uint32_t ev_token_bucket_get_tick_(const struct timeval *tv,
|
/freebsd-current/lib/libusb/ |
H A D | libusb10_io.c | 97 libusb10_handle_events_sub(struct libusb_context *ctx, struct timeval *tv) argument 135 if (tv == NULL) 138 timeout = (tv->tv_sec * 1000) + ((tv->tv_usec + 999) / 1000); 311 libusb_wait_for_event(libusb_context *ctx, struct timeval *tv) argument 319 if (tv == NULL) { 332 * The "tv" arguments points to a relative time structure and 335 ts.tv_sec += tv->tv_sec; 336 ts.tv_nsec += tv->tv_usec * 1000; 355 struct timeval *tv, in 354 libusb_handle_events_timeout_completed(libusb_context *ctx, struct timeval *tv, int *completed) argument 389 libusb_handle_events_timeout(libusb_context *ctx, struct timeval *tv) argument 401 libusb_handle_events_locked(libusb_context *ctx, struct timeval *tv) argument 418 libusb_get_next_timeout(libusb_context *ctx, struct timeval *tv) argument [all...] |
/freebsd-current/contrib/jemalloc/src/ |
H A D | nstime.c | 141 struct timeval tv; local 143 gettimeofday(&tv, NULL); 144 nstime_init2(time, tv.tv_sec, tv.tv_usec * 1000);
|
/freebsd-current/crypto/heimdal/appl/ftp/ftpd/ |
H A D | logwtmp.c | 153 struct timeval tv; local 155 gettimeofday (&tv, 0); 156 utx.ut_tv.tv_sec = tv.tv_sec; 157 utx.ut_tv.tv_usec = tv.tv_usec;
|
/freebsd-current/contrib/ntp/sntp/libevent/test/ |
H A D | test-changelist.c | 169 struct timeval tv; local 194 tv.tv_sec = 1; 195 tv.tv_usec = 500*1000; 197 evtimer_add(timeout, &tv);
|
H A D | test-ratelim.c | 285 struct timeval tv = { 0, 1 }; local 298 if (!timer || event_add(timer, &tv)) { 333 struct timeval tv; local 442 tv.tv_sec = cfg_duration - 1; 443 tv.tv_usec = 995000; 445 event_base_loopexit(base, &tv); 447 tv.tv_sec = 0; 448 tv.tv_usec = 100*1000; 449 ms100_common = event_base_init_common_timeout(base, &tv); 477 tv 674 struct timeval tv; local [all...] |
/freebsd-current/sys/dev/qlxgbe/ |
H A D | ql_os.h | 123 struct timeval tv; local 125 microuptime(&tv); 127 return ((uint64_t)(((uint64_t)tv.tv_sec) * 1000000 + tv.tv_usec));
|
/freebsd-current/sys/dev/ath/ |
H A D | if_ath_alq.c | 157 struct timeval tv; local 162 microtime(&tv); 179 ap->tstamp_sec = htobe32((uint32_t) tv.tv_sec); 180 ap->tstamp_usec = htobe32((uint32_t) tv.tv_usec);
|
/freebsd-current/usr.bin/rup/ |
H A D | rup.c | 169 struct timeval tv; local 184 tv.tv_sec = 15; /* XXX ??? */ 185 tv.tv_usec = 0; 188 (xdrproc_t)xdr_statstime, &host_stat, tv) != RPC_SUCCESS) {
|
/freebsd-current/usr.sbin/bluetooth/hccontrol/ |
H A D | send_recv.c | 149 struct timeval tv; local 161 tv.tv_sec = timeout; 162 tv.tv_usec = 0; 164 n = select(s + 1, &rfd, NULL, NULL, &tv);
|
/freebsd-current/sys/compat/linux/ |
H A D | linux_vdso_gtod.inc | 245 freebsd_gettimeofday(struct timeval *tv, struct timezone *tz) 260 bintime2timeval(&bt, tv); 325 struct timeval tv; 328 error = freebsd_gettimeofday(&tv, tz); 331 return (-__vdso_native_to_linux_timeval(ltv, &tv)); 383 struct timeval tv; 386 error = freebsd_gettimeofday(&tv, NULL); 390 *tm = tv.tv_sec; 391 return (tv.tv_sec);
|
/freebsd-current/lib/libc/gen/ |
H A D | utxdb.c | 54 struct timeval tv; \ 55 gettimeofday(&tv, NULL); \ 56 (fu)->fu_tv = htobe64((uint64_t)tv.tv_sec * 1000000 + \ 57 (uint64_t)tv.tv_usec); \
|
/freebsd-current/contrib/libevent/test/ |
H A D | test-changelist.c | 169 struct timeval tv; local 194 tv.tv_sec = 1; 195 tv.tv_usec = 500*1000; 197 evtimer_add(timeout, &tv);
|
H A D | test-ratelim.c | 285 struct timeval tv = { 0, 1 }; local 298 if (!timer || event_add(timer, &tv)) { 333 struct timeval tv; local 442 tv.tv_sec = cfg_duration - 1; 443 tv.tv_usec = 995000; 445 event_base_loopexit(base, &tv); 447 tv.tv_sec = 0; 448 tv.tv_usec = 100*1000; 449 ms100_common = event_base_init_common_timeout(base, &tv); 477 tv 674 struct timeval tv; local [all...] |
/freebsd-current/usr.bin/procstat/ |
H A D | procstat_rusage.c | 64 format_time(struct timeval *tv) argument 69 minutes = tv->tv_sec / 60; 70 seconds = tv->tv_sec % 60; 82 hours, minutes, seconds, (unsigned int)tv->tv_usec);
|