/freebsd-current/contrib/llvm-project/libcxx/src/ |
H A D | chrono.cpp | 129 timeval tv; 130 gettimeofday(&tv, 0); 131 return system_clock::time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec));
|
/freebsd-current/sys/dev/drm2/ |
H A D | drm_os_freebsd.c | 38 timeval_to_ns(const struct timeval *tv) argument 40 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + 41 tv->tv_usec * NSEC_PER_USEC; 47 struct timeval tv; local 51 tv.tv_sec = 0; 52 tv.tv_usec = 0; 53 return (tv); 56 tv.tv_sec = nsec / NSEC_PER_SEC; 59 tv.tv_sec--; 62 tv [all...] |
/freebsd-current/contrib/unbound/util/ |
H A D | mini_event.h | 179 #define evtimer_add(ev, tv) event_add(ev, tv)
|
H A D | winsock_event.h | 233 #define evtimer_add(ev, tv) event_add(ev, tv)
|
/freebsd-current/contrib/wpa/src/utils/ |
H A D | os_internal.c | 44 struct timeval tv; local 45 res = gettimeofday(&tv, NULL); 46 t->sec = tv.tv_sec; 47 t->usec = tv.tv_usec; 55 struct timeval tv; local 56 res = gettimeofday(&tv, NULL); 57 t->sec = tv.tv_sec; 58 t->usec = tv.tv_usec;
|
/freebsd-current/sys/amd64/linux/ |
H A D | linux_vdso_gtod.c | 86 __vdso_gettimeofday_fallback(l_timeval *tv, struct timezone *tz) argument 94 : "a"(LINUX_SYS_gettimeofday), "D"(tv), "S"(tz)
|
/freebsd-current/sys/i386/linux/ |
H A D | linux_vdso_gtod.c | 100 __vdso_gettimeofday_fallback(l_timeval *tv, struct timezone *tz) argument 108 : "a"(LINUX_SYS_gettimeofday), "b"(tv), "c"(tz)
|
/freebsd-current/sys/amd64/linux32/ |
H A D | linux32_vdso_gtod.c | 100 __vdso_gettimeofday_fallback(l_timeval *tv, struct timezone *tz) argument 108 : "a"(LINUX32_SYS_linux_gettimeofday), "b"(tv), "c"(tz)
|
/freebsd-current/sys/arm64/linux/ |
H A D | linux_vdso_gtod.c | 87 register l_timeval *tv asm("x0") = ltv; 94 : "r" (tv), "r" (tz), "r" (svc)
|
/freebsd-current/bin/sh/ |
H A D | miscbltin.c | 165 struct timeval tv; local 174 tv.tv_sec = -1; 175 tv.tv_usec = 0; 187 tv.tv_sec = strtol(shoptarg, &tvptr, 0); 195 tv.tv_sec *= 60; 198 tv.tv_sec *= 60; 215 if (tv.tv_sec >= 0) { 221 status = select(1, &ifds, NULL, NULL, &tv);
|
/freebsd-current/contrib/libevent/ |
H A D | evthread_win32.c | 157 evthread_win32_condvar_wait(void *cond_, void *lock_, const struct timeval *tv) argument 164 if (tv) 165 ms = evutil_tv_to_msec_(tv); 233 evthread_win32_cond_wait(void *cond_, void *lock_, const struct timeval *tv) argument 241 if (tv) 242 ms_orig = ms = evutil_tv_to_msec_(tv);
|
/freebsd-current/contrib/ntp/sntp/libevent/ |
H A D | evthread_win32.c | 157 evthread_win32_condvar_wait(void *cond_, void *lock_, const struct timeval *tv) argument 164 if (tv) 165 ms = evutil_tv_to_msec_(tv); 233 evthread_win32_cond_wait(void *cond_, void *lock_, const struct timeval *tv) argument 241 if (tv) 242 ms_orig = ms = evutil_tv_to_msec_(tv);
|
/freebsd-current/contrib/llvm-project/lldb/source/Utility/ |
H A D | SelectHelper.cpp | 193 struct timeval tv = {0, 0}; local 199 tv_ptr = &tv; 206 tv.tv_sec = dur_secs.count(); 207 tv.tv_usec = dur_usecs.count(); 210 tv.tv_sec = 0; 211 tv.tv_usec = 0;
|
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_scalars.c | 288 struct timeval *tv; local 320 if ((tv = malloc(sizeof(*tv))) == NULL) 323 tv->tv_sec = t; 324 tv->tv_usec = (int32_t)str[7] * 100000; 326 return (tv);
|
/freebsd-current/usr.sbin/inetd/ |
H A D | builtins.c | 351 struct timeval tv = { local 436 tv.tv_usec = usec; 439 tv.tv_sec = sec; 464 to.tv_sec += tv.tv_sec; 465 to.tv_usec += tv.tv_usec; 475 gettimeofday(&tv, NULL); 476 tv.tv_sec = to.tv_sec - tv.tv_sec; 477 tv.tv_usec = to.tv_usec - tv [all...] |
/freebsd-current/contrib/ntp/sntp/libevent/test/ |
H A D | regress.c | 397 struct timeval tv; local 437 tv.tv_sec = 0; 438 tv.tv_usec = 100*1000; /* Close pair1[0] after a little while, and make 440 event_add(closeev, &tv); 444 tv.tv_sec = 0; 445 tv.tv_usec = 200*1000; 446 event_base_loopexit(base, &tv); 509 struct timeval tv; local 510 tv.tv_sec = 0; 511 tv 615 struct timeval tv; local 652 struct timeval tv; local 717 struct timeval tv, tv2, tv_exit, start; local [all...] |
/freebsd-current/contrib/libevent/test/ |
H A D | regress.c | 397 struct timeval tv; local 437 tv.tv_sec = 0; 438 tv.tv_usec = 100*1000; /* Close pair1[0] after a little while, and make 440 event_add(closeev, &tv); 444 tv.tv_sec = 0; 445 tv.tv_usec = 200*1000; 446 event_base_loopexit(base, &tv); 509 struct timeval tv; local 510 tv.tv_sec = 0; 511 tv 615 struct timeval tv; local 652 struct timeval tv; local 717 struct timeval tv, tv2, tv_exit, start; local [all...] |
/freebsd-current/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.h | 350 struct timeval tv; local 352 microuptime(&tv); 353 return tvtohz(&tv); 359 struct timeval tv; local 361 tv.tv_sec = msecs / 1000000UL; 362 tv.tv_usec = msecs % 1000000UL; 363 return tvtohz(&tv);
|
/freebsd-current/sbin/ggate/shared/ |
H A D | ggate.c | 278 struct timeval tv; local 297 tv.tv_sec = 8; 298 tv.tv_usec = 0; 299 if (setsockopt(sfd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) == -1) { 303 if (setsockopt(sfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) {
|
/freebsd-current/sys/kern/ |
H A D | kern_time.c | 120 settime(struct thread *td, struct timeval *tv) argument 127 delta = *tv; 148 tv2 = *tv; 151 tv->tv_sec = maxtime.tv_sec - 1; 158 tv->tv_sec = tv1.tv_sec + 1; 161 laststep = *tv; 165 ts.tv_sec = tv->tv_sec; 166 ts.tv_nsec = tv->tv_usec * 1000; 665 struct timeval *tv; member in struct:settimeofday_args 677 if (uap->tv) { 695 kern_settimeofday(struct thread *td, struct timeval *tv, struct timezone *tzp) argument 980 itimerfix(struct timeval *tv) argument 1077 struct timeval tv, delta; local 1571 struct timeval tv; local 1665 struct timeval tv; local [all...] |
/freebsd-current/contrib/libedit/ |
H A D | terminal.c | 1315 const struct termcapval *tv; local 1341 for (tv = tval; tv->name != NULL; tv++) 1342 if (strcmp(tv->name, what) == 0) 1345 if (tv->name == NULL) { 1351 if (tv == &tval[T_pt] || tv == &tval[T_km] || 1352 tv == &tval[T_am] || tv 1401 const struct termcapval *tv; local [all...] |
/freebsd-current/contrib/ntp/clockstuff/ |
H A D | chutest.c | 79 void raw_filter(unsigned int c, struct timeval *tv); 245 struct timeval tv; local 249 (void) gettimeofday(&tv, (struct timezone *)0); 251 raw_filter((unsigned int)c, &tv); 253 difftv.tv_sec = tv.tv_sec - lasttv.tv_sec; 254 difftv.tv_usec = tv.tv_usec - lasttv.tv_usec; 260 c, tv.tv_sec, tv.tv_usec, difftv.tv_sec, 262 lasttv = tv; 280 struct timeval *tv [all...] |
/freebsd-current/contrib/unbound/compat/ |
H A D | getentropy_osx.c | 211 struct timeval tv; local 242 HX((e = gettimeofday(&tv, NULL)) == -1, tv); 244 cnt += (int)tv.tv_sec; 245 cnt += (int)tv.tv_usec; 400 HX((e = gettimeofday(&tv, NULL)) == -1, tv); 402 cnt += (int)tv.tv_sec; 403 cnt += (int)tv.tv_usec;
|
H A D | getentropy_linux.c | 339 struct timeval tv; local 362 HX((e = gettimeofday(&tv, NULL)) == -1, tv); 364 cnt += (int)tv.tv_sec; 365 cnt += (int)tv.tv_usec; 504 HX((e = gettimeofday(&tv, NULL)) == -1, tv); 506 cnt += (int)tv.tv_sec; 507 cnt += (int)tv.tv_usec;
|
/freebsd-current/contrib/netbsd-tests/net/bpfilter/ |
H A D | t_bpfilter.c | 156 struct timeval tv; local 178 tv.tv_sec = 1; 179 tv.tv_usec = 0; 181 &tv, sizeof(tv)) == -1) 224 struct timeval tv; local 263 tv.tv_sec = 0; 264 tv.tv_usec = 500; 265 RL(rump_sys_ioctl(bpfd, BIOCSRTIMEOUT, &tv));
|