Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 741) sorted by relevance

12345678910>>...30

/illumos-gate/usr/src/uts/common/sys/
H A Dtime.h64 (tv)->tv_sec = (time_t)(tv32)->tv_sec; \
69 (tv32)->tv_sec = (time32_t)(tv)->tv_sec; \
77 ((tv)->tv_sec < TIME32_MIN || (tv)->tv_sec > TIME32_MAX)
130 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
134 ((tvp)->tv_sec cmp (uvp)->tv_sec))
147 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
158 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
170 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
182 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
420 (tv)->tv_sec = (ts)->tv_sec; \
[all …]
H A Dtime_impl.h58 time_t tv_sec; /* seconds */ member
67 (ts)->tv_sec = (time_t)(ts32)->tv_sec; \
72 (ts32)->tv_sec = (time32_t)(ts)->tv_sec; \
77 ((ts)->tv_sec < TIME32_MIN || (ts)->tv_sec > TIME32_MAX)
/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h176 _ts->tv_sec = _bt->sec; in bintime2timespec()
250 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
252 ((tvp)->tv_sec cmp (uvp)->tv_sec))
255 (vvp)->tv_sec += (uvp)->tv_sec; \
264 (vvp)->tv_sec -= (uvp)->tv_sec; \
277 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
279 ((tvp)->tv_sec cmp (uvp)->tv_sec))
290 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
292 ((tvp)->tv_sec cmp (uvp)->tv_sec))
295 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
[all …]
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dtime.h26 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
30 (vvp)->tv_sec--; \
40 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
44 (vvp)->tv_sec++; \
52 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
54 ((tvp)->tv_sec cmp (uvp)->tv_sec))
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c430 if (prev_clk.tv_sec == clk.tv_sec && in main()
447 if (result.tv_sec < 0 || result.tv_sec > in main()
489 sync_kern_timer.tv_sec = (now.tv_sec in main()
538 no_flash.tv_sec+MIN_WAITTIME < next_bcast.tv_sec) { in main()
633 ifscan_timer.tv_sec = now.tv_sec; in sigalrm()
868 if (next_bcast.tv_sec < now.tv_sec+MIN_WAITTIME) in rip_on()
869 next_bcast.tv_sec = now.tv_sec+MIN_WAITTIME; in rip_on()
875 ifscan_timer.tv_sec = now.tv_sec; in rip_on()
911 t1->tv_sec += t2->tv_sec; in timevaladd()
913 t1->tv_sec++; in timevaladd()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dclock.c110 ival.tv_sec = intvl / 1000;
172 itime.it_value.tv_sec = 0;
241 clr.it_value.tv_sec = 0;
272 clr.it_value.tv_sec = 0; in sm_clear_events()
337 clr.it_value.tv_sec = 0;
456 clr.it_value.tv_sec = 0;
472 clr.it_value.tv_sec = 0;
519 rqtp.tv_sec = intvl;
558 slpv.tv_sec = intvl;
583 if (diff.tv_sec < 0 ||
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtvtouch.c112 ts[0].tv_sec = 0; in tvtouch()
117 ts[0].tv_sec = 0; in tvtouch()
122 ts[0].tv_sec = av->tv_sec; in tvtouch()
127 ts[1].tv_sec = 0; in tvtouch()
132 ts[1].tv_sec = 0; in tvtouch()
137 ts[1].tv_sec = mv->tv_sec; in tvtouch()
178 ts[0].tv_sec = st.st_atime; in tvtouch()
183 ts[0].tv_sec = av->tv_sec; in tvtouch()
193 ts[1].tv_sec = mv->tv_sec; in tvtouch()
212 am[0].tv_sec = av->tv_sec; in tvtouch()
[all …]
H A Dtvgettime.c38 tv->tv_sec = s.tv_sec; in tvgettime()
48 tv->tv_sec = v.tv_sec; in tvgettime()
56 if ((tv->tv_sec = time(NiL)) != s) in tvgettime()
58 s = tv->tv_sec; in tvgettime()
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_osdep.h102 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
104 ((tvp)->tv_sec cmp (uvp)->tv_sec))
109 (vvp)->tv_sec += (uvp)->tv_sec; \
112 (vvp)->tv_sec++; \
119 (vvp)->tv_sec -= (uvp)->tv_sec; \
122 (vvp)->tv_sec--; \
H A Dsmb_time.c80 tsp->tv_sec = 0; in smb_time_NT2local()
89 tsp->tv_sec = 0; in smb_time_NT2local()
93 tsp->tv_sec = nt_sec - DIFF1970TO1601; in smb_time_NT2local()
110 if (tsp->tv_sec == 0) { in smb_time_local2NT()
115 nt_sec = tsp->tv_sec + DIFF1970TO1601; in smb_time_local2NT()
128 if (tsp->tv_sec <= (tzoff * 60)) in smb_time_local2server()
131 *seconds = tsp->tv_sec - (tzoff * 60); in smb_time_local2server()
138 tsp->tv_sec = 0; in smb_time_server2local()
140 tsp->tv_sec = seconds + tzoff * 60; in smb_time_server2local()
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwp_timer.c67 (lwptp->lwpt_rqtime.tv_sec > now.tv_sec || in lwp_timer_timeout()
68 (lwptp->lwpt_rqtime.tv_sec == now.tv_sec && in lwp_timer_timeout()
127 if (lwptp->lwpt_rqtime.tv_sec == 0 && lwptp->lwpt_rqtime.tv_nsec == 0) { in lwp_timer_copyin()
154 (lwptp->lwpt_rqtime.tv_sec > now.tv_sec || in lwp_timer_enqueue()
155 (lwptp->lwpt_rqtime.tv_sec == now.tv_sec && in lwp_timer_enqueue()
204 rmtime.tv_sec = rmtime.tv_nsec = 0; in lwp_timer_copyout()
207 if ((now.tv_sec < lwptp->lwpt_rqtime.tv_sec) || in lwp_timer_copyout()
208 ((now.tv_sec == lwptp->lwpt_rqtime.tv_sec) && in lwp_timer_copyout()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dtime_util.c42 tsp->tv_sec = hrt / NANOSEC; in hrt2ts()
64 tsp->tv_sec = (time_t)sec; in hrt2ts()
85 reltime->tv_sec = abstime->tv_sec - now.tv_sec; in abstime_to_reltime()
88 reltime->tv_sec = abstime->tv_sec - now.tv_sec - 1; in abstime_to_reltime()
95 if (reltime->tv_sec < 0) { in abstime_to_reltime()
96 reltime->tv_sec = 0; in abstime_to_reltime()
H A Dutimesys.c65 ts[0].tv_sec = ltimes.actime; in utime()
67 ts[1].tv_sec = ltimes.modtime; in utime()
87 ts[0].tv_sec = ltimes[0].tv_sec; in utimes_impl()
89 ts[1].tv_sec = ltimes[1].tv_sec; in utimes_impl()
122 ts[0].tv_sec = ltimes[0].tv_sec; in futimesat()
124 ts[1].tv_sec = ltimes[1].tv_sec; in futimesat()
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c67 ((tvp)->tv_sec cmp (tsp)->tv_sec || \
68 ((tvp)->tv_sec == (tsp)->tv_sec && \
116 sec = ts.tv_sec; in uniqtime()
743 if (tv->tv_sec < 0 || tv->tv_sec > 100000000 || in itimerfix()
815 t1->tv_sec += t2->tv_sec; in timevaladd()
823 t1->tv_sec -= t2->tv_sec; in timevalsub()
848 t1->tv_sec += t2->tv_sec; in timespecadd()
856 t1->tv_sec -= t2->tv_sec; in timespecsub()
884 ts.tv_sec = tv->tv_sec; in hzto()
908 sec = tv->tv_sec - now.tv_sec; in timespectohz()
[all …]
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dclnt_udp.c160 cu->cu_total.tv_sec = -1;
250 time_waited.tv_sec = 0;
298 time_waited.tv_sec += retransmit_time.tv_sec;
301 time_waited.tv_sec++;
309 retransmit_time.tv_sec += retransmit_time.tv_sec;
316 if ((time_waited.tv_sec < timeout.tv_sec) ||
317 ((time_waited.tv_sec == timeout.tv_sec) &&
355 time_waited.tv_sec += curtime.tv_sec - startime.tv_sec;
366 startime.tv_sec = curtime.tv_sec;
368 if ((time_waited.tv_sec > timeout.tv_sec) ||
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_timers.c62 x.tv_sec = sec; in evConsTime()
71 x.tv_sec = addend1.tv_sec + addend2.tv_sec; in evAddTime()
74 x.tv_sec++; in evAddTime()
84 x.tv_sec = minuend.tv_sec - subtrahend.tv_sec; in evSubTime()
89 x.tv_sec--; in evSubTime()
96 long x = a.tv_sec - b.tv_sec; in evCmpTime()
146 ts.tv_sec = tv.tv_sec; in evTimeSpec()
155 tv.tv_sec = ts.tv_sec; in evTimeVal()
174 (long)due.tv_sec, due.tv_nsec, in evSetTimer()
175 (long)inter.tv_sec, inter.tv_nsec); in evSetTimer()
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.time.c129 (r1->ru_utime.tv_sec - r0->ru_utime.tv_sec) * 100 + in prusage()
131 (r1->ru_stime.tv_sec - r0->ru_stime.tv_sec) * 100 + in prusage()
137 (e->tv_sec - b->tv_sec) * 100 + (e->tv_usec - b->tv_usec) / 10000; in prusage()
232 printf("%d.%01d", td.tv_sec, td.tv_usec / 100000); in pdeltat()
242 tsum->tv_sec += t0->tv_sec; in tvadd()
245 tsum->tv_sec++; in tvadd()
257 tdiff->tv_sec = t1->tv_sec - t0->tv_sec; in tvsub()
260 tdiff->tv_sec--; in tvsub()
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_stat.c72 cep->ce_sec.stime = cep->ce_sec.etime = tv.tv_sec; in cpr_stat_event_start()
109 cep->ce_sec.etime = tv.tv_sec; in cpr_stat_event_end()
280 cb_time = endp->tv_sec - startp->tv_sec; in cpr_convert_promtime()
283 startp->tv_sec = endp->tv_sec - cb_time; in cpr_convert_promtime()
286 min_promtime > (endp->tv_sec - shdnp->tv_sec - cb_time)) in cpr_convert_promtime()
287 min_promtime = endp->tv_sec - shdnp->tv_sec - cb_time; in cpr_convert_promtime()
292 pwroff_time = startp->tv_sec - shdnp->tv_sec - min_promtime; in cpr_convert_promtime()
294 wholecycle_tv.tv_sec += pwroff_time; /* offset the poweroff time */ in cpr_convert_promtime()
296 pop->tv_sec = startp->tv_sec - min_promtime; in cpr_convert_promtime()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_dg.c366 poll_time.tv_sec = timeout.tv_sec - time_waited.tv_sec; in clnt_dg_call()
370 poll_time.tv_sec--; in clnt_dg_call()
373 if (poll_time.tv_sec < 0 || (poll_time.tv_sec == 0 && in clnt_dg_call()
382 if (poll_time.tv_sec > retransmit_time.tv_sec || in clnt_dg_call()
383 (poll_time.tv_sec == retransmit_time.tv_sec && in clnt_dg_call()
408 time_waited.tv_sec += curtime.tv_sec - startime.tv_sec; in clnt_dg_call()
423 poll_time.tv_sec -= curtime.tv_sec - startime.tv_sec; in clnt_dg_call()
427 poll_time.tv_sec++; in clnt_dg_call()
445 if (time_waited.tv_sec < timeout.tv_sec || in clnt_dg_call()
446 (time_waited.tv_sec == timeout.tv_sec && in clnt_dg_call()
[all …]
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dttl_utils.c289 oldval.tv_sec = t1->tv_sec; in add_to_timeval()
292 t1->tv_sec += t2; in add_to_timeval()
295 if (!(t1->tv_sec >= oldval.tv_sec)) { in add_to_timeval()
297 "Wrap when adding %d to %d", t2, oldval.tv_sec); in add_to_timeval()
322 if (t1->tv_sec > t2->tv_sec) in is_greater_timeval()
325 if (t1->tv_sec == t2->tv_sec) { in is_greater_timeval()
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drup.c224 entry[curentry].boottime.tv_sec = st.boottime.tv_sec;
227 entry[curentry].curtime = st.curtime.tv_sec;
230 entry[curentry].boottime.tv_sec =
231 sw_var.boottime.tv_sec;
262 uptime = now - boottime.tv_sec;
371 entry[curentry].boottime.tv_sec = st->boottime.tv_sec;
374 entry[curentry].curtime = st->curtime.tv_sec;
377 entry[curentry].boottime.tv_sec = sv->boottime.tv_sec;
380 entry[curentry].curtime = sv->curtime.tv_sec;
449 if (a->boottime.tv_sec != b->boottime.tv_sec) in uptimecmp()
[all …]
/illumos-gate/usr/src/lib/libzonestat/common/
H A Dzonestat_impl.h62 (ts).tv_sec += (time_t)((nsec) / NANOSEC); \
65 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \
72 (ts).tv_sec += (add).tv_sec; \
75 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \
82 (delta).tv_sec = (new).tv_sec - (old).tv_sec; \
86 delta.tv_sec -= 1; \
88 if ((delta).tv_sec < 0) { \
89 delta.tv_sec = 0; \
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem_update_thread.c56 umem_update_next.tv_sec += umem_reap_interval; 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()
106 abs_time.tv_sec = umem_update_next.tv_sec; in umem_update_thread()
/illumos-gate/usr/src/uts/sun4u/io/
H A Dtodopl.c156 hrestime.tv_sec = obp_time; in _init()
168 hrestime.tv_sec = (time_t)0; in _init()
231 if (abs(ts.tv_sec - hrestime.tv_sec) > TODOPL_SET_THRESHOLD) { in todopl_set()
236 prom_opl_set_diff(ts.tv_sec - hrestime.tv_sec); in todopl_set()
261 prom_opl_set_diff(ts.tv_sec - obp_time); in todopl_set()
267 ts.tv_sec)); in todopl_set()
/illumos-gate/usr/src/uts/i86xpv/io/
H A Dxpvtod.c64 wcts.tv_sec = si->wc_sec; in todxen_get()
76 (hrtime_t)wcts.tv_nsec + (hrtime_t)wcts.tv_sec * NANOSEC; in todxen_get()
77 ts.tv_sec = (time_t)(now / NANOSEC); in todxen_get()
83 ts.tv_sec += ggmtl(); in todxen_get()
88 tod = utc_to_tod(ts.tv_sec); in todxen_get()
111 ts.tv_sec = tod_to_utc(tod); in todxen_get()
135 op.u.settime.secs = ts.tv_sec - ggmtl(); in todxen_set()

12345678910>>...30