Home
last modified time | relevance | path

Searched refs:tv_usec (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/illumos-gate/usr/src/uts/common/sys/
H A Dtime.h65 (tv)->tv_usec = (tv32)->tv_usec; \
70 (tv32)->tv_usec = (int32_t)(tv)->tv_usec; \
132 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
148 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
152 (vvp)->tv_usec -= 1000000; \
159 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
160 if ((vvp)->tv_usec < 0) \
163 (vvp)->tv_usec += 1000000; \
171 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
183 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
[all …]
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dtime.h27 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
28 if ((vvp)->tv_usec < 0) \
31 (vvp)->tv_usec += 1000000; \
41 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
42 if ((vvp)->tv_usec >= 1000000) \
45 (vvp)->tv_usec -= 1000000; \
53 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
/illumos-gate/usr/src/cmd/csh/
H A Dsh.time.c130 (r1->ru_utime.tv_usec - r0->ru_utime.tv_usec) / 10000 + in prusage()
132 (r1->ru_stime.tv_usec - r0->ru_stime.tv_usec) / 10000; 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()
243 tsum->tv_usec += t0->tv_usec; in tvadd()
244 if (tsum->tv_usec > 1000000) { in tvadd()
246 tsum->tv_usec -= 1000000; in tvadd()
258 tdiff->tv_usec = t1->tv_usec - t0->tv_usec; in tvsub()
259 if (tdiff->tv_usec < 0) { in tvsub()
261 tdiff->tv_usec += 1000000; in tvsub()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dclock.c170 itime.it_interval.tv_usec = 0;
240 clr.it_interval.tv_usec = 0;
242 clr.it_value.tv_usec = 0;
271 clr.it_interval.tv_usec = 0; in sm_clear_events()
273 clr.it_value.tv_usec = 0; in sm_clear_events()
336 clr.it_interval.tv_usec = 0;
338 clr.it_value.tv_usec = 0;
438 clr.it_value.tv_usec = 0;
457 clr.it_value.tv_usec = 0;
559 slpv.tv_usec = 0;
[all …]
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dclnt_udp.c161 cu->cu_total.tv_usec = -1;
244 if (cu->cu_total.tv_usec == -1) {
251 time_waited.tv_usec = 0;
299 time_waited.tv_usec += retransmit_time.tv_usec;
302 time_waited.tv_usec -= 1000000;
308 retransmit_time.tv_usec += retransmit_time.tv_usec;
318 (time_waited.tv_usec < timeout.tv_usec)))
356 time_waited.tv_usec += curtime.tv_usec -
357 startime.tv_usec;
367 startime.tv_usec = curtime.tv_usec;
[all …]
/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h204 _bt->frac = _tv->tv_usec * (uint64_t)18446744073709LL; in timeval2bintime()
231 _tv.tv_usec = ((uint64_t)1000000 * (uint32_t)_sbt) >> 32; in sbttotv()
278 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
288 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
291 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
296 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
297 if ((vvp)->tv_usec >= 1000000) { \
299 (vvp)->tv_usec -= 1000000; \
305 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
306 if ((vvp)->tv_usec < 0) { \
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dgettimeofday.c23 if (tp->tv_usec < 0) { in isc__gettimeofday()
25 tp->tv_usec += MILLION; in isc__gettimeofday()
27 } while (tp->tv_usec < 0); in isc__gettimeofday()
29 } else if (tp->tv_usec > MILLION) { in isc__gettimeofday()
31 tp->tv_usec -= MILLION; in isc__gettimeofday()
33 } while (tp->tv_usec > MILLION); in isc__gettimeofday()
50 tvp->tv_usec = 0; in gettimeofday()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_dg.c202 cu->cu_wait.tv_usec = 0; in clnt_dg_create()
204 cu->cu_total.tv_usec = -1; in clnt_dg_create()
296 time_waited.tv_usec = 0; in clnt_dg_call()
367 poll_time.tv_usec = timeout.tv_usec - time_waited.tv_usec; in clnt_dg_call()
369 poll_time.tv_usec += 1000000; in clnt_dg_call()
384 poll_time.tv_usec > retransmit_time.tv_usec)) in clnt_dg_call()
409 time_waited.tv_usec += curtime.tv_usec - in clnt_dg_call()
410 startime.tv_usec; in clnt_dg_call()
424 poll_time.tv_usec -= curtime.tv_usec - startime.tv_usec; in clnt_dg_call()
447 time_waited.tv_usec < timeout.tv_usec)) { in clnt_dg_call()
[all …]
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dtime.c46 if (newtime->tv_usec >= oldtime->tv_usec) in conv_time()
47 usec = newtime->tv_usec - oldtime->tv_usec; in conv_time()
49 usec = (newtime->tv_usec + MICROSEC) - oldtime->tv_usec; in conv_time()
/illumos-gate/usr/src/uts/common/io/
H A Dvuid_queue.c45 #define tv_to_usec(tv) (((tv).tv_sec * 1000000) + (tv).tv_usec)
295 return (a.tv_sec == b.tv_sec && a.tv_usec == b.tv_usec); in tv_equal()
302 if ((atv.tv_usec < btv.tv_usec) && atv.tv_sec) { in tv_subt()
303 atv.tv_usec += 1000000; in tv_subt()
306 if (atv.tv_usec > btv.tv_usec) in tv_subt()
307 atv.tv_usec -= btv.tv_usec; in tv_subt()
309 atv.tv_usec = 0; in tv_subt()
314 atv.tv_usec = 0; in tv_subt()
352 tv.tv_usec = usec % 1000000; in usec_to_tv()
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c135 usec = last.tv_usec + 1; in uniqtime()
142 last.tv_usec = usec; in uniqtime()
146 tv->tv_usec = usec; in uniqtime()
744 tv->tv_usec < 0 || tv->tv_usec >= MICROSEC) in itimerfix()
746 if (tv->tv_sec == 0 && tv->tv_usec != 0 && tv->tv_usec < minimum) in itimerfix()
747 tv->tv_usec = minimum; in itimerfix()
816 t1->tv_usec += t2->tv_usec; in timevaladd()
824 t1->tv_usec -= t2->tv_usec; in timevalsub()
831 if (t1->tv_usec < 0) { in timevalfix()
833 t1->tv_usec += MICROSEC; in timevalfix()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Drusagesys.c97 r32.ru_utime.tv_usec = r.ru_utime.tv_usec; in getrusage()
99 r32.ru_stime.tv_usec = r.ru_stime.tv_usec; in getrusage()
159 r32.ru_utime.tv_usec = r.ru_utime.tv_usec; in getrusage_chld()
161 r32.ru_stime.tv_usec = r.ru_stime.tv_usec; in getrusage_chld()
221 r32.ru_utime.tv_usec = r.ru_utime.tv_usec; in getrusage_lwp()
223 r32.ru_stime.tv_usec = r.ru_stime.tv_usec; in getrusage_lwp()
H A Dadjtime.c68 if (atv.tv_usec <= -MICROSEC || atv.tv_usec >= MICROSEC) in adjtime()
75 ndelta = (int64_t)atv.tv_sec * NANOSEC + atv.tv_usec * 1000; in adjtime()
91 oatv.tv_usec = (old_delta % NANOSEC) / 1000; in adjtime()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dnfs_cast.c287 xid = (getpid() ^ t.tv_sec ^ t.tv_usec) & ~0xFF; in nfs_cast()
288 t.tv_usec = 0; in nfs_cast()
334 rcv_timeout.tv_usec = 0; in nfs_cast()
530 ti->ts_timeval.tv_usec +=
532 if (ti->ts_timeval.tv_usec >= 1000000) {
534 (ti->ts_timeval.tv_usec / 1000000);
535 ti->ts_timeval.tv_usec =
536 (ti->ts_timeval.tv_usec % 1000000);
660 if (time_now.tv_usec < send_time->tv_usec) {
662 time_now.tv_usec += 1000000;
[all …]
/illumos-gate/usr/src/ucbcmd/rusage/
H A Drusage.c49 tv->tv_sec, tv->tv_usec/10000, s);
109 after.tv_usec -= before.tv_usec; in main()
110 if (after.tv_usec < 0) { in main()
112 after.tv_usec += 1000000; in main()
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauth_des.c160 ad->ad_timediff.tv_usec = 0; in authdes_create()
243 ad->ad_timestamp.tv_usec += ad->ad_timediff.tv_usec; in authdes_marshal()
244 if (ad->ad_timestamp.tv_usec >= MILLION) { in authdes_marshal()
245 ad->ad_timestamp.tv_usec -= MILLION; in authdes_marshal()
255 IXDR_PUT_INT32(ixdr, ad->ad_timestamp.tv_usec); in authdes_marshal()
351 verf.adv_timestamp.tv_usec = IXDR_GET_INT32(ixdr); in authdes_validate()
437 timout.tv_usec = 0; in synchronize()
442 if (mytime.tv_usec > timep->tv_usec) { in synchronize()
444 timep->tv_usec += MILLION; in synchronize()
446 timep->tv_usec -= mytime.tv_usec; in synchronize()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsettimeofday.c53 if (tp->tv_sec < 0 || tp->tv_usec < 0 || tp->tv_usec >= MICROSEC) { in settimeofday()
59 if (tp->tv_usec >= (MICROSEC/2)) in settimeofday()
H A Dualarm.c34 new.it_interval.tv_usec = reload % USPS; in ualarm()
37 new.it_value.tv_usec = usecs % USPS; in ualarm()
42 return (old.it_value.tv_sec * USPS + old.it_value.tv_usec); in ualarm()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c344 srandom((int)(clk.tv_sec ^ clk.tv_usec ^ getpid())); in main()
389 age_timer.tv_usec = next_bcast.tv_usec; in main()
392 ifscan_timer.tv_usec = next_bcast.tv_usec; in main()
431 prev_clk.tv_usec == clk.tv_usec+usec_fudge) { in main()
439 clk.tv_usec += ++usec_fudge; in main()
902 tp->tv_usec = random() % 1000000; in intvl_random()
912 if ((t1->tv_usec += t2->tv_usec) >= 1000000) { in timevaladd()
914 t1->tv_usec -= 1000000; in timevaladd()
926 if ((t1->tv_usec = t2->tv_usec - t3->tv_usec) < 0) { in timevalsub()
928 t1->tv_usec += 1000000; in timevalsub()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dmain.c301 if ((t1->tv_usec += t2->tv_usec) > 1000000) { in timevaladd()
303 t1->tv_usec -= 1000000; in timevaladd()
311 if ((t1->tv_usec -= t2->tv_usec) < 0) { in timevalsub()
313 t1->tv_usec += 1000000; in timevalsub()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_xdr.c281 na->na_atime.tv_usec = IXDR_GET_U_INT32(ptr); in xdr_fattr()
299 IXDR_PUT_U_INT32(ptr, na->na_atime.tv_usec); in xdr_fattr()
301 IXDR_PUT_U_INT32(ptr, na->na_mtime.tv_usec); in xdr_fattr()
303 IXDR_PUT_U_INT32(ptr, na->na_ctime.tv_usec); in xdr_fattr()
348 na->na_atime.tv_usec = htonl(na->na_atime.tv_usec); in xdr_fastfattr()
350 na->na_mtime.tv_usec = htonl(na->na_mtime.tv_usec); in xdr_fastfattr()
352 na->na_ctime.tv_usec = htonl(na->na_ctime.tv_usec); in xdr_fastfattr()
1116 na->na_atime.tv_usec = htonl(na->na_atime.tv_usec); in xdr_fastdrok()
1118 na->na_mtime.tv_usec = htonl(na->na_mtime.tv_usec); in xdr_fastdrok()
1120 na->na_ctime.tv_usec = htonl(na->na_ctime.tv_usec); in xdr_fastdrok()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dutimesys.c88 ts[0].tv_nsec = ltimes[0].tv_usec * 1000; in utimes_impl()
90 ts[1].tv_nsec = ltimes[1].tv_usec * 1000; in utimes_impl()
123 ts[0].tv_nsec = ltimes[0].tv_usec * 1000; in futimesat()
125 ts[1].tv_nsec = ltimes[1].tv_usec * 1000; in futimesat()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dtimers.c53 now = tp.tv_sec + 1.e-6*tp.tv_usec; in getnow()
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()
73 tnew.it_interval.tv_usec = 0; in setalarm()
76 t = told.it_value.tv_sec + 1.e-6*told.it_value.tv_usec; in setalarm()
/illumos-gate/usr/src/uts/i86pc/io/
H A Dhrtimers.c199 itv.it_value.tv_usec = cp->hrtc_int.hrt_rem;
201 itv.it_interval.tv_usec = 0;
227 itv.it_value.tv_usec = cp->hrtc_tod.hrt_rem;
229 itv.it_interval.tv_usec = cp->hrtc_int.hrt_rem;
256 delay_ht.hrt_rem = itv.it_value.tv_usec;
322 itv.it_value.tv_usec = 0; in hrt_bsd_cancel()
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_mindex3.cc443 end.tv_usec -= start.tv_usec; in entriesFromLDAPreal()
444 if (end.tv_usec < 0) { in entriesFromLDAPreal()
445 end.tv_usec += 1000000; in entriesFromLDAPreal()
449 1000000*end.tv_sec + end.tv_usec; in entriesFromLDAPreal()
494 end.tv_usec -= start.tv_usec; in entriesFromLDAPreal()
495 if (end.tv_usec < 0) { in entriesFromLDAPreal()
496 end.tv_usec += 1000000; in entriesFromLDAPreal()
500 end.tv_usec; in entriesFromLDAPreal()
895 end.tv_usec -= start.tv_usec; in entriesFromLDAPreal()
896 if (end.tv_usec < 0) { in entriesFromLDAPreal()
[all …]

12345678910>>...14