/illumos-gate/usr/src/cmd/dtrace/test/tst/common/vars/ |
H A D | tst.walltimestamp.d | 29 uint64_t now; variable 33 now = 18252813184; /* Jan 1, 2004 00:00:00 */ 44 /walltimestamp < now/ 46 printf("%d (%Y) is before %Y", walltimestamp, walltimestamp, now);
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/ |
H A D | posix_utilities.c | 17 struct timeval now; in getLocalTimestamp() local 22 gettimeofday(&now, NULL); in getLocalTimestamp() 23 localtime_r(&now.tv_sec, &local_time); in getLocalTimestamp() 27 …snprintf(buffer, buffer_len, "%s.%06lu%s", date_time_str, (unsigned long)now.tv_usec, time_zone_st… in getLocalTimestamp()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | script_handler.c | 83 time_t now; in sigalarm_handler() local 86 now = time(NULL); in sigalarm_handler() 87 if (now < timeout) in sigalarm_handler() 88 (void) alarm(timeout - now); in sigalarm_handler() 127 time_t now; in run_script() local 171 now = time(NULL); in run_script() 172 if (now >= timeout) { in run_script() 180 timeout = now + SCRIPT_TIMEOUT_GRACE; in run_script()
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | ttl_utils.c | 70 struct timeval now; in has_entry_expired() local 138 gettimeofday(&now, NULL); in has_entry_expired() 146 return (is_greater_timeval(&now, &old_time)); in has_entry_expired() 191 struct timeval now; in update_entry_ttl() local 195 gettimeofday(&now, NULL); in update_entry_ttl() 200 if (FAILURE == add_to_timeval(&now, ttl)) in update_entry_ttl() 205 expire.dptr = (char *)&now; in update_entry_ttl()
|
/illumos-gate/usr/src/cmd/krb5/krb5kdc/ |
H A D | dispatch.c | 52 krb5_int32 now, now_usec; in dispatch() local 75 retval = krb5_crypto_us_timeofday(&now, &now_usec); in dispatch() 80 last_os_random = now; in dispatch() 82 if(now-last_os_random >= 60*60) { in dispatch() 84 last_os_random = now; in dispatch()
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_ptsops.c | 106 timestruc_t now; in devpts_validate() local 147 gethrestime(&now); in devpts_validate() 148 dv->sdev_attr->va_atime = now; in devpts_validate() 149 dv->sdev_attr->va_mtime = now; in devpts_validate() 150 dv->sdev_attr->va_ctime = now; in devpts_validate() 169 timestruc_t now; in devpts_create_rvp() local 205 gethrestime(&now); in devpts_create_rvp() 206 vap->va_atime = now; in devpts_create_rvp() 207 vap->va_mtime = now; in devpts_create_rvp() 208 vap->va_ctime = now; in devpts_create_rvp()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | utime.c | 120 timespec_t now; in get_timespec_vattr() local 136 gethrestime(&now); in get_timespec_vattr() 143 ts[0] = now; in get_timespec_vattr() 152 ts[1] = now; in get_timespec_vattr() 161 gethrestime(&now); in get_timespec_vattr() 162 vattr->va_atime = now; in get_timespec_vattr() 163 vattr->va_mtime = now; in get_timespec_vattr()
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_dir.c | 498 timestruc_t now; in tdirdelete() local 583 gethrestime(&now); in tdirdelete() 586 tp->tn_ctime = now; in tdirdelete() 607 timestruc_t now; in tdirinit() local 641 gethrestime(&now); in tdirinit() 676 timestruc_t now; in tdirtrunc() local 718 gethrestime(&now); in tdirtrunc() 799 timestruc_t now; in tdirrename() local 878 gethrestime(&now); in tdirrename() 968 timestruc_t now; in tdiraddentry() local [all …]
|
H A D | tmp_tnode.c | 163 timestruc_t now; in tmpnode_init() local 188 gethrestime(&now); in tmpnode_init() 189 t->tn_atime = now; in tmpnode_init() 190 t->tn_mtime = now; in tmpnode_init() 191 t->tn_ctime = now; in tmpnode_init() 236 timestruc_t now; in tmpnode_trunc() local 350 gethrestime(&now); in tmpnode_trunc() 351 tp->tn_mtime = now; in tmpnode_trunc() 352 tp->tn_ctime = now; in tmpnode_trunc()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | softint.c | 316 clock_t w, now; in softcall() local 350 now = ddi_get_lbolt(); in softcall() 351 w = now - softcall_tick; in softcall() 359 if (now - softcall_lastpoke < hz) { in softcall() 365 softcall_countstart = now; in softcall() 370 if (now - softcall_countstart <= hz) in softcall() 380 softcall_lastpoke = now; in softcall() 388 softcall_tick = now; in softcall()
|
H A D | cpu_pm.c | 392 cpupm_utilization_event(struct cpu *cp, hrtime_t now, cpupm_domain_t *dom, in cpupm_utilization_event() argument 438 dom->cpd_last_raise = now; in cpupm_utilization_event() 443 hrtime_t, now); in cpupm_utilization_event() 462 if ((now - last) < cpupm_ti_predict_interval) { in cpupm_utilization_event() 519 if ((now - last) >= cpupm_ti_predict_interval) { in cpupm_utilization_event() 552 dom->cpd_last_lower = now; in cpupm_utilization_event() 557 hrtime_t, now); in cpupm_utilization_event() 569 if ((now - last) < cpupm_tw_predict_interval) { in cpupm_utilization_event() 626 if ((now - last) >= cpupm_tw_predict_interval) { in cpupm_utilization_event()
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_intr.c | 235 hrtime_t now; in apix_do_softint_prolog() local 244 now = tsc_read(); in apix_do_softint_prolog() 298 it->t_intr_start = now; in apix_do_softint_prolog() 310 hrtime_t now = tsc_read(); in apix_do_softint_epilog() local 360 t->t_intr_start = now; in apix_do_softint_epilog() 421 hrtime_t now = tsc_read(); in apix_hilevel_intr_prolog() local 454 intrtime = now - in apix_hilevel_intr_prolog() 503 hrtime_t now = tsc_read(); in apix_hilevel_intr_epilog() local 563 t->t_intr_start = now; in apix_hilevel_intr_epilog() 687 it->t_intr_start = now; in apix_intr_thread_prolog() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | authu_prot.c | 120 time_t now; in xdr_authkern() local 133 now = gethrestime_sec(); in xdr_authkern() 134 if (xdr_uint32(xdrs, (uint32_t *)&now) && in xdr_authkern() 155 time_t now; in xdr_authloopback() local 164 now = gethrestime_sec(); in xdr_authloopback() 165 if (xdr_uint32(xdrs, (uint32_t *)&now) && in xdr_authloopback()
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | umem_update_thread.c | 38 struct timeval now; in umem_update_thread() local 77 (void) gettimeofday(&now, NULL); in umem_update_thread() 78 if (now.tv_sec > umem_update_next.tv_sec || in umem_update_thread() 79 (now.tv_sec == umem_update_next.tv_sec && in umem_update_thread() 80 now.tv_usec >= umem_update_next.tv_usec)) { in umem_update_thread()
|
/illumos-gate/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_main.c | 994 next_report = now; in reconfigure() 1000 *next_proc_walk = now; in reconfigure() 1006 *next_rss_sample = now; in reconfigure() 1293 hrtime_t now = gethrtime(); in check_update_statistics() local 1295 if (EVENT_TIME(now, next_report)) { in check_update_statistics() 1439 hrtime_t now; /* current time */ in main() local 1612 now = gethrtime(); in main() 1635 do_capping(now, &next_proc_walk); in main() 1649 now = gethrtime(); in main() 1655 now) / (float)NANOSEC); in main() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_work.c | 53 hrtime_t now; in dtrace_sleep() local 76 now = gethrtime(); in dtrace_sleep() 78 if (earliest < now) { in dtrace_sleep() 83 tv.tv_sec = (earliest - now) / NANOSEC; in dtrace_sleep() 84 tv.tv_nsec = (earliest - now) % NANOSEC; in dtrace_sleep() 115 hrtime_t now = gethrtime(); in dtrace_status() local 124 if (now - dtp->dt_laststatus < interval) in dtrace_status() 129 dtp->dt_laststatus = now; in dtrace_status()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | intr.c | 544 hrtime_t now = tsc_read(); in hilevel_intr_prolog() local 574 intrtime = now - in hilevel_intr_prolog() 642 hrtime_t now = tsc_read(); in hilevel_intr_epilog() local 703 t->t_intr_start = now; in hilevel_intr_epilog() 724 hrtime_t now = tsc_read(); in intr_thread_prolog() local 774 it->t_intr_start = now; in intr_thread_prolog() 861 t->t_intr_start = now; in intr_thread_epilog() 966 hrtime_t now; in dosoftint_prolog() local 1010 now = tsc_read(); in dosoftint_prolog() 1063 it->t_intr_start = now; in dosoftint_prolog() [all …]
|
H A D | machdep.c | 735 timestruc_t now; in pc_gethrestime() local 741 now = hrestime; in pc_gethrestime() 751 now.tv_nsec += nslt; in pc_gethrestime() 762 now.tv_nsec += adj; in pc_gethrestime() 782 now.tv_nsec -= NANOSEC; in pc_gethrestime() 783 now.tv_sec++; in pc_gethrestime() 788 *tp = now; in pc_gethrestime() 804 timestruc_t now; in gethrestime_sec() local 806 gethrestime(&now); in gethrestime_sec() 807 return (now.tv_sec); in gethrestime_sec() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | logent.c | 188 time_t now, rval; in millitick() local 195 now = times(&tbuf); in millitick() 196 if (now - past > MAXLONG / 1000) /* would overflow */ in millitick() 197 rval = (now - past) / HZ * 1000; in millitick() 199 rval = (now - past) * 1000 / HZ; in millitick() 200 past = now; in millitick()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmxtime.c | 53 time_t now; in tmxtime() local 95 now = tmxsec(tmxtime(tm, tm_info.zone->west)); in tmxtime() 97 if (!(tl = tmlocaltime(&now))) in tmxtime() 113 now = tmxsec(tmxtime(tm, tm_info.zone->west)); in tmxtime() 115 if (!(tl = tmlocaltime(&now))) in tmxtime()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/ |
H A D | log.c | 105 time_t now; in ldaplog() local 152 time(&now); in ldaplog() 153 if (now-timelast > 60) { in ldaplog() 155 timelast = now; in ldaplog() 156 ctime_r(&now, timestr, 128); in ldaplog()
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_timerq.c | 49 hrtime_t now = fmd_time_gethrtime(); in fmd_timerq_install() local 50 hrtime_t base = ep ? fmd_event_hrtime(ep) : now; in fmd_timerq_install() 181 hrtime_t now; in fmd_timerq_exec() local 204 for (now = fmd_time_gethrtime(); (tp = fmd_list_next( in fmd_timerq_exec() 205 &tmq->tmq_list)) != NULL; now = fmd_time_gethrtime()) { in fmd_timerq_exec() 207 if (now == INT64_MAX || tp->tmr_hrt > now) in fmd_timerq_exec() 232 fmd_time_waithrtime(tp->tmr_hrt - now); in fmd_timerq_exec()
|
/illumos-gate/usr/src/uts/intel/io/vmm/io/ |
H A D | vhpet.c | 100 hrtime_t now); 152 const hrtime_t now = gethrtime(); in vhpet_counter() local 165 *nowptr = now; in vhpet_counter() 291 hrtime_t now; in vhpet_handler() local 294 vhpet_start_timer(vhpet, n, counter, now); in vhpet_handler() 347 timer->callout_expire = now + delta; in vhpet_start_timer() 375 vhpet_stop_timer(vhpet, i, now); in vhpet_stop_counting() 466 hrtime_t now; in vhpet_mmio_write() local 505 counter = vhpet_counter(vhpet, &now); in vhpet_mmio_write() 583 counter = vhpet_counter(vhpet, &now); in vhpet_mmio_write() [all …]
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_time_wait.c | 136 int64_t now, schedule; in tcp_time_wait_append() local 179 now = ddi_get_lbolt64(); in tcp_time_wait_append() 192 now % MSEC_TO_TICK(TCP_TIME_WAIT_DELAY); in tcp_time_wait_append() 194 now -= tsp->tcp_time_wait_offset; in tcp_time_wait_append() 232 TICK_TO_NSEC(schedule - now), in tcp_time_wait_append() 257 TICK_TO_NSEC(schedule - now), in tcp_time_wait_append() 404 int64_t now, sched_active, sched_cur, sched_new; in tcp_time_wait_collector() local 471 now = ddi_get_lbolt64() - tsp->tcp_time_wait_offset; in tcp_time_wait_collector() 488 if (now < tcp->tcp_time_wait_expire) { in tcp_time_wait_collector() 554 if (sched_new <= now) { in tcp_time_wait_collector() [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | spinconsole.c | 107 time_t now; in spinc_putchar() local 109 now = time(NULL); in spinc_putchar() 110 if (now < (lasttime + 1)) in spinc_putchar() 112 lasttime = now; in spinc_putchar()
|