Home
last modified time | relevance | path

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

123

/titanic_44/usr/src/uts/common/os/
H A Dmsacct.c98 hrtime_t curtime; in init_mstate() local
105 curtime = gethrtime_unscaled(); in init_mstate()
107 ms->ms_start = curtime; in init_mstate()
109 ms->ms_state_start = curtime; in init_mstate()
112 t->t_hrtime = curtime; in init_mstate()
157 cpu->cpu_acct[cpu->cpu_mstate] += curtime - cpu->cpu_mstate_start; \
159 cpu->cpu_mstate_start = curtime; \
164 new_cpu_mstate(int cmstate, hrtime_t curtime) in new_cpu_mstate() argument
397 hrtime_t curtime; in syscall_mstate() local
411 curtime = gethrtime_unscaled(); in syscall_mstate()
[all …]
/titanic_44/usr/src/cmd/rpcsvc/
H A Drup.c64 time_t curtime; member
229 putline(sw_var.curtime.tv_sec, sw_var.boottime,
232 putline(st.curtime.tv_sec, st.boottime, st.avenrun);
240 entry[curentry].curtime = st.curtime.tv_sec;
247 entry[curentry].curtime = sw_var.curtime.tv_sec;
378 putline(st->curtime.tv_sec, st->boottime, st->avenrun);
380 putline(sv->curtime.tv_sec, sv->boottime, sv->avenrun);
387 entry[curentry].curtime = st->curtime.tv_sec;
393 entry[curentry].curtime = sv->curtime.tv_sec;
419 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()
/titanic_44/usr/src/lib/libipmp/common/
H A Dipmp_mpathd.c212 struct timeval curtime; in ipmp_read() local
223 if (gettimeofday(&curtime, NULL) == -1) in ipmp_read()
226 timeleft = (endtp->tv_sec - curtime.tv_sec) * MILLISEC; in ipmp_read()
227 timeleft += (endtp->tv_usec - curtime.tv_usec) / 1000; in ipmp_read()
/titanic_44/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()
/titanic_44/usr/src/head/rpcsvc/
H A Drstat.x125 rstat_timeval curtime; member
143 rstat_timeval curtime; member
/titanic_44/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;
/titanic_44/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c424 time_t curtime; in update_if_cache() local
430 (void) time(&curtime); in update_if_cache()
431 if ((curtime - last_updated) >= if_cache_refresh_time) { in update_if_cache()
451 time_t curtime; in is_my_address() local
454 (void) time(&curtime); in is_my_address()
455 if ((curtime - last_updated) >= if_cache_refresh_time) { in is_my_address()
741 time_t curtime; in inet_netdir_mergeaddr() local
780 (void) time(&curtime); in inet_netdir_mergeaddr()
781 if ((curtime - last_updated) >= if_cache_refresh_time) { in inet_netdir_mergeaddr()
/titanic_44/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()
/titanic_44/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/awt/
H A DVJPanel.java300 long curtime = System.currentTimeMillis(); in fixClickCount() local
302 evt.when = curtime; in fixClickCount()
306 if ((curtime - clickTime) < CLICK_TIMEOUT in fixClickCount()
316 clickTime = curtime; in fixClickCount()
321 long curtime = System.currentTimeMillis(); in fixClickCount() local
323 evt.when = curtime; in fixClickCount()
/titanic_44/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()
/titanic_44/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()
/titanic_44/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()
/titanic_44/usr/src/cmd/utmpd/
H A Dutmpd.c193 time_t curtime, now; in main() local
309 curtime = time(NULL); in main()
316 if ((now - curtime) >= WARN_TIME) { in main()
319 curtime = now; in main()
/titanic_44/usr/src/common/net/wanboot/
H A Dbootlog.c113 time_t curtime; in gettime() local
115 if (time(&curtime) == 0) in gettime()
118 (void) strlcpy(timebuf, ctime(&curtime), sizeof (timebuf)); in gettime()
/titanic_44/usr/src/lib/libnsl/rpc/
H A Dclnt_dg.c276 struct timeval startime, curtime; in clnt_dg_call() local
406 timeout: (void) gettimeofday(&curtime, NULL); in clnt_dg_call()
407 time_waited.tv_sec += curtime.tv_sec - startime.tv_sec; in clnt_dg_call()
408 time_waited.tv_usec += curtime.tv_usec - in clnt_dg_call()
422 poll_time.tv_sec -= curtime.tv_sec - startime.tv_sec; in clnt_dg_call()
423 poll_time.tv_usec -= curtime.tv_usec - startime.tv_usec; in clnt_dg_call()
/titanic_44/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()
1119 if (curtime < mi->mi_grace_wait) { in nfs4_wait_for_grace()
1121 time_to_wait = mi->mi_grace_wait - curtime; in nfs4_wait_for_grace()
1127 curtime = gethrestime_sec(); in nfs4_wait_for_grace()
1131 if (curtime >= mi->mi_grace_wait) 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()
1176 if (curtime < rp->r_delay_wait) { in nfs4_wait_for_delay()
1178 time_to_wait = rp->r_delay_wait - curtime; in nfs4_wait_for_delay()
[all …]
/titanic_44/usr/src/uts/common/fs/proc/
H A Dprsubr.c2737 estimate_msacct(kthread_t *t, hrtime_t curtime) in estimate_msacct() argument
2803 hrtime_t curtime; in prgetusage() local
2807 curtime = gethrtime_unscaled(); in prgetusage()
2816 pup->pr_rtime = curtime - ms->ms_start; in prgetusage()
2842 if (waitrq > curtime) { in prgetusage()
2843 curtime = gethrtime_unscaled(); in prgetusage()
2845 tmp1 = curtime - waitrq; in prgetusage()
2848 curtime = waitrq; in prgetusage()
2854 if (ms->ms_state_start > curtime) { in prgetusage()
2855 curtime = gethrtime_unscaled(); in prgetusage()
[all …]
/titanic_44/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()
/titanic_44/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()
/titanic_44/usr/src/lib/libshell/common/sh/
H A Dmain.c385 time_t curtime; in exfile() local
520 time(&curtime); in exfile()
521 if ((curtime - mailtime) >= sh_mailchk) in exfile()
524 mailtime = curtime; in exfile()
/titanic_44/usr/src/cmd/sendmail/src/
H A Dsfsasl.c588 time_t now = curtime();
725 tlsstart = curtime();
837 tlsstart = curtime();
H A Denvelope.c107 e->e_ctime = curtime();
232 now = curtime();
554 pintvl(curtime() - e->e_ctime, true),
763 e->e_ctime = curtime();
832 now = curtime();
H A Darpadate.c78 t = curtime();
/titanic_44/usr/src/uts/common/disp/
H A Ddisp.c1295 hrtime_t curtime; in setbackdq() local
1297 curtime = gethrtime_unscaled(); in setbackdq()
1298 (void) cpu_update_pct(tp, curtime); in setbackdq()
1299 tp->t_waitrq = curtime; in setbackdq()
1455 hrtime_t curtime; in setfrontdq() local
1457 curtime = gethrtime_unscaled(); in setfrontdq()
1458 (void) cpu_update_pct(tp, curtime); in setfrontdq()
1459 tp->t_waitrq = curtime; in setfrontdq()

123