Home
last modified time | relevance | path

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

/freebsd/usr.sbin/newsyslog/
H A Dptimes.c499 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 Dextern.h65 char *timebuf, size_t bufsize);
/freebsd/contrib/tcp_wrappers/
H A Drfc931.c43 static jmp_buf timebuf; variable
68 longjmp(timebuf, sig); in timeout()
132 if (setjmp(timebuf) == 0) {
/freebsd/contrib/tcpdump/
H A Dutil-print.c244 char timebuf[32]; in ts_date_hmsfrac_print() local
258 timestr = nd_format_time(timebuf, sizeof(timebuf), in ts_date_hmsfrac_print()
261 timestr = nd_format_time(timebuf, sizeof(timebuf), in ts_date_hmsfrac_print()
/freebsd/tools/test/gpioevents/
H A Dgpioevents.c168 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 Dsyslogd.c1941 char timebuf[33], priority_number[5]; in fprintlog_rfc5424() local
1950 if (strftime(timebuf, sizeof(timebuf), "%FT%T.______%z", in fprintlog_rfc5424()
1951 &f->f_lasttime.tm) == sizeof(timebuf) - 2) { in fprintlog_rfc5424()
1953 timebuf[32] = '\0'; in fprintlog_rfc5424()
1954 timebuf[31] = timebuf[30]; in fprintlog_rfc5424()
1955 timebuf[30] = timebuf[29]; in fprintlog_rfc5424()
1956 timebuf[29] = ':'; in fprintlog_rfc5424()
1961 timebuf[i] = usec % 10 + '0'; in fprintlog_rfc5424()
1964 iovlist_append(&il, timebuf); in fprintlog_rfc5424()
1990 char timebuf[RFC3164_DATELEN + 1], facility_number[5], in fprintlog_rfc3164() local
[all …]
/freebsd/sys/contrib/zstd/programs/
H A Dutil.c172 struct timespec timebuf[2] = { {0, UTIME_NOW} }; in UTIL_utime() local
173 timebuf[1] = statbuf->st_mtim; in UTIL_utime()
174 ret = utimensat(AT_FDCWD, filename, timebuf, 0); in UTIL_utime()
176 struct utimbuf timebuf; in UTIL_utime() local
177 timebuf.actime = time(NULL); in UTIL_utime()
178 timebuf.modtime = statbuf->st_mtime; in UTIL_utime()
179 ret = utime(filename, &timebuf); in UTIL_utime()
/freebsd/lib/libdevdctl/
H A Devent.cc435 char timebuf[bufsize]; in TimestampEventString() local
440 snprintf(timebuf, bufsize, " timestamp=%" PRId64, in TimestampEventString()
442 eventString.insert(eventEnd, timebuf); in TimestampEventString()
/freebsd/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/usr.sbin/makefs/zfs/
H A Dfs.c343 uint64_t timebuf[2]; in fs_populate_time() local
347 assert(fs->satab[ind].size == sizeof(timebuf)); in fs_populate_time()
349 timebuf[0] = ts->tv_sec; in fs_populate_time()
350 timebuf[1] = ts->tv_nsec; in fs_populate_time()
351 fs_populate_attr(fs, attrbuf, timebuf, ind, szp); in fs_populate_time()
/freebsd/lib/libfetch/
H A Dhttp.c1587 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/sys/contrib/openzfs/cmd/
H A Dztest.c8563 print_time(hrtime_t t, char *timebuf) in print_time() argument
8574 timebuf[0] = '\0'; in print_time()
8577 (void) sprintf(timebuf, in print_time()
8580 (void) sprintf(timebuf, "%lluh%02llum%02llus", h, m, s); in print_time()
8582 (void) sprintf(timebuf, "%llum%02llus", m, s); in print_time()
8584 (void) sprintf(timebuf, "%llus", s); in print_time()
8895 char timebuf[100]; in main() local
9085 print_time(zs->zs_proc_stop - now, timebuf); in main()
9096 (ztest_opts.zo_time * NANOSEC), timebuf); in main()
9108 print_time(zc->zc_time, timebuf); in main()
[all …]
/freebsd/contrib/unbound/daemon/
H A Dremote.c2636 char timebuf[32]; in do_dump_requestlist() local
2649 get_mesh_age(m, timebuf, sizeof(timebuf), &worker->env); in do_dump_requestlist()
2652 num, (t?t:"TYPE??"), (c?c:"CLASS??"), buf, timebuf, in do_dump_requestlist()