Home
last modified time | relevance | path

Searched refs:tmbuf (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/unbound/util/
H A Dlog.c235 char tmbuf[32]; in log_vmsg() local
238 char tmbuf[128], dtbuf[128]; in log_vmsg() local
289 strftime(tmbuf, sizeof(tmbuf), "%Y-%m-%dT%H:%M:%S", tm_p); in log_vmsg()
298 tmbuf, (int)tv.tv_usec/1000, tzbuf, in log_vmsg()
310 if(log_time_asc && strftime(tmbuf, sizeof(tmbuf), "%b %d %H:%M:%S", in log_vmsg()
311 localtime_r(&now, &tm))%(sizeof(tmbuf)) != 0) { in log_vmsg()
313 fprintf(logfile, "%s %s[%d:%x] %s: %s\n", tmbuf, in log_vmsg()
318 tmbuf, sizeo in log_vmsg()
[all...]
/freebsd/contrib/ntp/libntp/
H A Dmktime.c139 static struct tm tmbuf; in mkdst() local
141 tmbuf = *tmp; in mkdst()
142 tmbuf.tm_isdst = 1; in mkdst()
143 tmbuf.tm_min += DSTMINUTES; in mkdst()
144 normalize(&tmbuf.tm_hour, &tmbuf.tm_min, MINSPERHOUR); in mkdst()
145 return &tmbuf; in mkdst()
/freebsd/contrib/libarchive/cpio/test/
H A Dtest_option_t.c22 struct tm tmbuf; in DEFINE_TEST() local
77 tmptr = localtime_s(&tmbuf, &mtime) ? NULL : &tmbuf; in DEFINE_TEST()
79 tmptr = localtime_r(&mtime, &tmbuf); in DEFINE_TEST()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_parse_date.c697 struct tm tmbuf; in Convert() local
724 ltime = localtime_s(&tmbuf, &Julian) ? NULL : &tmbuf; in Convert()
726 ltime = localtime_r(&Julian, &tmbuf); in Convert()
743 struct tm tmbuf; in DSTcorrect() local
746 ltime = localtime_s(&tmbuf, &Start) ? NULL : &tmbuf; in DSTcorrect()
748 ltime = localtime_r(&Start, &tmbuf); in DSTcorrect()
754 ltime = localtime_s(&tmbuf, &Future) ? NULL : &tmbuf; in DSTcorrect()
756 ltime = localtime_r(&Future, &tmbuf); in DSTcorrect()
772 struct tm tmbuf; in RelativeDate() local
777 tm = gmtime_s(&tmbuf, &t) ? NULL : &tmbuf; in RelativeDate()
[all …]
H A Darchive_time.c83 struct tm tmbuf; in unix_to_dos() local
91 t = localtime_s(&tmbuf, &ut) ? NULL : &tmbuf; in unix_to_dos()
93 t = localtime_r(&ut, &tmbuf); in unix_to_dos()
H A Darchive_read_support_format_rar.c1898 struct tm tmbuf; in read_exttime() local
1932 tm = localtime_s(&tmbuf, &t) ? NULL : &tmbuf; in read_exttime()
1934 tm = localtime_r(&t, &tmbuf); in read_exttime()
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dstr_conv.c203 struct tm tmbuf; in krb5_timestamp_to_string() local
207 if (localtime_r(&timestamp2, &tmbuf) == NULL) in krb5_timestamp_to_string()
209 ret = strftime(buffer, buflen, fmt, &tmbuf); in krb5_timestamp_to_string()
222 struct tm tmbuf; in krb5_timestamp_to_sfstring() local
238 tmp = localtime_r(&timestamp2, &tmbuf); in krb5_timestamp_to_sfstring()
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_zip_file.c45 struct tm tmbuf; in DEFINE_TEST() local
65 tm = localtime_s(&tmbuf, &t) ? NULL : &tmbuf; in DEFINE_TEST()
67 tm = localtime_r(&t, &tmbuf); in DEFINE_TEST()
H A Dtest_write_format_zip_file_zip64.c45 struct tm tmbuf; in DEFINE_TEST() local
64 tm = localtime_s(&tmbuf, &t) ? NULL : &tmbuf; in DEFINE_TEST()
66 tm = localtime_r(&t, &tmbuf); in DEFINE_TEST()
H A Dtest_write_format_zip_compression_store.c89 struct tm tmbuf; in verify_uncompressed_contents() local
96 tm = localtime_s(&tmbuf, &now) ? NULL : &tmbuf; in verify_uncompressed_contents()
98 tm = localtime_r(&now, &tmbuf); in verify_uncompressed_contents()
H A Dtest_write_format_zip_compression_zstd.c69 struct tm tmbuf; in verify_zstd_contents() local
76 tm = localtime_s(&tmbuf, &now) ? NULL : &tmbuf; in verify_zstd_contents()
78 tm = localtime_r(&now, &tmbuf); in verify_zstd_contents()
H A Dtest_write_format_zip_compression_bzip2.c69 struct tm tmbuf; in verify_bzip2_contents() local
76 tm = localtime_s(&tmbuf, &now) ? NULL : &tmbuf; in verify_bzip2_contents()
78 tm = localtime_r(&now, &tmbuf); in verify_bzip2_contents()
H A Dtest_write_format_zip_compression_lzmaxz.c70 struct tm tmbuf; in verify_xz_lzma() local
77 tm = localtime_s(&tmbuf, &now) ? NULL : &tmbuf; in verify_xz_lzma()
79 tm = localtime_r(&now, &tmbuf); in verify_xz_lzma()
/freebsd/contrib/libarchive/tar/
H A Dutil.c695 struct tm tmbuf; local
769 ltime = localtime_s(&tmbuf, &tim) ? NULL : &tmbuf;
771 ltime = localtime_r(&tim, &tmbuf);
/freebsd/contrib/libarchive/cpio/
H A Dcpio.c1161 struct tm tmbuf; in list_item_verbose() local
1211 ltime = localtime_s(&tmbuf, &mtime) ? NULL : &tmbuf; in list_item_verbose()
1213 ltime = localtime_r(&mtime, &tmbuf); in list_item_verbose()
/freebsd/contrib/one-true-awk/
H A Drun.c2071 struct tm *tm, tmbuf; in bltin() local
2226 memset(&tmbuf, 0, sizeof(tmbuf)); in bltin()
2227 tm = &tmbuf; in bltin()
/freebsd/contrib/libarchive/test_utils/
H A Dtest_main.c3990 struct tm tmbuf; in main() local
4286 tmptr = localtime_s(&tmbuf, &now) ? NULL : &tmbuf; in main()
4288 tmptr = localtime_r(&now, &tmbuf); in main()
/freebsd/contrib/unbound/daemon/
H A Dremote.c3393 char tmbuf[32]; in do_list_auth_zones() local
3398 if(!strftime(tmbuf, sizeof(tmbuf), "%Y-%m-%dT%H:%M:%S", tm_p)) in do_list_auth_zones()
3399 snprintf(tmbuf, sizeof(tmbuf), "strftime-err-%u", (unsigned)z->soa_zone_acquired); in do_list_auth_zones()
3403 tmbuf); in do_list_auth_zones()