Home
last modified time | relevance | path

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

/freebsd/contrib/ntp/util/
H A Djitter.c20 #define JAN_1970 2208988800UL /* Unix base epoch */ macro
107 now->l_i = ts.tv_sec + JAN_1970; in get_systime()
117 now->l_i = tv.tv_sec + JAN_1970; in get_systime()
H A Dntptime.c309 ts.l_ui += JAN_1970; in main()
H A Dntp-keygen.c371 fstamp = (u_int)(epoch + JAN_1970); in main()
2001 ASN1_INTEGER_set(serial, (long)epoch + JAN_1970); in x509()
2146 return (mktime(&tm) + JAN_1970); in cb()
/freebsd/contrib/tcpdump/
H A Dntp.c29 #define JAN_1970 INT64_T_CONSTANT(2208988800) /* 1970 - 1900 in seconds */ macro
53 int64_t seconds_64bit = (int64_t)i - JAN_1970; in p_ntp_time()
H A Dprint-zep.c58 #define JAN_1970 2208988800U macro
82 time_t seconds = i - JAN_1970; in zep_print_ts()
/freebsd/contrib/ntp/sntp/tests/
H A DpacketHandling.c54 xmt.tv_sec += JAN_1970; in test_GenerateUnauthenticatedPacket()
99 xmt.tv_sec = JAN_1970; in test_GenerateAuthenticatedPacket()
170 dst.tv_sec -= JAN_1970; in test_OffsetCalculationNegativeOffset()
217 dst.tv_sec -= JAN_1970; in test_HandleUnusableServer()
/freebsd/contrib/ntp/libntp/
H A Duglydate.c27 sec = ts->l_ui - JAN_1970; in uglydate()
H A Dntp_calendar.c587 ntp -= (uint32_t)JAN_1970; /* warp into UN*X domain */ in ntpcal_ntp_to_time()
600 ntp -= (uint32_t)JAN_1970; /* warp into UN*X domain */ in ntpcal_ntp_to_time()
636 res.Q_s += (uint32_t)JAN_1970; /* warp into NTP domain */ in ntpcal_ntp_to_ntp()
649 M_ADD(res.D_s.hi, res.D_s.lo, 0, (uint32_t)JAN_1970);/*into NTP */ in ntpcal_ntp_to_ntp()
/freebsd/contrib/ntp/include/
H A Dntp_unixtime.h45 #define JAN_1970 ((u_int)NTP_TO_UNIX_DAYS * (u_int)SECSPERDAY) macro
H A Dtimespecops.h206 y.l_ui += JAN_1970; in tspec_stamp_to_lfp()
H A Dtimevalops.h372 y.l_ui += JAN_1970; in tval_stamp_to_lfp()
/freebsd/contrib/ntp/clockstuff/
H A Dchutest.c320 ts.l_ui += JAN_1970; in raw_filter()
364 ts.l_ui += JAN_1970; in process_ldisc()
702 tmp = chuc->codetimes[i].tv_sec + JAN_1970; in chufilter()
/freebsd/contrib/ntp/libparse/
H A Dclk_trimtsip.c284 clock_time->utctime = gpstime.l_ui - JAN_1970; in cvt_trimtsip()
H A Dparse.c735 parseio->parse_dtime.parse_time.fp.l_ui = (uint32_t) (t + JAN_1970); in timepacket()
/freebsd/contrib/ntp/sntp/
H A Dmain.c677 tv_xmt.tv_sec += JAN_1970; in xmt()
687 spkt->stime = tv_xmt.tv_sec - JAN_1970; in xmt()
1347 dst.l_ui += JAN_1970; in offset_calculation()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_mx4200.c1547 (u_int32) JAN_1970; in mx4200_pps()
H A Dntp_refclock.c1597 pp->lastrec.l_ui = (u_int32)ap->ts.tv_sec + JAN_1970; in refclock_pps()
H A Drefclock_parse.c2250 parse->parseio.parse_dtime.parse_ptime.fp.l_ui = (uint32_t) (pts.tv_sec + JAN_1970); in local_input()
2311 tstmp.l_ui += JAN_1970; in local_input()
H A Drefclock_oncore.c1790 ts.l_ui += JAN_1970; in oncore_get_timestamp()
H A Dntp_crypto.c1903 uint32_t nowntp = (uint32_t)now + JAN_1970; in crypto_update()
H A Dntp_io.c3436 nts.l_i = pbt.sec + JAN_1970;
H A Drefclock_ripencc.c750 tstmp.l_ui = ts.tv_sec + JAN_1970; in ripencc_get_pps_ts()
H A Dntp_control.c1728 time_t fstamp = (time_t)uval - JAN_1970; in ctl_putfs()
/freebsd/contrib/ntp/
H A DCommitLog-4.1.0262 * ntpd/refclock_shm.c (shm_poll): Apply JAN_1970 correction after
H A DCommitLog[all...]