Home
last modified time | relevance | path

Searched refs:curtime (Results 1 – 25 of 54) sorted by relevance

123

/illumos-gate/usr/src/uts/common/os/
H A Dmsacct.c99 hrtime_t curtime; in init_mstate() local
108 ms->ms_start = curtime; in init_mstate()
110 ms->ms_state_start = curtime; in init_mstate()
113 t->t_hrtime = curtime; in init_mstate()
398 hrtime_t curtime; in syscall_mstate() local
420 ms->ms_state_start = curtime; in syscall_mstate()
605 hrtime_t curtime; in new_mstate() local
712 hrtime_t curtime; in restore_mstate() local
776 waitrq = curtime; in restore_mstate()
794 waittime = curtime - waitrq; in restore_mstate()
[all …]
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drup.c63 time_t curtime; member
216 putline(sw_var.curtime.tv_sec, sw_var.boottime,
219 putline(st.curtime.tv_sec, st.boottime, st.avenrun);
227 entry[curentry].curtime = st.curtime.tv_sec;
234 entry[curentry].curtime = sw_var.curtime.tv_sec;
365 putline(st->curtime.tv_sec, st->boottime, st->avenrun);
367 putline(sv->curtime.tv_sec, sv->boottime, sv->avenrun);
374 entry[curentry].curtime = st->curtime.tv_sec;
380 entry[curentry].curtime = sv->curtime.tv_sec;
406 putline(ep->curtime, ep->boottime, ep->avenrun); in printsinglehosts()
H A Drstat_proc.c361 gettimeofday((struct timeval *)&stats_s3.curtime, NULL); in updatestat()
362 stats_s4.curtime = stats_s3.curtime; in updatestat()
377 stats_s3.v_intr -= hz*(stats_s3.curtime.tv_sec - btm.tv_sec) + in updatestat()
378 hz*(stats_s3.curtime.tv_usec - btm.tv_usec)/1000000; in updatestat()
/illumos-gate/usr/src/uts/intel/io/vmm/io/
H A Dvrtc.c606 time_t curtime, rtctime; in vrtc_set_reg_b() local
640 secs_to_rtc(curtime, vrtc, 1); in vrtc_set_reg_b()
770 time_t curtime; in vrtc_nvram_read() local
787 secs_to_rtc(curtime, vrtc, 0); in vrtc_nvram_read()
825 time_t curtime; in vrtc_data_handler() local
850 secs_to_rtc(curtime, vrtc, 0); in vrtc_data_handler()
894 curtime = rtc_to_secs(vrtc); in vrtc_data_handler()
926 time_t curtime; in vrtc_init() local
947 curtime = 0; in vrtc_init()
953 secs_to_rtc(curtime, vrtc, 0); in vrtc_init()
[all …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Dtime_event.c36 static uint64_t curtime; variable
42 curtime++; in time_update()
70 t = curtime; in time()
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_mpathd.c226 struct timeval curtime; in ipmp_read() local
237 if (gettimeofday(&curtime, NULL) == -1) in ipmp_read()
240 timeleft = (endtp->tv_sec - curtime.tv_sec) * MILLISEC; in ipmp_read()
241 timeleft += (endtp->tv_usec - curtime.tv_usec) / 1000; in ipmp_read()
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dlog.c128 time_t curtime; in log() local
131 time(&curtime); in log()
132 if ((tm = localtime(&curtime)) != NULL) in log()
/illumos-gate/usr/src/cmd/ztest/
H A Dzloop.bash141 curtime=$starttime
144 while [[ $timeout -eq 0 ]] || [[ $curtime -le $(($starttime + $timeout)) ]]; do
185 curtime=$(/bin/date +%s)
/illumos-gate/usr/src/head/rpcsvc/
H A Drstat.x125 rstat_timeval curtime; member
143 rstat_timeval curtime; member
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c425 time_t curtime; in update_if_cache() local
431 (void) time(&curtime); in update_if_cache()
432 if ((curtime - last_updated) >= if_cache_refresh_time) { in update_if_cache()
452 time_t curtime; in is_my_address() local
455 (void) time(&curtime); in is_my_address()
456 if ((curtime - last_updated) >= if_cache_refresh_time) { in is_my_address()
742 time_t curtime; in inet_netdir_mergeaddr() local
781 (void) time(&curtime); in inet_netdir_mergeaddr()
782 if ((curtime - last_updated) >= if_cache_refresh_time) { in inet_netdir_mergeaddr()
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dclnt_udp.c236 struct timeval startime, curtime; local
349 if (gettimeofday(&curtime,
355 time_waited.tv_sec += curtime.tv_sec - startime.tv_sec;
356 time_waited.tv_usec += curtime.tv_usec -
366 startime.tv_sec = curtime.tv_sec;
367 startime.tv_usec = curtime.tv_usec;
/illumos-gate/usr/src/cmd/sh/
H A Dmain.c347 time_t curtime = 0; in exfile() local
387 time(&curtime); in exfile()
389 if ((curtime - mailtime) >= mailchk) { in exfile()
391 mailtime = curtime; in exfile()
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dsaslutil.c344 long curtime; in getranddata() local
398 curtime = (long) time(NULL); /* better be at least 32 bits */ in getranddata()
400 ret[0] ^= (unsigned short) (curtime >> 16); in getranddata()
401 ret[1] ^= (unsigned short) (curtime & 0xFFFF); in getranddata()
/illumos-gate/usr/src/cmd/vi/port/
H A Dexrecover.c405 time_t curtime; in enter() local
413 curtime = fl->sf_time; in enter()
415 if (f->sf_time < curtime) in enter()
416 curtime = f->sf_time; in enter()
418 if (f->sf_time == curtime) in enter()
/illumos-gate/usr/src/cmd/acct/
H A Dacctcom.c293 time_t curtime; in dofile() local
329 time(&curtime); in dofile()
330 t = localtime(&curtime); in dofile()
331 if (daydiff < (curtime - (curtime % SECSINDAY))) { in dofile()
/illumos-gate/usr/src/cmd/utmpd/
H A Dutmpd.c194 time_t curtime, now; in main() local
310 curtime = time(NULL); in main()
317 if ((now - curtime) >= WARN_TIME) { in main()
320 curtime = now; in main()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_dg.c277 struct timeval startime, curtime; in clnt_dg_call() local
407 timeout: (void) gettimeofday(&curtime, NULL); in clnt_dg_call()
408 time_waited.tv_sec += curtime.tv_sec - startime.tv_sec; in clnt_dg_call()
409 time_waited.tv_usec += curtime.tv_usec - in clnt_dg_call()
423 poll_time.tv_sec -= curtime.tv_sec - startime.tv_sec; in clnt_dg_call()
424 poll_time.tv_usec -= curtime.tv_usec - startime.tv_usec; in clnt_dg_call()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_recovery.c1107 time_t curtime, time_to_wait; in nfs4_wait_for_grace() local
1117 curtime = gethrestime_sec(); in nfs4_wait_for_grace()
1127 curtime = gethrestime_sec(); in nfs4_wait_for_grace()
1156 time_t curtime, time_to_wait; in nfs4_wait_for_delay() local
1174 curtime = gethrestime_sec(); in nfs4_wait_for_delay()
1184 curtime = gethrestime_sec(); in nfs4_wait_for_delay()
3368 time_t curtime, time_to_wait; in recov_throttle() local
3371 curtime = gethrestime_sec(); in recov_throttle()
3376 recovp->rc_action, curtime, in recov_throttle()
3383 curtime = gethrestime_sec(); in recov_throttle()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dndp.c969 uint_t cur_vexp, cur_pexp, curtime; in incoming_prefix_addrconf_process() local
970 curtime = getcurrenttime() / MILLISEC; in incoming_prefix_addrconf_process()
974 if (curtime > cur_vexp) in incoming_prefix_addrconf_process()
976 else if ((curtime + validtime) > cur_vexp) in incoming_prefix_addrconf_process()
977 validtime = cur_vexp - curtime; in incoming_prefix_addrconf_process()
987 else if (curtime > cur_pexp) in incoming_prefix_addrconf_process()
989 else if ((curtime + preftime) > cur_pexp) in incoming_prefix_addrconf_process()
990 preftime = cur_pexp - curtime; in incoming_prefix_addrconf_process()
/illumos-gate/usr/src/lib/libc/port/aio/
H A Daio.c656 timespec_t curtime; in _aio_get_timedelta() local
659 curtime.tv_sec = cur.tv_sec; in _aio_get_timedelta()
660 curtime.tv_nsec = cur.tv_usec * 1000; /* convert us to ns */ in _aio_get_timedelta()
662 if (end->tv_sec >= curtime.tv_sec) { in _aio_get_timedelta()
663 wait->tv_sec = end->tv_sec - curtime.tv_sec; in _aio_get_timedelta()
664 if (end->tv_nsec >= curtime.tv_nsec) { in _aio_get_timedelta()
665 wait->tv_nsec = end->tv_nsec - curtime.tv_nsec; in _aio_get_timedelta()
669 if (end->tv_sec > curtime.tv_sec) { in _aio_get_timedelta()
672 (curtime.tv_nsec - end->tv_nsec); in _aio_get_timedelta()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dmain.c371 time_t curtime; in exfile() local
511 time(&curtime); in exfile()
512 if ((curtime - mailtime) >= sh_mailchk) in exfile()
515 mailtime = curtime; in exfile()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprsubr.c3462 hrtime_t curtime; in prgetusage() local
3501 if (waitrq > curtime) { in prgetusage()
3504 tmp1 = curtime - waitrq; in prgetusage()
3507 curtime = waitrq; in prgetusage()
3567 pup->pr_tstamp = curtime; in prgetusage()
3617 hrtime_t curtime; in praddusage() local
3625 tmp = curtime - ms->ms_start; in praddusage()
3663 if (waitrq > curtime) { in praddusage()
3666 tmp = curtime - waitrq; in praddusage()
3669 curtime = waitrq; in praddusage()
[all …]
/illumos-gate/usr/src/uts/common/disp/
H A Ddisp.c1315 hrtime_t curtime; in setbackdq() local
1317 curtime = gethrtime_unscaled(); in setbackdq()
1318 (void) cpu_update_pct(tp, curtime); in setbackdq()
1319 tp->t_waitrq = curtime; in setbackdq()
1472 hrtime_t curtime; in setfrontdq() local
1474 curtime = gethrtime_unscaled(); in setfrontdq()
1475 (void) cpu_update_pct(tp, curtime); in setfrontdq()
1476 tp->t_waitrq = curtime; in setfrontdq()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Denvelope.c109 e->e_ctime = curtime();
234 now = curtime();
556 pintvl(curtime() - e->e_ctime, true),
765 e->e_ctime = curtime();
834 now = curtime();
H A Dsfsasl.c588 time_t now = curtime();
725 tlsstart = curtime();
837 tlsstart = curtime();

123