| /freebsd/contrib/unbound/util/ |
| H A D | log.c | 235 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 D | mktime.c | 139 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 D | test_option_t.c | 22 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 D | archive_parse_date.c | 697 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 D | archive_time.c | 83 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 D | archive_read_support_format_rar.c | 1898 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 D | str_conv.c | 203 struct tm tmbuf; in krb5_timestamp_to_string() local 207 if (localtime_r(×tamp2, &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(×tamp2, &tmbuf); in krb5_timestamp_to_sfstring()
|
| /freebsd/contrib/libarchive/libarchive/test/ |
| H A D | test_write_format_zip_file.c | 45 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 D | test_write_format_zip_file_zip64.c | 45 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 D | test_write_format_zip_compression_store.c | 89 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 D | test_write_format_zip_compression_zstd.c | 69 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 D | test_write_format_zip_compression_bzip2.c | 69 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 D | test_write_format_zip_compression_lzmaxz.c | 70 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 D | util.c | 695 struct tm tmbuf; local 769 ltime = localtime_s(&tmbuf, &tim) ? NULL : &tmbuf; 771 ltime = localtime_r(&tim, &tmbuf);
|
| /freebsd/contrib/libarchive/cpio/ |
| H A D | cpio.c | 1161 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 D | run.c | 2071 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 D | test_main.c | 3990 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 D | remote.c | 3393 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()
|