| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | str_conv.c | 149 struct tm timebuf, timebuf2; in krb5_string_to_timestamp() local 179 timebuf = timebuf2; in krb5_string_to_timestamp() 180 if ((s = strptime(string, atime_format_table[i], &timebuf)) in krb5_string_to_timestamp() 186 if (timebuf.tm_year <= 0) in krb5_string_to_timestamp() 188 ret_time = mktime(&timebuf); in krb5_string_to_timestamp()
|
| /freebsd/sbin/dmesg/ |
| H A D | dmesg.c | 69 char timebuf[1024]; in main() local 245 if (strftime(timebuf, sizeof timebuf, timefmt, in main() 247 printf("[%s]%s", timebuf, q); in main()
|
| /freebsd/usr.sbin/newsyslog/ |
| H A D | ptimes.c | 499 char *timebuf, size_t bufsize) in ptimeget_ctime_rfc5424() argument 509 if (timebuf == NULL) { in ptimeget_ctime_rfc5424() 523 strlcpy(timebuf, NILVALUE, bufsize); in ptimeget_ctime_rfc5424() 524 return (timebuf); in ptimeget_ctime_rfc5424() 543 chars = snprintf(timebuf, bufsize, in ptimeget_ctime_rfc5424() 553 strlcpy(timebuf, NILVALUE, bufsize); in ptimeget_ctime_rfc5424() 556 return (timebuf); in ptimeget_ctime_rfc5424()
|
| H A D | extern.h | 65 char *timebuf, size_t bufsize);
|
| /freebsd/contrib/tcp_wrappers/ |
| H A D | rfc931.c | 43 static jmp_buf timebuf; variable 68 longjmp(timebuf, sig); in timeout() 132 if (setjmp(timebuf) == 0) {
|
| /freebsd/contrib/tcpdump/ |
| H A D | util-print.c | 250 char timebuf[32]; in ts_date_hmsfrac_print() local 280 timestr = nd_format_time(timebuf, sizeof(timebuf), in ts_date_hmsfrac_print() 283 timestr = nd_format_time(timebuf, sizeof(timebuf), in ts_date_hmsfrac_print()
|
| /freebsd/tools/test/gpioevents/ |
| H A D | gpioevents.c | 168 char timebuf[32]; in print_timestamp() local 176 strftime(timebuf, sizeof(timebuf), "%Y-%m-%dT%H:%M:%S", in print_timestamp() 178 printf("%s %s.%09ld ", str, timebuf, ts.tv_nsec); in print_timestamp()
|
| /freebsd/usr.sbin/syslogd/ |
| H A D | syslogd.c | 1939 char timebuf[33], priority_number[5]; in fprintlog_rfc5424() local 1948 if (strftime(timebuf, sizeof(timebuf), "%FT%T.______%z", in fprintlog_rfc5424() 1949 &f->f_lasttime.tm) == sizeof(timebuf) - 2) { in fprintlog_rfc5424() 1951 timebuf[32] = '\0'; in fprintlog_rfc5424() 1952 timebuf[31] = timebuf[30]; in fprintlog_rfc5424() 1953 timebuf[30] = timebuf[29]; in fprintlog_rfc5424() 1954 timebuf[29] = ':'; in fprintlog_rfc5424() 1959 timebuf[i] = usec % 10 + '0'; in fprintlog_rfc5424() 1962 iovlist_append(&il, timebuf); in fprintlog_rfc5424() 1988 char timebuf[RFC3164_DATELEN + 1], facility_number[5], in fprintlog_rfc3164() local [all …]
|
| /freebsd/lib/libdevdctl/ |
| H A D | event.cc | 435 char timebuf[bufsize]; in TimestampEventString() local 440 snprintf(timebuf, bufsize, " timestamp=%" PRId64, in TimestampEventString() 442 eventString.insert(eventEnd, timebuf); in TimestampEventString()
|
| /freebsd/sys/contrib/zstd/programs/ |
| H A D | util.c | 276 struct timespec timebuf[2] = { {0, UTIME_NOW} }; in UTIL_utime() local 277 timebuf[1] = statbuf->st_mtim; in UTIL_utime() 278 ret = utimensat(AT_FDCWD, filename, timebuf, 0); in UTIL_utime() 282 struct utimbuf timebuf; in UTIL_utime() local 283 timebuf.actime = time(NULL); in UTIL_utime() 284 timebuf.modtime = statbuf->st_mtime; in UTIL_utime() 285 ret = utime(filename, &timebuf); in UTIL_utime()
|
| /freebsd/contrib/tnftp/src/ |
| H A D | util.c | 718 struct tm timebuf; in remotemodtime() local 751 memset(&timebuf, 0, sizeof(timebuf)); in remotemodtime() 753 (strptime(timestr, "%Y%m%d%H%M%S", &timebuf) == NULL)) { in remotemodtime() 758 timebuf.tm_isdst = -1; in remotemodtime() 759 rtime = timegm(&timebuf); in remotemodtime()
|
| /freebsd/usr.sbin/makefs/zfs/ |
| H A D | fs.c | 344 uint64_t timebuf[2]; in fs_populate_time() local 348 assert(fs->satab[ind].size == sizeof(timebuf)); in fs_populate_time() 350 timebuf[0] = ts->tv_sec; in fs_populate_time() 351 timebuf[1] = ts->tv_nsec; in fs_populate_time() 352 fs_populate_attr(fs, attrbuf, timebuf, ind, szp); in fs_populate_time()
|
| /freebsd/lib/libfetch/ |
| H A D | http.c | 1587 char timebuf[80]; in http_request_body() local 1672 (void)strftime(timebuf, 80, "%a, %d %b %Y %T GMT", in http_request_body() 1675 fetch_info("If-Modified-Since: %s", timebuf); in http_request_body() 1676 http_cmd(conn, "If-Modified-Since: %s", timebuf); in http_request_body()
|
| /freebsd/crypto/krb5/src/kadmin/cli/ |
| H A D | kadmin.c | 1024 krb5_octet timebuf[4]; in unlock_princ() local 1037 store_32_le((krb5_int32)now, timebuf); in unlock_princ() 1039 KRB5_TL_LAST_ADMIN_UNLOCK, 4, timebuf); in unlock_princ()
|
| /freebsd/sys/contrib/openzfs/cmd/ |
| H A D | ztest.c | 8578 print_time(hrtime_t t, char *timebuf) in print_time() argument 8589 timebuf[0] = '\0'; in print_time() 8592 (void) sprintf(timebuf, in print_time() 8595 (void) sprintf(timebuf, "%lluh%02llum%02llus", h, m, s); in print_time() 8597 (void) sprintf(timebuf, "%llum%02llus", m, s); in print_time() 8599 (void) sprintf(timebuf, "%llus", s); in print_time() 8911 char timebuf[100]; in main() local 9101 print_time(zs->zs_proc_stop - now, timebuf); in main() 9112 (ztest_opts.zo_time * NANOSEC), timebuf); in main() 9124 print_time(zc->zc_time, timebuf); in main() [all …]
|
| /freebsd/contrib/unbound/daemon/ |
| H A D | remote.c | 3060 char timebuf[32]; in do_dump_requestlist() local 3073 get_mesh_age(m, timebuf, sizeof(timebuf), &worker->env); in do_dump_requestlist() 3076 num, (t?t:"TYPE??"), (c?c:"CLASS??"), buf, timebuf, in do_dump_requestlist()
|