Home
last modified time | relevance | path

Searched refs:it_value (Results 1 – 25 of 38) sorted by relevance

12

/titanic_50/usr/src/lib/libbc/libc/gen/sys5/
H A Dsleep.c44 timerclear(&newp->it_value); in sleep()
47 newp->it_value.tv_sec = n; in sleep()
50 if (timerisset(&old.it_value)) { in sleep()
51 if (timercmp(&old.it_value, &newp->it_value, >)) { in sleep()
52 old.it_value.tv_sec -= newp->it_value.tv_sec; in sleep()
55 left_over.tv_sec = newp->it_value.tv_sec in sleep()
56 - old.it_value.tv_sec; in sleep()
57 if (old.it_value.tv_usec != 0) { in sleep()
60 - old.it_value.tv_usec; in sleep()
62 newp->it_value = old.it_value; in sleep()
[all …]
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A Dusleep.c42 timerclear(&itp->it_value); in usleep()
45 itp->it_value.tv_sec = n / USPS; in usleep()
46 itp->it_value.tv_usec = n % USPS; in usleep()
47 if (timerisset(&oitv.it_value)) { in usleep()
48 if (timercmp(&oitv.it_value, &itp->it_value, >)) { in usleep()
49 oitv.it_value.tv_sec -= itp->it_value.tv_sec; in usleep()
50 oitv.it_value.tv_usec -= itp->it_value.tv_usec; in usleep()
51 if (oitv.it_value.tv_usec < 0) { in usleep()
52 oitv.it_value.tv_usec += USPS; in usleep()
53 oitv.it_value.tv_sec--; in usleep()
[all …]
H A Dalarm.c41 itp->it_value.tv_sec = secs; in alarm()
42 itp->it_value.tv_usec = 0; in alarm()
45 if (oitv.it_value.tv_usec) in alarm()
46 oitv.it_value.tv_sec++; in alarm()
47 return (oitv.it_value.tv_sec); in alarm()
H A Dualarm.c29 new.it_value.tv_usec = usecs % USPS;
30 new.it_value.tv_sec = usecs / USPS;
33 return (old.it_value.tv_sec * USPS + old.it_value.tv_usec);
/titanic_50/usr/src/lib/libbc/libc/gen/4.2/
H A Dsleep.c30 timerclear(&itp->it_value); in sleep()
33 itp->it_value.tv_sec = n; in sleep()
34 if (timerisset(&oitv.it_value)) { in sleep()
35 if (timercmp(&oitv.it_value, &itp->it_value, >)) in sleep()
36 oitv.it_value.tv_sec -= itp->it_value.tv_sec; in sleep()
38 itp->it_value = oitv.it_value; in sleep()
45 oitv.it_value.tv_sec = 1; in sleep()
46 oitv.it_value.tv_usec = 0; in sleep()
/titanic_50/usr/src/cmd/sendmail/libsm/
H A Dclock.c168 timersub(&SmEventQueue->ev_time, &now, &itime.it_value);
171 if (itime.it_value.tv_sec < 0)
172 itime.it_value.tv_sec = 0;
173 if (itime.it_value.tv_sec == 0 && itime.it_value.tv_usec == 0)
174 itime.it_value.tv_usec = 1000;
241 clr.it_value.tv_sec = 0;
242 clr.it_value.tv_usec = 0;
272 clr.it_value.tv_sec = 0; in sm_clear_events()
273 clr.it_value.tv_usec = 0; in sm_clear_events()
337 clr.it_value.tv_sec = 0;
[all …]
H A Dsignal.c246 clr.it_value.tv_sec = 1;
247 clr.it_value.tv_usec = 0;
/titanic_50/usr/src/uts/common/sys/
H A Dtime_impl.h97 struct timespec it_value; /* timer expiration */ member
104 TIMESPEC32_TO_TIMESPEC(&(it)->it_value, &(it32)->it_value); \
109 TIMESPEC_TO_TIMESPEC32(&(it32)->it_value, &(it)->it_value); \
114 TIMESPEC_OVERFLOW(&(it)->it_value))
H A Dtime.h209 struct timeval it_value; /* current value */ member
216 struct timeval32 it_value; member
221 TIMEVAL32_TO_TIMEVAL(&(itv)->it_value, &(itv32)->it_value); \
226 TIMEVAL_TO_TIMEVAL32(&(itv32)->it_value, &(itv)->it_value); \
231 TIMEVAL_OVERFLOW(&(itv)->it_value))
H A Dtypes32.h87 struct timespec32 it_value; member
/titanic_50/usr/src/uts/common/os/
H A Dtimers.c233 if (timerisset(&aitv.it_value)) { in xgetitimer()
235 if (timercmp(&aitv.it_value, &now, <)) { in xgetitimer()
236 timerclear(&aitv.it_value); in xgetitimer()
238 timevalsub(&aitv.it_value, &now); in xgetitimer()
251 first = tv2hrt(&aitv.it_value); in xgetitimer()
280 hrt2tv(remain, &aitv.it_value); in xgetitimer()
361 if (itimerfix(&aitv.it_value, min) || in xsetitimer()
362 (itimerfix(&aitv.it_interval, min) && timerisset(&aitv.it_value))) in xsetitimer()
396 if (timerisset(&aitv.it_value)) { in xsetitimer()
398 timevaladd(&aitv.it_value, &now); in xsetitimer()
[all …]
H A Dclock_realtime.c86 val = &it->it_itime.it_value; in clock_realtime_fire()
151 timespec_t *val = &it->it_itime.it_value; in clock_realtime_fire_first()
208 if (timerspecisset(&it->it_itime.it_value)) { in clock_realtime_timer_settime()
210 timespecadd(&it->it_itime.it_value, &now); in clock_realtime_timer_settime()
212 ticks = timespectohz(&it->it_itime.it_value, now); in clock_realtime_timer_settime()
262 if (!timerspecisset(&when->it_value)) in clock_realtime_timer_gettime()
265 if (timerspeccmp(&when->it_value, &now) < 0) { in clock_realtime_timer_gettime()
270 timerspecclear(&when->it_value); in clock_realtime_timer_gettime()
272 timespecsub(&when->it_value, &now); in clock_realtime_timer_gettime()
H A Dclock_highres.c115 cyctime.cyt_when = ts2hrt(&when->it_value); in clock_highres_timer_settime()
132 hrt2ts(cyctime.cyt_when, &it->it_itime.it_value); in clock_highres_timer_settime()
199 hrt2ts(cyctime.cyt_when, &it->it_itime.it_value); in clock_highres_timer_settime()
232 hrtime_t start = ts2hrt(&it->it_itime.it_value); in clock_highres_timer_gettime()
246 if (!timerspecisset(&when->it_value)) in clock_highres_timer_gettime()
260 timerspecclear(&when->it_value); in clock_highres_timer_gettime()
277 timerspecclear(&when->it_value); in clock_highres_timer_gettime()
288 hrt2ts(diff, &when->it_value); in clock_highres_timer_gettime()
/titanic_50/usr/src/lib/libc/port/gen/
H A Dualarm.c37 new.it_value.tv_usec = usecs % USPS; in ualarm()
38 new.it_value.tv_sec = usecs / USPS; in ualarm()
42 return (old.it_value.tv_sec * USPS + old.it_value.tv_usec); in ualarm()
/titanic_50/usr/src/uts/i86pc/io/
H A Dhrtimers.c200 itv.it_value.tv_sec = cp->hrtc_int.hrt_secs;
201 itv.it_value.tv_usec = cp->hrtc_int.hrt_rem;
228 itv.it_value.tv_sec = cp->hrtc_tod.hrt_secs;
229 itv.it_value.tv_usec = cp->hrtc_tod.hrt_rem;
257 delay_ht.hrt_secs = itv.it_value.tv_sec;
258 delay_ht.hrt_rem = itv.it_value.tv_usec;
323 itv.it_value.tv_sec = 0; in hrt_bsd_cancel()
324 itv.it_value.tv_usec = 0; in hrt_bsd_cancel()
/titanic_50/usr/src/lib/libshell/common/sh/
H A Dtimers.c68 tnew.it_value.tv_sec = t; in setalarm()
69 tnew.it_value.tv_usec = 1.e6*(t- (double)tnew.it_value.tv_sec); in setalarm()
70 if(t && tnew.it_value.tv_sec==0 && tnew.it_value.tv_usec<1000) in setalarm()
71 tnew.it_value.tv_usec = 1000; in setalarm()
76 t = told.it_value.tv_sec + 1.e-6*told.it_value.tv_usec; in setalarm()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dinvite.c78 itimer.it_value.tv_sec = RING_WAIT; in invite_remote()
79 itimer.it_value.tv_usec = 0; in invite_remote()
80 itimer.it_interval = itimer.it_value; in invite_remote()
H A Dmsgs.c77 itimer.it_value = itimer.it_interval = wait; in start_msgs()
85 timerclear(&itimer.it_value); in end_msgs()
/titanic_50/usr/src/cmd/dtrace/test/tst/common/proc/
H A Dtst.sigwait.c58 ts.it_value.tv_sec = 1; in main()
59 ts.it_value.tv_nsec = 0; in main()
/titanic_50/usr/src/cmd/intrstat/
H A Dintrstat.c544 ts.it_value.tv_sec = g_sleeptime; in main()
545 ts.it_value.tv_nsec = 0; in main()
575 ts.it_value.tv_sec = statustime / NANOSEC; in main()
576 ts.it_value.tv_nsec = statustime % NANOSEC; in main()
577 ts.it_interval = ts.it_value; in main()
/titanic_50/usr/src/lib/libresolv2/common/bsd/
H A Dsetitimer.c22 if (alarm(value->it_value.tv_sec) >= 0) in __setitimer()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c685 timeout.it_value.tv_sec = tm / MICROSEC; in udp_query()
686 timeout.it_value.tv_usec = tm - (timeout.it_value.tv_sec * in udp_query()
689 timeout.it_value.tv_sec = 0; in udp_query()
690 timeout.it_value.tv_usec = tm; in udp_query()
/titanic_50/usr/src/lib/libbc/inc/include/sys/
H A Dtime.h58 struct timeval it_value; /* current value */ member
/titanic_50/usr/src/uts/common/io/
H A Dtimerfd.c218 if (itimerspecfix(&dest->it_value) || in timerfd_copyin()
220 timerspecisset(&dest->it_value))) { in timerfd_copyin()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c1783 it.it_value.tv_sec = waittime; in schedule_sigalrm()
2543 interval.it_value.tv_sec = (long)val; in parse_interval()
2544 interval.it_value.tv_nsec = (long)((val - interval.it_value.tv_sec) * in parse_interval()
2547 if (interval.it_value.tv_sec == 0 && in parse_interval()
2548 interval.it_value.tv_nsec < mintime) { in parse_interval()
2549 mintime = interval.it_value.tv_nsec; in parse_interval()

12