/netbsd/external/bsd/ntp/dist/tests/libntp/ |
H A D | clocktime.c | 60 const int yday=175, hour=12, minute=50, second=0, tzoff=0; in test_CurrentYear() local 65 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, in test_CurrentYear() 86 const int yday=175, hour=12, minute=0, second=0, tzoff=0; in test_CurrentYearFuzz() local 91 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, in test_CurrentYearFuzz() 110 const int yday=175, hour=4, minute=0, second=0, tzoff=8; in test_TimeZoneOffset() local 131 const int yday=2, hour=11, minute=0, second=0, tzoff=0; in test_WrongYearStart() local 152 const int yday=365, hour=23, minute=0, second=0, tzoff=0; in test_PreviousYear() local 173 const int yday=1, hour=1, minute=0, second=0, tzoff=0; in test_NextYear() local 177 TEST_ASSERT_TRUE(clocktime(yday, hour, minute, second, tzoff, in test_NextYear() 190 const int yday=100, hour=12, minute=0, second=0, tzoff=0; in test_NoReasonableConversion() local [all …]
|
/netbsd/external/bsd/ntp/dist/ntpd/ |
H A D | refclock_datum.c | 150 int tzoff; /* time zone offest from GMT */ member 497 int tzoff; in datum_pts_receive() local 604 tzoff = 0; /* set time zone offset to 0 */ in datum_pts_receive() 622 for (tzoff=0; tzoff<24; tzoff++) { in datum_pts_receive() 627 (tzoff + datum_pts->tzoff) % 24, in datum_pts_receive() 636 printf("Time Zone (clocktime method) = %d, error = %d\n", tzoff, error); in datum_pts_receive() 640 tzoff = (tzoff + datum_pts->tzoff) % 24; in datum_pts_receive() 641 datum_pts->tzoff = tzoff; in datum_pts_receive() 645 printf("Time Zone found (clocktime method) = %d\n",tzoff); in datum_pts_receive() 668 tzoff, in datum_pts_receive() [all …]
|
/netbsd/tests/lib/libutil/ |
H A D | t_parsedate.c | 247 int tzoff; in ATF_TC_BODY() local 273 tzoff = -60; /* British Summer Time */ in ATF_TC_BODY() 274 parsecheck("14:00", &t, &tzoff, localtime_r, in ATF_TC_BODY() 486 int tzoff; in ATF_TC_BODY() local 496 tzoff = 0; in ATF_TC_BODY() 497 ATF_CHECK(parsedate("@0", NULL, &tzoff) == (time_t)0); in ATF_TC_BODY() 498 tzoff = 3600; in ATF_TC_BODY() 499 ATF_CHECK(parsedate("@0", NULL, &tzoff) == (time_t)0); in ATF_TC_BODY() 500 tzoff = -3600; in ATF_TC_BODY() 501 ATF_CHECK(parsedate("@0", NULL, &tzoff) == (time_t)0); in ATF_TC_BODY() [all …]
|
/netbsd/lib/libutil/compat/ |
H A D | compat_parsedate.c | 54 parsedate(const char *str, const int32_t *t50, const int *tzoff) in parsedate() argument 59 return (int32_t)__parsedate50(str, t50 ? &t : NULL, tzoff); in parsedate()
|
/netbsd/external/bsd/ntp/dist/libntp/ |
H A D | clocktime.c | 59 int tzoff , /* hours west of GMT */ in clocktime() argument 75 MINSPERHR * ((int32)hour + (int32)tzoff + in clocktime()
|
/netbsd/external/bsd/libpcap/dist/ |
H A D | sf-pcap.c | 257 p->tzoff = hdr.thiszone; in pcap_check_header() 777 if (sf_write_header(p, f, linktype, p->tzoff, p->snapshot) == -1) { in pcap_setup_dump() 1065 if (sf_write_header(p, f, linktype, p->tzoff, p->snapshot) == -1) { in pcap_dump_open_append()
|
H A D | rpcap-protocol.h | 262 int32 tzoff; /* Timezone offset */ member
|
H A D | pcap-int.h | 206 int tzoff; /* timezone offset */ member
|
H A D | pcap-rpcap-unix.c | 320 p->tzoff = get32(&reply_buf[4]); in rpcap_send_request_open()
|
H A D | sf-pcapng.c | 1042 p->tzoff = 0; /* XXX - not used in pcap */ in pcap_ng_check_header()
|
H A D | pcap-rpcap.c | 2282 fp->tzoff = ntohl(openreply.tzoff); in pcap_open_rpcap()
|
/netbsd/dist/pf/sbin/pflogd/ |
H A D | pflogd.c | 352 hdr.thiszone = hpcap->tzoff; in try_reset_dump()
|
/netbsd/external/mpl/dhcp/dist/common/ |
H A D | parse.c | 952 int tzoff, year, mon, mday, hour, min, sec; local 1109 tzoff = 0; 1113 tzoff = atoi(val); 1138 min) * 60) + sec + tzoff;
|
/netbsd/external/bsd/libpcap/dist/rpcapd/ |
H A D | daemon.c | 1595 openreply->tzoff = 0; /* This is always 0 for live captures */ in daemon_msg_open_req()
|