| /freebsd-13.1/contrib/tcsh/ |
| H A D | tc.sched.c | 62 time_t cur_time; in dosched() local 150 (void) time(&cur_time); in dosched() 151 ltp = localtime(&cur_time); in dosched() 167 tp->t_when = cur_time - ltp->tm_sec + dif_hour * 3600 + dif_min * 60; in dosched() 169 tp->t_when = cur_time - ltp->tm_sec + dif_hour * 3600L + dif_min * 60L; in dosched() 186 time_t cur_time; in sched_run() local 195 (void) time(&cur_time); in sched_run() 203 if (!(sched_ptr && sched_ptr->t_when < cur_time)) { in sched_run() 211 while ((tp = sched_ptr) != NULL && tp->t_when < cur_time) { in sched_run()
|
| /freebsd-13.1/sys/net/altq/ |
| H A D | altq_fairq.c | 542 uint64_t cur_time = read_machclk(); in fairq_dequeue() local 554 m = fairq_getq(best_cl, cur_time); in fairq_dequeue() 570 m = fairq_pollq(cl, cur_time, &hit_limit); in fairq_dequeue() 597 m = fairq_getq(best_cl, cur_time); in fairq_dequeue() 682 fairq_getq(struct fairq_class *cl, uint64_t cur_time) in fairq_getq() argument 714 delta = (cur_time - cl->cl_last_time); in fairq_getq() 719 cl->cl_last_time = cur_time; in fairq_getq() 726 delta = (cur_time - b->last_time); in fairq_getq() 731 b->last_time = cur_time; in fairq_getq() 763 delta = cur_time - cl->cl_last_time; in fairq_pollq() [all …]
|
| H A D | altq_hfsc.c | 716 u_int64_t cur_time; in hfsc_dequeue() local 724 cur_time = read_machclk(); in hfsc_dequeue() 786 update_vf(cl, len, cur_time); in hfsc_dequeue() 908 u_int64_t cur_time; in init_ed() local 910 cur_time = read_machclk(); in init_ed() 952 u_int64_t vt, f, cur_time; in init_vf() local 955 cur_time = 0; in init_vf() 1014 if (cur_time == 0) in init_vf() 1015 cur_time = read_machclk(); in init_vf() 1227 if (p->cl_e > cur_time) in hfsc_get_mindl() [all …]
|
| H A D | altq_hfsc.h | 103 u_int64_t cur_time; member 146 u_int64_t cur_time; member
|
| /freebsd-13.1/usr.bin/ctlstat/ |
| H A D | ctlstat.c | 121 struct timespec cur_time, prev_time; member 138 struct ctl_io_stats **xstats, struct timespec *cur_time, int *time_valid); 157 struct timespec *cur_time, int *flags) in getstats() argument 199 cur_time->tv_sec = get_stats.timestamp.tv_sec; in getstats() 200 cur_time->tv_nsec = get_stats.timestamp.tv_nsec; in getstats() 396 etime = ctx->cur_time.tv_sec - ctx->prev_time.tv_sec + in ctlstat_standard() 397 (ctx->prev_time.tv_nsec - ctx->cur_time.tv_nsec) * 1e-9; in ctlstat_standard() 699 ctx.prev_time = ctx.cur_time; in main() 702 &ctx.cur_stats, &ctx.cur_time, &ctx.flags) != 0) in main()
|
| /freebsd-13.1/sbin/dhclient/ |
| H A D | dhclient.c | 95 time_t cur_time; variable 448 time(&cur_time); in main() 635 ip->client->first_sending = cur_time; in state_reboot() 662 ip->client->first_sending = cur_time; in state_init() 746 ip->client->first_sending = cur_time; in state_selecting() 957 ip->client->first_sending = cur_time; in state_bound() 1335 if (cur_time + ip->client->interval > in send_discover() 1397 if (cur_time < in state_panic() 1402 cur_time)); in state_panic() 1543 cur_time + ip->client->interval > in send_request() [all …]
|
| H A D | dispatch.c | 189 if (timeouts->when <= cur_time) { in dispatch() 204 howlong = timeouts->when - cur_time; in dispatch() 234 time(&cur_time); in dispatch() 241 time(&cur_time); in dispatch()
|
| H A D | dhcpd.h | 365 extern time_t cur_time;
|
| H A D | clparse.c | 589 if (ip->client->active->expiry < cur_time) in parse_client_lease_statement()
|
| /freebsd-13.1/sbin/camcontrol/ |
| H A D | timestamp.c | 467 const struct tm *restrict cur_time; in timestamp() local 471 cur_time = gmtime(&time_var); in timestamp() 473 cur_time = localtime(&time_var); in timestamp() 477 cur_time); in timestamp()
|
| /freebsd-13.1/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_barrier.cpp | 1420 kmp_uint64 cur_time = __itt_get_timestamp(); in __kmp_barrier_template() local 1428 this_thr->th.th_frame_time = cur_time; in __kmp_barrier_template() 1438 kmp_uint64 delta = cur_time - this_thr->th.th_bar_arrive_time; in __kmp_barrier_template() 1443 delta += (cur_time - other_threads[i]->th.th_bar_arrive_time); in __kmp_barrier_template() 1447 cur_time, delta, in __kmp_barrier_template() 1452 this_thr->th.th_frame_time = cur_time; in __kmp_barrier_template() 1806 kmp_uint64 cur_time = __itt_get_timestamp(); in __kmp_join_barrier() local 1823 kmp_uint64 delta = cur_time - this_thr->th.th_bar_arrive_time; in __kmp_join_barrier() 1828 delta += (cur_time - other_threads[i]->th.th_bar_arrive_time); in __kmp_join_barrier() 1832 cur_time, delta, 0); in __kmp_join_barrier() [all …]
|
| H A D | kmp_tasking.cpp | 1601 kmp_uint64 cur_time; in __kmp_invoke_task() local 1609 cur_time = __itt_get_timestamp(); in __kmp_invoke_task() 1629 thread->th.th_bar_arrive_time += (__itt_get_timestamp() - cur_time); in __kmp_invoke_task()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteClientBase.cpp | 73 auto cur_time = steady_clock::now(); in SendContinuePacketAndWaitForResponse() local 74 if (cur_time >= m_interrupt_endpoint) in SendContinuePacketAndWaitForResponse() 81 auto new_wait = m_interrupt_endpoint - cur_time; in SendContinuePacketAndWaitForResponse()
|
| /freebsd-13.1/lib/libdevstat/ |
| H A D | devstat.h | 173 long double devstat_compute_etime(struct bintime *cur_time,
|
| H A D | devstat.c | 1210 devstat_compute_etime(struct bintime *cur_time, struct bintime *prev_time) in devstat_compute_etime() argument 1214 etime = cur_time->sec; in devstat_compute_etime() 1215 etime += cur_time->frac * BINTIME_SCALE; in devstat_compute_etime()
|
| /freebsd-13.1/sys/dev/twa/ |
| H A D | tw_cl_io.c | 591 TW_TIME cur_time; in tw_cl_ioctl() local 596 cur_time = tw_osl_get_local_time(); in tw_cl_ioctl() 602 (cur_time >= ctlr->ioctl_lock.timeout)) { in tw_cl_ioctl() 607 cur_time + (lock_pkt.timeout_msec / 1000); in tw_cl_ioctl() 614 (ctlr->ioctl_lock.timeout - cur_time) * 1000); in tw_cl_ioctl()
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | ntpd.c | 1620 time_t cur_time; local 1635 cur_time = time(NULL); 1636 wait_rem = (wait_end_time > cur_time) 1637 ? (wait_end_time - cur_time)
|
| /freebsd-13.1/contrib/ofed/opensm/opensm/ |
| H A D | osm_perfmgr_db.c | 123 time_t cur_time = 0; in malloc_node() local 135 cur_time = time(NULL); in malloc_node() 137 rc->ports[i].last_reset = cur_time; in malloc_node() 138 rc->ports[i].err_previous.time = cur_time; in malloc_node() 139 rc->ports[i].dc_previous.time = cur_time; in malloc_node()
|
| /freebsd-13.1/sys/dev/mpr/ |
| H A D | mpr.c | 3768 struct timeval cur_time, start_time; in mpr_wait_command() local 3793 getmicrouptime(&cur_time); in mpr_wait_command() 3794 timevalsub(&cur_time, &start_time); in mpr_wait_command() 3804 getmicrouptime(&cur_time); in mpr_wait_command() 3805 timevalsub(&cur_time, &start_time); in mpr_wait_command() 3806 if (cur_time.tv_sec > timeout) { in mpr_wait_command() 3817 (intmax_t)cur_time.tv_sec); in mpr_wait_command() 3843 struct timeval cur_time, start_time; in mpr_request_polled() local 3865 getmicrouptime(&cur_time); in mpr_request_polled() 3866 timevalsub(&cur_time, &start_time); in mpr_request_polled() [all …]
|
| /freebsd-13.1/usr.sbin/lpr/lpd/ |
| H A D | printjob.c | 1269 time_t amtslept, cur_time, prev_mtime; in wait4data() local 1309 cur_time = time(NULL); in wait4data() 1310 if (statdf.st_mtime >= cur_time - MINWAIT_4DATA) { in wait4data() 1311 if (statdf.st_mtime >= cur_time) /* some TOD oddity */ in wait4data() 1314 sleepreq = cur_time - statdf.st_mtime; in wait4data()
|
| /freebsd-13.1/contrib/ntp/sntp/libopts/ |
| H A D | save.c | 553 time_t cur_time = time(NULL); in open_sv_file() local 554 char * time_str = ctime(&cur_time); in open_sv_file()
|
| /freebsd-13.1/sys/dev/mps/ |
| H A D | mps.c | 3042 struct timeval cur_time, start_time; in mps_wait_command() local 3070 getmicrouptime(&cur_time); in mps_wait_command() 3071 timevalsub(&cur_time, &start_time); in mps_wait_command() 3081 getmicrouptime(&cur_time); in mps_wait_command() 3082 timevalsub(&cur_time, &start_time); in mps_wait_command() 3083 if (cur_time.tv_sec > timeout) { in mps_wait_command() 3094 (intmax_t)cur_time.tv_sec); in mps_wait_command()
|