/dragonfly/sys/sys/ |
H A D | time.h | 49 (ts)->tv_sec = (tv)->tv_sec; \ 54 (tv)->tv_sec = (ts)->tv_sec; \ 74 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 76 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 79 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ 88 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ 101 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 103 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 114 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 117 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ [all …]
|
/dragonfly/contrib/tcpdump/ |
H A D | timeval-operations.h | 36 #define netdissect_timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) 38 #define netdissect_timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 41 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 43 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 47 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 51 (vvp)->tv_sec++; \ 56 (vvp)->tv_sec++; \ 64 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 67 (vvp)->tv_sec--; \
|
/dragonfly/sbin/routed/ |
H A D | main.c | 336 if (prev_clk.tv_sec == clk.tv_sec in main() 351 || t2.tv_sec > wtime.tv_sec + 5) { in main() 392 flush_kern_timer.tv_sec = (now.tv_sec in main() 439 && no_flash.tv_sec+MIN_WAITTIME < next_bcast.tv_sec) { in main() 522 ifinit_timer.tv_sec = now.tv_sec; in sigalrm() 744 if (next_bcast.tv_sec < now.tv_sec+MIN_WAITTIME) in rip_on() 745 next_bcast.tv_sec = now.tv_sec+MIN_WAITTIME; in rip_on() 751 ifinit_timer.tv_sec = now.tv_sec; in rip_on() 798 t1->tv_sec += t2->tv_sec; in timevaladd() 800 t1->tv_sec++; in timevaladd() [all …]
|
/dragonfly/usr.sbin/rtadvd/ |
H A D | timer_subr.h | 36 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 38 ((tsp)->tv_sec cmp (usp)->tv_sec)) 41 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ 44 (vsp)->tv_sec++; \ 50 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ 53 (vsp)->tv_sec--; \
|
/dragonfly/sys/kern/ |
H A D | kern_clock.c | 510 nbt->tv_sec = ts->tv_sec - nbt->tv_sec; in set_timeofday() 530 boottime.tv_sec = nbt->tv_sec; in set_timeofday() 928 (tv.tv_sec - stv->tv_sec) * 1000000; in statclock() 1386 ++tvp->tv_sec; in getmicrouptime() 1472 tvp->tv_sec = ts.tv_sec; in getmicrotime() 1521 tsp->tv_sec += nbt->tv_sec; in getnanotime_nbt() 1525 ++tsp->tv_sec; in getnanotime_nbt() 1550 tvp->tv_sec += bt->tv_sec; in microtime() 1578 tsp->tv_sec += bt->tv_sec; in nanotime() 1769 ts.tv_sec += bt->tv_sec; in pps_event() [all …]
|
H A D | kern_time.c | 135 if (tv1.tv_sec > maxtime.tv_sec) in settime() 140 tv->tv_sec = maxtime.tv_sec - 1; in settime() 144 if (tv1.tv_sec == laststep.tv_sec) { in settime() 149 tv->tv_sec = tv1.tv_sec + 1; in settime() 156 ts.tv_sec = tv->tv_sec; in settime() 328 ts->tv_sec = 0; in kern_clock_getres() 352 ts->tv_sec = 1; in kern_clock_getres() 1140 t1->tv_sec += t2->tv_sec; in timevaladd() 1149 t1->tv_sec -= t2->tv_sec; in timevalsub() 1159 t1->tv_sec--; in timevalfix() [all …]
|
H A D | subr_fattime.c | 145 t1 = tsp->tv_sec; in timespec2fattime() 226 tsp->tv_sec = (dt & 0x1f) << 1; in fattime2timespec() 229 tsp->tv_sec += dh / 100; in fattime2timespec() 251 tsp->tv_sec += DAY * day; in fattime2timespec() 275 ts.tv_sec = random(); in main() 276 } while (ts.tv_sec < T1980 * 86400); in main() 281 gmtime_r(&ts.tv_sec, &tm); in main() 285 a = ts.tv_sec + ts.tv_nsec * 1e-9; in main() 297 ts.tv_sec = ts.tv_nsec = 0; in main() 300 gmtime_r(&ts.tv_sec, &tm); in main() [all …]
|
/dragonfly/usr.sbin/rtsold/ |
H A D | rtsold.c | 73 #define TIMEVAL_LT(a, b) (((a).tv_sec < (b).tv_sec) ||\ 74 (((a).tv_sec == (b).tv_sec) && \ 78 #define TIMEVAL_LEQ(a, b) (((a).tv_sec < (b).tv_sec) ||\ 79 (((a).tv_sec == (b).tv_sec) &&\ 83 #define TIMEVAL_EQ(a, b) (((a).tv_sec==(b).tv_sec) && ((a).tv_usec==(b).tv_usec)) 589 ifinfo->timer.tv_sec = 1; in rtsol_timer_update() 594 ifinfo->timer.tv_sec = 3; in rtsol_timer_update() 660 result->tv_sec = a->tv_sec + b->tv_sec; in TIMEVAL_ADD() 664 result->tv_sec = a->tv_sec + b->tv_sec + 1; in TIMEVAL_ADD() 679 result->tv_sec = a->tv_sec - b->tv_sec; in TIMEVAL_SUB() [all …]
|
/dragonfly/sys/dev/drm/include/linux/ |
H A D | time.h | 51 tv.tv_sec = 0; in ns_to_timeval() 56 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval() 59 tv.tv_sec--; in ns_to_timeval() 69 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns() 89 ts->tv_sec = sec; in set_normalized_timespec() 96 return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec); in timespec_to_ns() 106 ts.tv_sec = 0; in ns_to_timespec() 111 ts.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timespec() 114 ts.tv_sec--; in ns_to_timespec() 124 if (ts->tv_sec < 0 || ts->tv_sec > 100000000 || in timespec_valid()
|
/dragonfly/usr.sbin/dntpd/ |
H A D | convert.c | 42 tvp->tv_sec = fixed->int_partl - JAN_1970; in l_fixedpt_to_tv() 57 tvp->tv_sec -= (-tvp->tv_usec + 999999) / 1000000; in tv_subtract_micro() 74 tvp->tv_sec += tvp->tv_usec / 1000000; in tv_add_micro() 86 tvp->tv_sec += (long)offset; in tv_add_offset() 99 usec = (double)(tv2->tv_sec - tv1->tv_sec) + in tv_delta_double() 107 ts->tv_sec = tv->tv_sec; in tv_to_ts() 114 tv->tv_sec = ts->tv_sec; in ts_to_tv()
|
/dragonfly/tools/tools/crypto/ |
H A D | cryptostats.c | 49 avg = (1000000000LL*ts->acc.tv_sec + ts->acc.tv_nsec) / ts->count; in printt() 50 min = 1000000000LL*ts->min.tv_sec + ts->min.tv_nsec; in printt() 51 max = 1000000000LL*ts->max.tv_sec + ts->max.tv_nsec; in printt() 71 stats.cs_invoke.min.tv_sec = 10000; in main() 72 stats.cs_done.min.tv_sec = 10000; in main() 73 stats.cs_cb.min.tv_sec = 10000; in main() 74 stats.cs_finis.min.tv_sec = 10000; in main() 81 stats.cs_invoke.min.tv_sec = 10000; in main() 82 stats.cs_done.min.tv_sec = 10000; in main() 83 stats.cs_cb.min.tv_sec = 10000; in main() [all …]
|
/dragonfly/bin/ls/ |
H A D | cmp.c | 60 if (b->fts_statp->st_mtimespec.tv_sec > in modcmp() 61 a->fts_statp->st_mtimespec.tv_sec) in modcmp() 63 if (b->fts_statp->st_mtimespec.tv_sec < in modcmp() 64 a->fts_statp->st_mtimespec.tv_sec) in modcmp() 84 if (b->fts_statp->st_atimespec.tv_sec > in acccmp() 85 a->fts_statp->st_atimespec.tv_sec) in acccmp() 87 if (b->fts_statp->st_atimespec.tv_sec < in acccmp() 88 a->fts_statp->st_atimespec.tv_sec) in acccmp() 126 if (b->fts_statp->st_ctimespec.tv_sec > in statcmp() 127 a->fts_statp->st_ctimespec.tv_sec) in statcmp() [all …]
|
/dragonfly/lib/libc/isc/ |
H A D | ev_timers.c | 72 x.tv_sec = sec; in evConsTime() 81 x.tv_sec = addend1.tv_sec + addend2.tv_sec; in evAddTime() 84 x.tv_sec++; in evAddTime() 94 x.tv_sec = minuend.tv_sec - subtrahend.tv_sec; in evSubTime() 99 x.tv_sec--; in evSubTime() 106 long x = a.tv_sec - b.tv_sec; in evCmpTime() 158 ts.tv_sec = tv.tv_sec; in evTimeSpec() 167 tv.tv_sec = ts.tv_sec; in evTimeVal() 188 (long)due.tv_sec, due.tv_nsec, in evSetTimer() 189 (long)inter.tv_sec, inter.tv_nsec); in evSetTimer() [all …]
|
/dragonfly/contrib/nvi2/common/ |
H A D | util.h | 68 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0) 69 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) 71 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 73 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 76 (vvp)->tv_sec += (uvp)->tv_sec; \ 79 (vvp)->tv_sec++; \ 85 (vvp)->tv_sec -= (uvp)->tv_sec; \ 88 (vvp)->tv_sec--; \
|
/dragonfly/contrib/binutils-2.27/libiberty/ |
H A D | timeval-utils.c | 56 result->tv_sec = a->tv_sec + b->tv_sec; in timeval_add() 60 ++result->tv_sec; in timeval_add() 80 result->tv_sec = a->tv_sec - b->tv_sec; in timeval_sub() 84 --result->tv_sec; in timeval_sub()
|
/dragonfly/contrib/binutils-2.34/libiberty/ |
H A D | timeval-utils.c | 56 result->tv_sec = a->tv_sec + b->tv_sec; in timeval_add() 60 ++result->tv_sec; in timeval_add() 80 result->tv_sec = a->tv_sec - b->tv_sec; in timeval_sub() 84 --result->tv_sec; in timeval_sub()
|
/dragonfly/contrib/gdb-7/libiberty/ |
H A D | timeval-utils.c | 56 result->tv_sec = a->tv_sec + b->tv_sec; in timeval_add() 60 ++result->tv_sec; in timeval_add() 80 result->tv_sec = a->tv_sec - b->tv_sec; in timeval_sub() 84 --result->tv_sec; in timeval_sub()
|
/dragonfly/contrib/gcc-4.7/libiberty/ |
H A D | timeval-utils.c | 56 result->tv_sec = a->tv_sec + b->tv_sec; in timeval_add() 60 ++result->tv_sec; in timeval_add() 80 result->tv_sec = a->tv_sec - b->tv_sec; in timeval_sub() 84 --result->tv_sec; in timeval_sub()
|
/dragonfly/contrib/gcc-8.0/libiberty/ |
H A D | timeval-utils.c | 56 result->tv_sec = a->tv_sec + b->tv_sec; in timeval_add() 60 ++result->tv_sec; in timeval_add() 80 result->tv_sec = a->tv_sec - b->tv_sec; in timeval_sub() 84 --result->tv_sec; in timeval_sub()
|
/dragonfly/crypto/openssh/ |
H A D | defines.h | 507 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 518 (ts)->tv_sec = (tv)->tv_sec; \ 525 (tv)->tv_sec = (ts)->tv_sec; \ 532 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 534 ((tsp)->tv_sec cmp (usp)->tv_sec)) 543 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 545 ((tsp)->tv_sec cmp (usp)->tv_sec)) 550 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ 553 (vsp)->tv_sec++; \ 561 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ [all …]
|
/dragonfly/usr.bin/time/ |
H A D | time.c | 157 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) + in main() 247 after->tv_sec -= before->tv_sec; in showtime() 250 after->tv_sec--, after->tv_nsec += 1000000000L; in showtime() 257 (intmax_t)after->tv_sec, decimal_point, in showtime() 260 (intmax_t)ru->ru_utime.tv_sec, decimal_point, in showtime() 263 (intmax_t)ru->ru_stime.tv_sec, decimal_point, in showtime() 266 humantime(out, after->tv_sec, after->tv_nsec/10000000); in showtime() 268 humantime(out, ru->ru_utime.tv_sec, ru->ru_utime.tv_usec/10000); in showtime() 274 (intmax_t)after->tv_sec, decimal_point, in showtime() 277 (intmax_t)ru->ru_utime.tv_sec, decimal_point, in showtime() [all …]
|
/dragonfly/contrib/diffutils/lib/ |
H A D | timespec.h | 57 r.tv_sec = s; in make_timespec() 91 if (a.tv_sec < b.tv_sec) in timespec_cmp() 93 if (a.tv_sec > b.tv_sec) in timespec_cmp() 109 return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec; in timespec_sign() 123 return a.tv_sec + a.tv_nsec / 1e9; in timespectod()
|
/dragonfly/contrib/lvm2/dist/lib/misc/ |
H A D | timestamp.c | 64 if(t1->t.tv_sec < t2->t.tv_sec) in cmp_timestamp() 66 if(t1->t.tv_sec > t2->t.tv_sec) in cmp_timestamp() 113 if(t1->t.tv_sec < t2->t.tv_sec) in cmp_timestamp() 115 if(t1->t.tv_sec > t2->t.tv_sec) in cmp_timestamp()
|
/dragonfly/usr.bin/rup/ |
H A D | rup.c | 113 if (sizeof(time_t) == sizeof(host_stat->curtime.tv_sec)) { in rstat_reply() 114 tmp_time = localtime((time_t *)&host_stat->curtime.tv_sec); in rstat_reply() 117 host_stat->curtime.tv_sec -= host_stat->boottime.tv_sec; in rstat_reply() 119 tmp_time = gmtime((time_t *)&host_stat->curtime.tv_sec); in rstat_reply() 123 tmp_time_t = host_stat->curtime.tv_sec; in rstat_reply() 127 host_stat->curtime.tv_sec -= host_stat->boottime.tv_sec; in rstat_reply() 129 tmp_time_t = host_stat->curtime.tv_sec; in rstat_reply() 134 #define updays (host_stat->curtime.tv_sec / 86400) in rstat_reply() 147 else if (host_stat->curtime.tv_sec < 60) in rstat_reply() 189 tv.tv_sec = 15; /* XXX ??? */ in onehost()
|
/dragonfly/contrib/libpcap/ |
H A D | portability.h | 126 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 129 ++(result)->tv_sec; \ 137 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 140 --(result)->tv_sec; \
|