/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-openpty.c | 207 snprintf(ptbuf, sizeof(ptbuf), "/dev/pty%c%c", in openpty() 209 snprintf(ttbuf, sizeof(ttbuf), "/dev/tty%c%c", in openpty() 214 snprintf(ptbuf, sizeof(ptbuf), "/dev/ptyp%d", i); in openpty() 215 snprintf(ttbuf, sizeof(ttbuf), "/dev/ttyp%d", i); in openpty()
|
/freebsd/tools/test/stress2/misc/ |
H A D | fifo3.sh | 96 snprintf(name, sizeof(name), "fifo.%d.%06d", pid, i); 101 snprintf(name, sizeof(name), "fifo.%d.%06d", pid, i); 120 snprintf(name, sizeof(name), "dir.%d.%06d", pid, i); 125 snprintf(name, sizeof(name), "dir.%d.%06d", pid, i);
|
H A D | umountf7.sh | 96 snprintf(file, sizeof(file), "f%06d.%06d", pid, i); 115 snprintf(from, sizeof(from), "f%06d.%06d", pid, i); 116 snprintf(to , sizeof(to ), "g%06d.%06d", pid, i); 134 snprintf(file, sizeof(file), "g%06d.%06d", pid, i);
|
/freebsd/sys/contrib/openzfs/module/zcommon/ |
H A D | zfs_deleg.c | 219 (void) snprintf(attr, len, "%c%c%c%lld", type, inheritchr, in zfs_deleg_whokey() 224 (void) snprintf(attr, len, "%c-%c%s", type, in zfs_deleg_whokey() 229 (void) snprintf(attr, len, "%c-%c", type, in zfs_deleg_whokey() 234 (void) snprintf(attr, len, "%c%c%c", type, inheritchr, in zfs_deleg_whokey()
|
/freebsd/lib/libc/tests/stdlib/ |
H A D | clearenv_test.c | 50 snprintf(name, sizeof(name), "%s_%d", TEST_VARIABLE, i); in create_multiple_variables() 51 snprintf(value, sizeof(value), "%d", i); in create_multiple_variables() 65 snprintf(name, sizeof(name), "%s_%d", TEST_VARIABLE, i); in check_if_nulled_variables() 144 snprintf(buf, sizeof(buf), "%s=1", TEST_VARIABLE); in ATF_TC_BODY()
|
/freebsd/contrib/blocklist/bin/ |
H A D | support.c | 93 snprintf(b, l, "*%jd*", (intmax_t)t); in fmttime() 124 z = snprintf(b + o, l - o, "%jd%s", (intmax_t)a, __STRING(a)); \ in fmtydhms() 147 r = snprintf(buf, len, "%s: ", str); in blhexdump() 154 r = snprintf(buf + cz, len - cz, "%.2x", *p++); in blhexdump()
|
/freebsd/contrib/netbsd-tests/lib/libc/stdlib/ |
H A D | t_getenv_thread.c | 63 (void)snprintf(name, sizeof(name), THREADED_VAR_NAME, i); in thread_getenv_r() 82 (void)snprintf(vars[i], sizeof(vars[i]), in thread_putenv() 112 (void)snprintf(name, sizeof(name), THREADED_VAR_NAME, i); in thread_setenv() 113 (void)snprintf(value, sizeof(value), "setenv %ld", lrand48()); in thread_setenv() 132 (void)snprintf(name, sizeof(name), THREADED_VAR_NAME, i); in thread_unsetenv()
|
/freebsd/lib/libipsec/ |
H A D | ipsec_dump_policy.c | 122 snprintf(buf, buflen, "%s %s", ipsp_dir_strs[xpl->sadb_x_policy_dir], in ipsec_dump_policy() 162 snprintf(buf + strlen(buf), buflen - strlen(buf), in ipsec_dump_policy() 255 snprintf(buf, len, "%s/%s/%s/%s", proto, mode, abuf, level); in ipsec_dump_ipsecrequest() 263 snprintf(buf, len, "%s/%s/%s/%s%c%u", proto, mode, abuf, level, in ipsec_dump_ipsecrequest() 280 snprintf(buf, len, "%s-%s", tmp1, tmp2); in set_addresses()
|
/freebsd/crypto/openssh/ |
H A D | audit-bsm.c | 336 (void) snprintf(textbuf, sizeof (textbuf), in bsm_audit_bad_login() 341 (void) snprintf(textbuf, sizeof (textbuf), in bsm_audit_bad_login() 364 snprintf(buf, sizeof(buf), "%08x %08x %08x %08x", tid->at_addr[0], in audit_connection_from() 371 snprintf(buf, sizeof(buf), "%08x", tid->machine); in audit_connection_from() 408 snprintf(textbuf, sizeof(textbuf), in audit_event() 419 snprintf(textbuf, sizeof(textbuf), in audit_event() 434 snprintf(textbuf, sizeof(textbuf), in audit_event()
|
/freebsd/cddl/contrib/opensolaris/lib/libcmdutils/common/ |
H A D | nicenum.c | 87 rc = snprintf(buf, buflen, "%llu", n); in nicenum_scale() 93 rc = snprintf(buf, buflen, "%llu%c", n / divisor, u); in nicenum_scale() 107 if ((rc = snprintf(buf, buflen, "%.*f%c", i, in nicenum_scale()
|
/freebsd/crypto/heimdal/lib/com_err/ |
H A D | Makefile.am | 26 nodist_libcom_err_la_SOURCES = snprintf.c strlcpy.c 38 snprintf.c: 39 $(LN_S) $(srcdir)/../roken/snprintf.c .
|
/freebsd/usr.bin/tip/tip/ |
H A D | uucplock.c | 61 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); in uu_lock() 103 (void)snprintf(text_pid, sizeof text_pid, "%10ld\n", (long)pid); in uu_lock() 120 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); in uu_unlock()
|
/freebsd/contrib/sqlite3/tea/win/ |
H A D | nmakehlp.c | 35 #define snprintf _snprintf macro 93 chars = snprintf(msg, sizeof(msg) - 1, in main() 104 chars = snprintf(msg, sizeof(msg) - 1, in main() 115 chars = snprintf(msg, sizeof(msg) - 1, in main() 133 chars = snprintf(msg, sizeof(msg) - 1, in main() 145 chars = snprintf(msg, sizeof(msg) - 1, in main() 163 chars = snprintf(msg, sizeof(msg) - 1, in main() 175 chars = snprintf(msg, sizeof(msg) - 1, in main() 186 chars = snprintf(msg, sizeof(msg) - 1, in main() 274 int chars = snprintf(msg, sizeof(msg) - 1, in CheckForCompilerFeature() [all …]
|
/freebsd/stand/common/ |
H A D | module.c | 190 snprintf(command_errbuf, sizeof(command_errbuf), in command_load() 210 snprintf(command_errbuf, sizeof(command_errbuf), in command_load() 222 snprintf(command_errbuf, sizeof(command_errbuf), in command_load() 253 snprintf(command_errbuf, sizeof(command_errbuf), in command_load_geli() 446 snprintf(command_errbuf, sizeof(command_errbuf), in command_pnpload() 676 snprintf(command_errbuf, sizeof(command_errbuf), in file_loadraw() 683 snprintf(command_errbuf, sizeof(command_errbuf), in file_loadraw() 815 snprintf(command_errbuf, sizeof(command_errbuf), in mod_load() 823 snprintf(command_errbuf, sizeof(command_errbuf), in mod_load() 852 snprintf(command_errbuf, sizeof(command_errbuf), in mod_loadkld() [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_filegen.c | 117 snprintf(filename, len, "%s%s", gen->dir, gen->fname); in filegen_open() 144 snprintf(suffix, suflen, "%c#%ld", in filegen_open() 155 snprintf(suffix, suflen, "%c%04d%02d%02d", in filegen_open() 164 snprintf(suffix, suflen, "%c%04dw%02d", in filegen_open() 174 snprintf(suffix, suflen, "%c%04d%02d", in filegen_open() 185 snprintf(suffix, suflen, "%c%04d", in filegen_open() 197 snprintf(suffix, suflen, "%ca%08ld", in filegen_open() 231 snprintf(savename, len, in filegen_open()
|
/freebsd/usr.bin/netstat/ |
H A D | nhops.c | 137 snprintf(buf, bufsize, "unknown:%d", sa->sa_family); in print_sockaddr_buf() 149 snprintf(buf, sizeof(buf), "{:%s/%%s} ", name); in print_addr() 154 snprintf(buf, sizeof(buf), "{[:%d}{:%s/%%s}{]:} ", in print_addr() 161 snprintf(buf, sizeof(buf), "{[:%d}{:%s/%%-.*s}{]:} ", in print_addr() 249 snprintf(buffer, sizeof(buffer), "{[:-%d}{:index/%%lu}{]:} ", wid_nhidx); in print_nhop_entry_sysctl() 277 snprintf(gw_addr, sizeof(gw_addr), "%s/resolve", iface_name); in print_nhop_entry_sysctl() 282 snprintf(buffer, sizeof(buffer), "{[:-%d}{:flags/%%s}{]:} ", in print_nhop_entry_sysctl() 313 snprintf(&buffer[i * 2], 3, "%02X", nh->nh_prepend[i]); in print_nhop_entry_sysctl()
|
H A D | route.c | 327 snprintf(buffer, sizeof(buffer), "{[:-%d}{:flags/%%s}{]:} ", in p_rtentry_sysctl() 379 snprintf(buf, sizeof(buf), "{:%s/%%s} ", name); in p_sockaddr() 384 snprintf(buf, sizeof(buf), "{[:%d}{:%s/%%s}{]:} ", in p_sockaddr() 391 snprintf(buf, sizeof(buf), "{[:%d}{:%s/%%-.*s}{]:} ", in p_sockaddr() 457 snprintf(cq, sizeof(buf), "(%d)", sa->sa_family); in fmt_sockaddr() 460 snprintf(cq, sizeof(" ff"), " %02x", *s++); in fmt_sockaddr() 463 snprintf(cq, sizeof("ff"), "%02x", *s++); in fmt_sockaddr() 544 snprintf(dst, buflen, "&0x%lx", mask); in domask() 546 snprintf(dst, buflen, "/%d", 32-i); in domask() 688 snprintf(maskbuf, sizeof(maskbuf), "/%d", masklen); in netname6()
|
/freebsd/sys/x86/bios/ |
H A D | vpd.c | 199 snprintf(unit, sizeof(unit), "%d", device_get_unit(sc->dev)); in vpd_attach() 200 snprintf(sc->MachineType, 5, "%.4s", sc->vpd->MachType); in vpd_attach() 201 snprintf(sc->MachineModel, 4, "%.3s", sc->vpd->MachType+4); in vpd_attach() 202 snprintf(sc->BuildID, 10, "%.9s", sc->vpd->BuildID); in vpd_attach() 203 snprintf(sc->BoxSerial, 8, "%.7s", sc->vpd->BoxSerial); in vpd_attach() 204 snprintf(sc->PlanarSerial, 12, "%.11s", sc->vpd->PlanarSerial); in vpd_attach()
|
/freebsd/usr.bin/procstat/ |
H A D | procstat_rusage.c | 77 used += snprintf(buffer, sizeof(buffer), "1 day "); in format_time() 79 used += snprintf(buffer, sizeof(buffer), "%u days ", days); in format_time() 81 snprintf(buffer + used, sizeof(buffer) - used, "%02u:%02u:%02u.%06u", in format_time() 97 snprintf(buffer, sizeof(buffer), "%ld ", value); in format_value()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_pool.c | 346 (void) snprintf(buf, len, "%llu", in zpool_get_prop() 357 (void) snprintf(buf, len, "%llu", in zpool_get_prop() 366 (void) snprintf(buf, len, "%llu", in zpool_get_prop() 369 (void) snprintf(buf, len, "%llu%%", in zpool_get_prop() 378 (void) snprintf(buf, len, "%llu", in zpool_get_prop() 381 (void) snprintf(buf, len, "%llu%%", in zpool_get_prop() 403 (void) snprintf(buf, len, "-"); in zpool_get_prop() 5241 (void) snprintf(buf, len, "%llu", in zpool_get_vdev_prop_value() 5251 (void) snprintf(buf, len, "%llu", in zpool_get_vdev_prop_value() 5259 (void) snprintf(buf, len, "%llu", in zpool_get_vdev_prop_value() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | pcap-linux.c | 449 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in get_mac80211_phydev() 487 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init() 493 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init() 500 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init() 632 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in add_mon_if() 686 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in del_mon_if() 1615 snprintf(errbuf, PCAP_ERRBUF_SIZE, in get_if_flags() 3566 snprintf(handle->errbuf, in pcap_wait_for_frames_mmap() 3572 snprintf(handle->errbuf, in pcap_wait_for_frames_mmap() 3627 snprintf(handle->errbuf, in pcap_wait_for_frames_mmap() [all …]
|
/freebsd/contrib/libpcap/rpcapd/ |
H A D | daemon.c | 1247 snprintf(errmsgbuf, PCAP_ERRBUF_SIZE, in daemon_msg_auth_req() 1347 snprintf(errmsgbuf, PCAP_ERRBUF_SIZE, in daemon_msg_auth_req() 1448 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Authentication failed"); in daemon_AuthUserPwd() 1465 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Authentication failed"); in daemon_AuthUserPwd() 1507 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Authentication failed"); in daemon_AuthUserPwd() 1515 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Authentication failed"); in daemon_AuthUserPwd() 1543 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Authentication failed"); in daemon_AuthUserPwd() 1558 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Authentication failed"); in daemon_AuthUserPwd() 1867 snprintf(errmsgbuf, PCAP_ERRBUF_SIZE, "Source string too long"); in daemon_msg_open_req() 2000 snprintf(errbuf, PCAP_ERRBUF_SIZE, in daemon_msg_startcap_req() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | regerror.c | 49 #define snprintf _snprintf macro 104 (void)snprintf(convbuf, sizeof convbuf, in llvm_regerror() 133 (void)snprintf(localbuf, localbufsize, "%d", r->code); in regatoi()
|
/freebsd/contrib/ntp/sntp/ |
H A D | utilities.c | 167 snprintf(buf, bufsize, in tv_to_str() 204 cnt = snprintf(result, LIB_BUFLENGTH, "%s %s", in hostnameaddr() 207 cnt = snprintf(result, LIB_BUFLENGTH, "%s", addrtxt); in hostnameaddr() 209 snprintf(result, LIB_BUFLENGTH, in hostnameaddr()
|
/freebsd/tests/sys/kqueue/libkqueue/ |
H A D | main.c | 122 snprintf(buf, 1024, "fflags = %x (", kev->fflags); in kevent_fflags_dump() 131 snprintf(buf, 1024, "fflags = %x (", kev->fflags); in kevent_fflags_dump() 137 snprintf(buf, 1024, "fflags = %x (", kev->fflags); in kevent_fflags_dump() 152 snprintf(buf, 1024, "fflags = %x", kev->fflags); in kevent_fflags_dump() 170 snprintf(buf, 1024, "flags = %d (", kev->flags); in kevent_flags_dump() 198 snprintf(&buf[0], sizeof(buf), in kevent_to_str()
|