/freebsd/contrib/one-true-awk/ |
H A D | run.c | 2071 time_t tv; in bltin() local 2234 tv = (time_t) getfval(y); in bltin() 2237 tv = time((time_t *) 0); in bltin() 2238 tm = localtime(&tv); in bltin() 2240 FATAL("bad time %ld", (long)tv); in bltin()
|
/freebsd/share/misc/ |
H A D | usb_vendors | 17104 f49a TimVideos.us & HDMI2USB.tv Projects FPGA Programmer & UART Bridge (PIC based Firmware)
|
/freebsd/contrib/bmake/ |
H A D | job.c | 2971 struct timeval tv, *tvp; in emul_poll() local 3000 tv.tv_sec = usecs / 1000000; in emul_poll() 3001 tv.tv_usec = usecs % 1000000; in emul_poll() 3002 tvp = &tv; in emul_poll()
|
H A D | main.c | 959 struct timeval tv; in InitRandom() local 961 gettimeofday(&tv, NULL); in InitRandom() 962 srandom((unsigned int)(tv.tv_sec + tv.tv_usec)); in InitRandom()
|
/freebsd/sys/compat/linprocfs/ |
H A D | linprocfs.c | 816 struct timeval tv; in linprocfs_douptime() local 818 getmicrouptime(&tv); in linprocfs_douptime() 821 (long long)tv.tv_sec, tv.tv_usec / 10000, in linprocfs_douptime()
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | rack.c | 448 (tv) = (tvmin); \ 450 (tv) = (tvmax); \ 614 struct timeval tv; in rack_get_lt_bw() local 621 microuptime(&tv); in rack_get_lt_bw() 696 struct timeval tv; in rack_swap_beta_values() local 768 struct timeval tv; in rack_log_gpset() local 2319 struct timeval tv; in rack_rate_cap_bw() local 2336 microuptime(&tv); in rack_rate_cap_bw() 5829 struct timeval tv; in policer_detection() local 18450 &tv) == 0) { in rack_do_segment() [all …]
|
/freebsd/sys/netinet/ |
H A D | sctputil.c | 1721 struct timeval tv; in sctp_timeout_handler() local 1946 (void)SCTP_GETTIME_TIMEVAL(&tv); in sctp_timeout_handler() 1947 inp->sctp_ep.time_of_secret_change = tv.tv_sec; in sctp_timeout_handler()
|
H A D | sctp_input.c | 535 struct timeval tv; in sctp_handle_heartbeat_ack() local 620 tv.tv_sec = cp->heartbeat.hb_info.time_value_1; in sctp_handle_heartbeat_ack() 621 tv.tv_usec = cp->heartbeat.hb_info.time_value_2; in sctp_handle_heartbeat_ack() 623 sctp_calculate_rto(stcb, &stcb->asoc, r_net, &tv, in sctp_handle_heartbeat_ack()
|
H A D | sctp_output.c | 6360 struct timeval tv; in sctp_set_prsctp_policy() local 6363 tv.tv_sec = sp->timetolive / 1000; in sctp_set_prsctp_policy() 6364 tv.tv_usec = (sp->timetolive * 1000) % 1000000; in sctp_set_prsctp_policy() 6369 timevaladd(&sp->ts, &tv); in sctp_set_prsctp_policy()
|
H A D | sctp_pcb.c | 5691 struct timeval tv; in sctp_pcb_init() local 5707 (void)SCTP_GETTIME_TIMEVAL(&tv); in sctp_pcb_init() 5710 SCTP_BASE_STATS[PCPU_GET(cpuid)].sctps_discontinuitytime.tv_sec = (uint32_t)tv.tv_sec; in sctp_pcb_init() 5711 SCTP_BASE_STATS[PCPU_GET(cpuid)].sctps_discontinuitytime.tv_usec = (uint32_t)tv.tv_usec; in sctp_pcb_init() 5714 SCTP_BASE_STAT(sctps_discontinuitytime).tv_sec = (uint32_t)tv.tv_sec; in sctp_pcb_init() 5715 SCTP_BASE_STAT(sctps_discontinuitytime).tv_usec = (uint32_t)tv.tv_usec; in sctp_pcb_init()
|
H A D | tcp_subr.c | 2162 struct timeval tv; in tcp_respond() local 2168 log.u_bbr.timeStamp = tcp_get_usecs(&tv); in tcp_respond() 2171 ERRNO_UNK, 0, &log, false, NULL, NULL, 0, &tv); in tcp_respond() 4374 struct timeval tv; in tcp_req_log_req_info() local 4400 log.u_bbr.timeStamp = tcp_get_usecs(&tv); in tcp_req_log_req_info() 4405 0, &log, false, &tv); in tcp_req_log_req_info()
|
H A D | ip_carp.c | 1214 struct timeval tv; in carp_send_ad_locked() local 1225 tv.tv_sec = sc->sc_advbase; in carp_send_ad_locked() 1226 tv.tv_usec = advskew * 1000000 / 256; in carp_send_ad_locked() 1356 callout_reset(&sc->sc_ad_tmo, tvtohz(&tv), carp_callout, sc); in carp_send_ad_locked() 1806 struct timeval tv; in carp_setrun() local 1827 tv.tv_sec = 3 * sc->sc_advbase; in carp_setrun() 1828 tv.tv_usec = sc->sc_advskew * 1000000 / 256; in carp_setrun() 1829 timeout = tvtohz(&tv); in carp_setrun() 1870 tv.tv_sec = sc->sc_advbase; in carp_setrun() 1871 tv.tv_usec = sc->sc_advskew * 1000000 / 256; in carp_setrun() [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 388 struct timeval tv; in linux_time() local 392 microtime(&tv); in linux_time() 393 tm = tv.tv_sec; in linux_time() 448 microuptime(&tv); in linux_times() 506 struct timeval tv[2], *tvp; in linux_utime() local 513 tv[0].tv_sec = lut.l_actime; in linux_utime() 514 tv[0].tv_usec = 0; in linux_utime() 516 tv[1].tv_usec = 0; in linux_utime() 517 tvp = tv; in linux_utime() 541 tvp = tv; in linux_utimes() [all …]
|
/freebsd/contrib/unbound/util/ |
H A D | netevent.c | 272 comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv) in comm_base_timept() argument 275 *tv = &b->eb->now; in comm_base_timept() 1251 struct timeval tv; local 1269 tv.tv_sec = NETEVENT_SLOW_ACCEPT_TIME/1000; 1270 tv.tv_usec = (NETEVENT_SLOW_ACCEPT_TIME%1000)*1000; 1279 else if(ub_event_add(b->eb->slow_accept, &tv) 4990 comm_timer_set(struct comm_timer* timer, struct timeval* tv) argument 4992 log_assert(tv); 4996 comm_timer_callback, timer, tv) != 0)
|
H A D | netevent.h | 488 void comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv); 743 void comm_timer_set(struct comm_timer* timer, struct timeval* tv);
|
/freebsd/contrib/unbound/validator/ |
H A D | validator.c | 802 struct timeval tv; in validate_suspend_setup_timer() local 848 tv.tv_usec = (usec % 1000000); in validate_suspend_setup_timer() 849 tv.tv_sec = (usec / 1000000); in validate_suspend_setup_timer() 851 comm_timer_set(vq->suspend_timer, &tv); in validate_suspend_setup_timer()
|
/freebsd/contrib/unbound/services/ |
H A D | mesh.c | 1490 struct timeval tv = {0, 0}; in mesh_query_done() local 1532 tv = r->start_time; in mesh_query_done() 1621 mesh_do_callback(mstate, mstate->s.return_rcode, rep, c, &tv); in mesh_query_done() 2155 struct timeval tv = {0, 0}; in mesh_serve_expired_callback() local 2253 tv = r->start_time; in mesh_serve_expired_callback() 2323 mesh_do_callback(mstate, LDNS_RCODE_NOERROR, msg->rep, c, &tv); in mesh_serve_expired_callback()
|
H A D | authzone.c | 6912 struct timeval tv; in xfr_set_timeout() local 6970 tv.tv_sec = xfr->task_nextprobe->next_probe - in xfr_set_timeout() 6972 else tv.tv_sec = 0; in xfr_set_timeout() 6973 if(tv.tv_sec != 0 && lookup_only && xfr->task_probe->masters) { in xfr_set_timeout() 6976 tv.tv_sec = 0; in xfr_set_timeout() 6984 zname, (int)tv.tv_sec); in xfr_set_timeout() 6986 tv.tv_usec = 0; in xfr_set_timeout() 6987 comm_timer_set(xfr->task_nextprobe->timer, &tv); in xfr_set_timeout()
|
/freebsd/contrib/unbound/smallapp/ |
H A D | unbound-control.c | 672 struct timeval tv; in contact_server() local 679 tv.tv_sec = UNBOUND_CONTROL_CONNECT_TIMEOUT/1000; in contact_server() 680 tv.tv_usec= (UNBOUND_CONTROL_CONNECT_TIMEOUT%1000)*1000; in contact_server() 681 if(select(fd+1, &rset, &wset, &eset, &tv) == -1) { in contact_server()
|
/freebsd/contrib/unbound/doc/ |
H A D | Changelog | 5481 - Fix tcp timeouts in tv.usec.
|
/freebsd/contrib/unbound/daemon/ |
H A D | worker.c | 1959 struct timeval tv; in worker_handle_request() local 1960 memset(&tv, 0, sizeof(tv)); in worker_handle_request() 1968 tv, 1, c->buffer, in worker_handle_request() 2027 struct timeval tv; in worker_restart_timer() local 2030 tv.tv_usec = 0; in worker_restart_timer() 2056 struct timeval tv; in worker_probe_timer_cb() local 2059 tv.tv_usec = 0; in worker_probe_timer_cb() 2061 if(tv.tv_sec != 0) in worker_probe_timer_cb() 2275 struct timeval tv; in worker_init() local 2276 tv.tv_sec = 0; in worker_init() [all …]
|
/freebsd/sys/amd64/vmm/ |
H A D | vmm_dev.c | 71 struct timeval tv; member 691 getmicrotime(&vmstats_old->tv); in vmmdev_ioctl() 700 getmicrotime(&vmstats->tv); in vmmdev_ioctl()
|
/freebsd/sys/arm64/vmm/ |
H A D | vmm_dev.c | 525 getmicrotime(&vmstats->tv); in vmmdev_ioctl()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | z_Linux_util.cpp | 79 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ argument 81 (ts)->tv_sec = (tv)->tv_sec; \ 82 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 2034 struct timeval tv; in __kmp_elapsed() local 2036 status = gettimeofday(&tv, NULL); in __kmp_elapsed() 2039 (double)tv.tv_usec * (1.0 / (double)KMP_USEC_PER_SEC) + (double)tv.tv_sec; in __kmp_elapsed()
|
/freebsd/sys/kern/ |
H A D | uipc_socket.c | 3111 struct timeval tv; local 3222 CP(tv32, tv, tv_sec); 3223 CP(tv32, tv, tv_usec); 3226 error = sooptcopyin(sopt, &tv, sizeof tv, 3227 sizeof tv); 3230 if (tv.tv_sec < 0 || tv.tv_usec < 0 || 3238 val = tvtosbt(tv); 3335 struct timeval tv; local 3441 CP(tv, tv32, tv_sec); 3442 CP(tv, tv32, tv_usec); [all …]
|