Home
last modified time | relevance | path

Searched refs:timebuf (Results 1 – 11 of 11) sorted by relevance

/freebsd-13.1/usr.sbin/newsyslog/
H A Dptimes.c497 char *timebuf, size_t bufsize) in ptimeget_ctime_rfc5424() argument
507 if (timebuf == NULL) { in ptimeget_ctime_rfc5424()
521 strlcpy(timebuf, NILVALUE, bufsize); in ptimeget_ctime_rfc5424()
522 return (timebuf); in ptimeget_ctime_rfc5424()
541 chars = snprintf(timebuf, bufsize, in ptimeget_ctime_rfc5424()
551 strlcpy(timebuf, NILVALUE, bufsize); in ptimeget_ctime_rfc5424()
554 return (timebuf); in ptimeget_ctime_rfc5424()
H A Dextern.h66 char *timebuf, size_t bufsize);
/freebsd-13.1/contrib/tcp_wrappers/
H A Drfc931.c43 static jmp_buf timebuf; variable
71 longjmp(timebuf, sig); in timeout()
138 if (setjmp(timebuf) == 0) {
/freebsd-13.1/tools/test/gpioevents/
H A Dgpioevents.c166 char timebuf[32]; in print_timestamp() local
174 strftime(timebuf, sizeof(timebuf), "%Y-%m-%dT%H:%M:%S", in print_timestamp()
176 printf("%s %s.%09ld ", str, timebuf, ts.tv_nsec); in print_timestamp()
/freebsd-13.1/usr.sbin/syslogd/
H A Dsyslogd.c2003 if (strftime(timebuf, sizeof(timebuf), "%FT%T.______%z", in fprintlog_rfc5424()
2006 timebuf[32] = '\0'; in fprintlog_rfc5424()
2007 timebuf[31] = timebuf[30]; in fprintlog_rfc5424()
2008 timebuf[30] = timebuf[29]; in fprintlog_rfc5424()
2009 timebuf[29] = ':'; in fprintlog_rfc5424()
2017 iovlist_append(&il, timebuf); in fprintlog_rfc5424()
2047 if (strftime(timebuf, sizeof(timebuf), RFC3164_DATEFMT, in fprintlog_rfc3164()
2049 timebuf[0] = '\0'; in fprintlog_rfc3164()
2060 iovlist_append(&il, timebuf); in fprintlog_rfc3164()
2074 iovlist_append(&il, timebuf); in fprintlog_rfc3164()
[all …]
/freebsd-13.1/sys/contrib/zstd/programs/
H A Dutil.c178 struct timespec timebuf[2] = { {0, UTIME_NOW} }; in UTIL_setFileStat() local
179 timebuf[1] = statbuf->st_mtim; in UTIL_setFileStat()
180 res += utimensat(AT_FDCWD, filename, timebuf, 0); in UTIL_setFileStat()
184 struct utimbuf timebuf; in UTIL_setFileStat() local
185 timebuf.actime = time(NULL); in UTIL_setFileStat()
186 timebuf.modtime = statbuf->st_mtime; in UTIL_setFileStat()
187 res += utime(filename, &timebuf); in UTIL_setFileStat()
/freebsd-13.1/lib/libdevdctl/
H A Devent.cc438 char timebuf[bufsize]; in TimestampEventString() local
443 snprintf(timebuf, bufsize, " timestamp=%" PRId64, in TimestampEventString()
445 eventString.insert(eventEnd, timebuf); in TimestampEventString()
/freebsd-13.1/contrib/tnftp/src/
H A Dutil.c718 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-13.1/lib/libfetch/
H A Dhttp.c1591 char timebuf[80]; in http_request_body() local
1676 (void)strftime(timebuf, 80, "%a, %d %b %Y %T GMT", in http_request_body()
1679 fetch_info("If-Modified-Since: %s", timebuf); in http_request_body()
1680 http_cmd(conn, "If-Modified-Since: %s", timebuf); in http_request_body()
/freebsd-13.1/sys/contrib/openzfs/cmd/ztest/
H A Dztest.c7634 print_time(hrtime_t t, char *timebuf) in print_time() argument
7645 timebuf[0] = '\0'; in print_time()
7648 (void) sprintf(timebuf, in print_time()
7651 (void) sprintf(timebuf, "%lluh%02llum%02llus", h, m, s); in print_time()
7653 (void) sprintf(timebuf, "%llum%02llus", m, s); in print_time()
7655 (void) sprintf(timebuf, "%llus", s); in print_time()
7944 char timebuf[100]; in main() local
8133 print_time(zs->zs_proc_stop - now, timebuf); in main()
8144 (ztest_opts.zo_time * NANOSEC), timebuf); in main()
8156 print_time(zc->zc_time, timebuf); in main()
[all …]
/freebsd-13.1/contrib/unbound/daemon/
H A Dremote.c2427 char timebuf[32]; in do_dump_requestlist() local
2440 get_mesh_age(m, timebuf, sizeof(timebuf), &worker->env); in do_dump_requestlist()
2443 num, (t?t:"TYPE??"), (c?c:"CLASS??"), buf, timebuf, in do_dump_requestlist()