Home
last modified time | relevance | path

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

/src/usr.bin/lam/
H A Dlam.c110 static char fmtbuf[BUFSIZ]; in getargs() local
111 char *fmtp = fmtbuf; in getargs()
163 if (fmtp >= fmtbuf + sizeof(fmtbuf)) in getargs()
168 if (snprintf(fmtp, fmtbuf + sizeof(fmtbuf) - fmtp, "%%%ss", p) in getargs()
169 >= fmtbuf + sizeof(fmtbuf) - fmtp) in getargs()
/src/crypto/openssh/
H A Dlog.c346 char fmtbuf[MSGBUFSIZ]; in do_log() local
391 snprintf(fmtbuf, sizeof(fmtbuf), "%s: %s", txt, fmt); in do_log()
392 vsnprintf(msgbuf, sizeof(msgbuf), fmtbuf, args); in do_log()
397 snprintf(fmtbuf, sizeof(fmtbuf), "%s: %s", msgbuf, suffix); in do_log()
398 strlcpy(msgbuf, fmtbuf, sizeof(msgbuf)); in do_log()
400 strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), in do_log()
406 tmp_handler(level, force, fmtbuf, log_handler_ctx); in do_log()
412 (int)sizeof msgbuf - 3, fmtbuf); in do_log()
417 syslog_r(pri, &sdata, "%.500s", fmtbuf); in do_log()
421 syslog(pri, "%.500s", fmtbuf); in do_log()
/src/sbin/dhclient/
H A Doptions.c637 char fmtbuf[32], *op = optbuf; in pretty_print_option() local
661 fmtbuf[i] = dhcp_options[code].format[i]; in pretty_print_option()
665 fmtbuf[i] = 0; in pretty_print_option()
674 fmtbuf[i] = 't'; in pretty_print_option()
677 fmtbuf[i] = 'x'; in pretty_print_option()
682 fmtbuf[i + 1] = 0; in pretty_print_option()
685 fmtbuf[i] = 't'; in pretty_print_option()
686 fmtbuf[i + 1] = 0; in pretty_print_option()
740 switch (fmtbuf[j]) { in pretty_print_option()
843 warning("Unexpected format code %c", fmtbuf[j]); in pretty_print_option()
/src/bin/date/
H A Ddate.c234 char fmtbuf[64], buf[64], tzbuf[8]; in printisodate() local
236 fmtbuf[0] = 0; in printisodate()
238 strlcat(fmtbuf, it->format_string, sizeof(fmtbuf)); in printisodate()
240 (void)strftime_ns(buf, sizeof(buf), fmtbuf, lt, nsec, res); in printisodate()
/src/crypto/krb5/src/kadmin/ktutil/
H A Dktutil.c236 char fmtbuf[18]; in ktutil_list() local
245 fmtbuf, in ktutil_list()
246 sizeof(fmtbuf), in ktutil_list()
248 printf("%s ", fmtbuf); in ktutil_list()
/src/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp203 std::string fmtbuf; in printDarwinSectionSizes() local
204 raw_string_ostream fmt(fmtbuf); in printDarwinSectionSizes()
353 std::string fmtbuf; in printObjectSectionSizes() local
354 raw_string_ostream fmt(fmtbuf); in printObjectSectionSizes()
405 fmtbuf.clear(); in printObjectSectionSizes()
440 fmtbuf.clear(); in printObjectSectionSizes()
502 fmtbuf.clear(); in printObjectSectionSizes()
849 std::string fmtbuf; in printBerkeleyTotals() local
850 raw_string_ostream fmt(fmtbuf); in printBerkeleyTotals()
857 fmtbuf.clear(); in printBerkeleyTotals()
/src/crypto/krb5/src/clients/ksu/
H A Dccache.c309 char fmtbuf[18], fill = ' '; in printtime() local
311 if (!krb5_timestamp_to_sfstring(ts, fmtbuf, sizeof(fmtbuf), &fill)) in printtime()
312 printf("%s", fmtbuf); in printtime()
/src/contrib/sendmail/src/
H A Dsrvrsmtp.c5447 char fmtbuf[30]; local
5451 (void) sm_strlcpy(fmtbuf, "252", sizeof(fmtbuf));
5453 (void) sm_strlcpy(fmtbuf, "250", sizeof(fmtbuf));
5454 fmtbuf[3] = last ? ' ' : '-';
5455 (void) sm_strlcpy(&fmtbuf[4], "2.1.5 ", sizeof(fmtbuf) - 4);
5462 (void) sm_strlcpy(&fmtbuf[OFFF], "<%s@%s>",
5463 sizeof(fmtbuf) - OFFF);
5465 (void) sm_strlcpy(&fmtbuf[OFFF], "<%s>",
5466 sizeof(fmtbuf) - OFFF);
5467 message(fmtbuf, a->q_user, MyHostName);
[all …]
/src/usr.bin/netstat/
H A Dinet.c905 char fmtbuf[80]; in tcp_stats() local
909 snprintf(fmtbuf, sizeof(fmtbuf), "\t{:%s/%%ju} " in tcp_stats()
912 xo_emit(fmtbuf, (uintmax_t )tcps_states[i]); in tcp_stats()
/src/bin/ps/
H A Dps.c184 char fmtbuf[_POSIX2_LINE_MAX]; in main() local
764 snprintf(fmtbuf, sizeof(fmtbuf), "{:%s/%%%s%d..%dhs}", in main()
768 xo_emit(fmtbuf, str); in main()
/src/contrib/ntp/ntpd/
H A Dntp_control.c1885 char fmtbuf[128]; in ctl_printf() local
1889 rc = vsnprintf(fmtbuf, sizeof(fmtbuf), fmt, va); in ctl_printf()
1891 if (rc < 0 || (size_t)rc >= sizeof(fmtbuf)) in ctl_printf()
1892 strcpy(fmtbuf + sizeof(fmtbuf) - strlen(ellipsis) - 1, in ctl_printf()
1894 ctl_putdata(fmtbuf, strlen(fmtbuf), 0); in ctl_printf()