/illumos-gate/usr/src/cmd/smbsrv/fksmbd/ |
H A D | fksmbd_ksock.c | 46 (void) snprintf(familystr, sizeof (familystr), "%d", addr->sa_family); in ksocket_bind_helper() 49 (void) snprintf(portstr, sizeof (portstr), "%d", in ksocket_bind_helper() 55 (void) snprintf(portstr, sizeof (portstr), "%d", in ksocket_bind_helper()
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | lock.c | 49 (void) snprintf(msg, mlen, "Could not lock file `%s'; ", file); in file_lock_error() 51 (void) snprintf(&msg[len], (mlen - len), str, arg1, arg2); in file_lock_error() 131 (void) snprintf(tmpname, MAXPATHLEN, "%s.XXXXXX", in file_lock()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_constraints.c | 123 cnt += snprintf(buf + cnt, sizeof(buf) - cnt, ", "); in alloc_constraint_state() 124 cnt += snprintf(buf + cnt, sizeof(buf) - cnt, "%s%d", in alloc_constraint_state() 169 snprintf(buf, sizeof(buf), "%s()", name); in get_func_constraint() 188 snprintf(buf, sizeof(buf), "%s %s", get_base_file(), sym->ident->name); in get_toplevel_name() 190 snprintf(buf, sizeof(buf), "extern %s", sym->ident->name); in get_toplevel_name() 268 snprintf(buf, sizeof(buf), "%s, %s", *p, argv[0]); in save_str_callback() 464 snprintf(fullname, sizeof(fullname), "*%s", name); in set_param_constrained() 466 snprintf(fullname, 256, "%s%s", name, key + 1); in set_param_constrained()
|
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_ksetpwd.c | 248 (void) snprintf(msg, sizeof (msg), "smbns_ksetpwd: failed to " in smb_krb5_setpwd() 292 len = snprintf(NULL, 0, "WRFILE:%s", fname) + 1; in smb_krb5_kt_open() 299 (void) snprintf(ktname, len, "WRFILE:%s", fname); in smb_krb5_kt_open() 302 (void) snprintf(msg, sizeof (msg), "smbns_ksetpwd: %s", fname); in smb_krb5_kt_open() 386 (void) snprintf(ktname, MAXPATHLEN, "FILE:%s", fname); in smb_krb5_kt_find() 419 (void) snprintf(msg, sizeof (msg), "smbns_ksetpwd: unknown " in smb_krb5_kt_addkey() 438 (void) snprintf(msg, sizeof (msg), "smbns_ksetpwd: failed to " in smb_krb5_kt_addkey() 450 (void) snprintf(msg, sizeof (msg), "smbns_ksetpwd: failed to " in smb_krb5_kt_addkey()
|
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | lpsched-jobs.c | 148 snprintf(buf, sizeof (buf), "%s%s%s", user, in job_attributes_to_lpsched_request() 183 snprintf(buf, sizeof (buf), "prtitle='%s'", pr_title); in job_attributes_to_lpsched_request() 188 snprintf(buf, sizeof (buf), "prwidth=%d", pr_width); in job_attributes_to_lpsched_request() 193 snprintf(buf, sizeof (buf), "indent=%d", pr_indent); in job_attributes_to_lpsched_request() 212 snprintf(buf, sizeof (buf), "%s%s%s", in job_attributes_to_lpsched_request() 229 snprintf(buf, sizeof (buf), "group=%d", numberUp); in job_attributes_to_lpsched_request() 486 snprintf(buf, sizeof (buf), "lpsched://localhost/printers/%s/%d", in job_status_to_attributes() 490 snprintf(buf, sizeof (buf), "lpsched://localhost/printers/%s", in job_status_to_attributes()
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | mach_rootnex.c | 129 (void) snprintf(p, sizeof (buf) - (buf - p), in rootnex_ctl_reportdev_impl() 180 (void) snprintf(name, namelen, "%x,%x", in rootnex_name_child_impl() 217 (void) snprintf(name, namelen, "%s%x", in rootnex_name_child_impl() 221 (void) snprintf(name, namelen, "%s%x,%x", in rootnex_name_child_impl()
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | ulimit.c | 191 snprintf(errargs, PATH_MAX-1, in sysulimit() 201 snprintf(errargs, PATH_MAX-1, in sysulimit() 213 snprintf(errargs, PATH_MAX-1, in sysulimit() 237 snprintf(errargs, PATH_MAX-1, in sysulimit()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rcp.c | 470 (void) snprintf(cmd, cmdsiz, "%srcp %s%s%s%s%s", in main() 482 (void) snprintf(cmd_orig, cmdsiz, "rcp%s%s%s%s", in main() 505 (void) snprintf(cmd, cmdsiz, "rcp%s%s%s%s", in main() 604 (void) snprintf(bp, buffersize, in toremote() 715 (void) snprintf(bp, buffersize, in toremote() 735 (void) snprintf(bp, buffersize, in toremote() 761 (void) snprintf(bp, in toremote() 951 (void) snprintf(bp, buffersize, "%s -f %s", in tolocal() 973 (void) snprintf(bp, buffersize, in tolocal() 1356 (void) snprintf(path, sizeof (path), "%s/%s", in rsource() [all …]
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_prop.c | 565 nbytes = snprintf(buf, *bufsize, "weak"); in i_ipadm_get_hostmodel() 574 nbytes = snprintf(buf, *bufsize, "%s", in i_ipadm_get_hostmodel() 784 nbytes += snprintf(buf + nbytes, in i_ipadm_get_ecnsack() 787 nbytes += snprintf(buf + nbytes, in i_ipadm_get_ecnsack() 814 nbytes = snprintf(buf, *bufsize, "%s", in i_ipadm_get_ecnsack() 859 (void) snprintf(buf, *bufsize, in i_ipadm_get_forwarding() 937 nbytes = snprintf(buf, *bufsize, "%d", val); in i_ipadm_get_metric() 1021 nbytes = snprintf(buf, *bufsize, "%s", val); in i_ipadm_get_ifprop_flags() 1065 (void) snprintf(buf, *bufsize, "%c%c", in i_ipadm_perm2str() 1137 (void) snprintf(pargp->ia_pname, in i_ipadm_populate_proparg() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getprinter.c | 107 len = snprintf(buffer, buflen, "%s", name[0]); in _nss_ldap_printers2str() 114 len = snprintf(buffer, buflen, "|%s", in _nss_ldap_printers2str() 141 len = snprintf(buffer, buflen, ":%s", in _nss_ldap_printers2str() 191 len = snprintf(buffer, buflen, ":%s=", attrname); in _nss_ldap_printers2str() 287 if (snprintf(searchfilter, SEARCHFILTERLEN, in getbyname()
|
H A D | getnetmasks.c | 94 (void) snprintf(buffer, len, "%s", netmask[0]); in _nss_ldap_netmasks2str() 123 ret = snprintf(searchfilter, sizeof (searchfilter), in getbynet() 128 ret = snprintf(userdata, sizeof (userdata), in getbynet()
|
/illumos-gate/usr/src/lib/pam_modules/authtok_store/ |
H A D | authtok_store.c | 281 (void) snprintf(msg[0], sizeof (msg[0]), 287 (void) snprintf(msg[0], sizeof (msg[0]), 294 (void) snprintf(msg[0], sizeof (msg[0]), 302 (void) snprintf(msg[0], sizeof (msg[0]), 309 (void) snprintf(msg[0], sizeof (msg[0]),
|
/illumos-gate/usr/src/cmd/devmgmt/cmds/ |
H A D | devreserv.c | 239 (void) snprintf(txt, sizeof(txt), M_RSVTAB, rsvtab); in main() 268 (void) snprintf(txt, sizeof(txt), M_INVKEY, *argp); in main() 289 (void) snprintf(txt, sizeof(txt), M_RSVTAB, rsvtab); in main() 315 (void) snprintf(txt, sizeof(txt), M_DEVTAB, devtab); in main() 330 (void) snprintf(txt, sizeof(txt), M_INVKEY, *argp); in main()
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | packlib.c | 25 (void) snprintf(fname, sizeof (fname), "%s/%s", path, in PWRemove() 28 (void) snprintf(fname, sizeof (fname), "%s/%s", path, in PWRemove() 31 (void) snprintf(fname, sizeof (fname), "%s/%s", path, in PWRemove() 58 (void) snprintf(iname, sizeof (iname), "%s/%s", path, in PWOpen() 60 (void) snprintf(dname, sizeof (dname), "%s/%s", path, in PWOpen() 62 (void) snprintf(wname, sizeof (wname), "%s/%s", path, in PWOpen()
|
/illumos-gate/usr/src/test/bhyve-tests/tests/common/ |
H A D | common.c | 34 (void) snprintf(outp, VM_MAX_NAMELEN, "bhyve-test-%s-%d", in name_test_vm() 95 (void) snprintf(vm_path, sizeof (vm_path), "/dev/vmm/%s", vm_name); in check_instance_usable() 118 (void) snprintf(vm_path, sizeof (vm_path), "/dev/vmm/%s", vm_name); in check_instance_exists()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uuencode.c | 145 (void) snprintf(oline, sizeof (oline), "begin-base64 %lo %s\n", in main() 148 (void) snprintf(oline, sizeof (oline), "begin %lo %s\n", in main() 159 (void) snprintf(oline, sizeof (oline), "====\n"); in main() 161 (void) snprintf(oline, sizeof (oline), "end\n"); in main()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_error.c | 165 (void) snprintf(s, n, "[%s] ", errtag); in dt_set_errmsg() 177 (void) snprintf(s, n, "\"%s\", line %d: ", filename, lineno); in dt_set_errmsg() 179 (void) snprintf(s, n, "line %d: ", lineno); in dt_set_errmsg() 181 (void) snprintf(s, n, "in %s: ", region); in dt_set_errmsg()
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/ |
H A D | main.c | 1322 (void) snprintf(zn, sizeof (zn), in pkgZoneCheckRemove() 1333 (void) snprintf(zn, sizeof (zn), in pkgZoneCheckRemove() 1339 (void) snprintf(zn, sizeof (zn), in pkgZoneCheckRemove() 1548 (void) snprintf(zn, sizeof (zn), in pkgZoneRemove() 1559 (void) snprintf(zn, sizeof (zn), in pkgZoneRemove() 1565 (void) snprintf(zn, sizeof (zn), in pkgZoneRemove() 1769 (void) snprintf(zn, sizeof (zn), in pkgRemove() 1780 (void) snprintf(zn, sizeof (zn), in pkgRemove() 1786 (void) snprintf(zn, sizeof (zn), in pkgRemove() 1972 (void) snprintf(preremovecheckPath, in remove_packages_in_global_with_zones() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsmap.c | 1001 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, dev1); in compare_controller() 1093 (void) snprintf(buf, MAXPATHLEN, in is_root_controller() 1104 (void) snprintf(buf, MAXPATHLEN, "/dev/dsk/%s", ctd); in is_root_controller() 1302 (void) snprintf(name, MAXPATHLEN, "%s/%s@%s", in add_to_phci_list() 1502 (void) snprintf(buf, MAXPATHLEN, "%s%s", in is_dev_in_vfstab() 1653 (void) snprintf(devname, MAXPATHLEN, "%s/%s", in get_target_devlink() 1702 (void) snprintf(devlink, MAXPATHLEN, "%s%s", in devname2physpath() 1765 (void) snprintf(physpath, MAXPATHLEN, in devfs_target2install() 1851 (void) snprintf(physpath, MAXPATHLEN, in devfs_install2target() 1999 (void) snprintf(minor_path, MAXPATHLEN, in devfs_walk_children_minors() [all …]
|
H A D | devinfo_devperm.c | 112 (void) snprintf(errstring, MAX_LINELEN, in setdevaccess() 135 (void) snprintf(errstring, MAX_LINELEN, in setdevaccess() 144 (void) snprintf(errstring, MAX_LINELEN, in setdevaccess() 178 (void) snprintf(errstring, MAX_LINELEN, in logindevperm() 216 (void) snprintf(errstring, MAX_LINELEN, in logindevperm() 230 (void) snprintf(errstring, MAX_LINELEN, in logindevperm() 243 (void) snprintf(errstring, MAX_LINELEN, in logindevperm() 462 (void) snprintf(errstring, MAX_LINELEN, in dir_dev_acc() 515 if (snprintf(match, MAXPATHLEN + 2, "^%.*s$", in dir_dev_acc() 539 (void) snprintf(newpath, in dir_dev_acc() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 136 (void) snprintf(fab_buf, FM_MAX_CLASS, "ereport.io.%s.%s", in fab_send_tgt_erpt() 307 buf_size += snprintf(&c, 1, "/%s=%s", name, id); in fab_hc_path() 316 len += snprintf(buf + len, buf_size - len, "/%s=%s", name, id); in fab_hc_path() 363 (void) snprintf(str, sizeof (str), "%0hhx", df); in fab_find_rppath_by_df() 380 (void) snprintf(query, sizeof (query), "//propval[" in fab_find_rppath_by_df() 429 (void) snprintf(query, sizeof (query), "//propval[" in fab_find_rppath_by_devbdf() 524 (void) snprintf(query, sizeof (query), "//propval" in fab_find_rppath_by_devpath() 608 (void) snprintf(query, sizeof (query), "//propval[" in fab_find_bdf() 645 (void) snprintf(query, sizeof (query), "//propval[" in fab_find_addr() 876 (void) snprintf(query, sizeof (query), "//propval[" in fab_get_rpdev() [all …]
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_hyper.c | 89 (void) snprintf(newstr, len, "%s%s%s", orig, delim, str); in append_str() 307 (void) snprintf(com_rate, COM_RATE_LEN, "com%d=%u,%u%c%u", com, baud, in serial_metal_to_hyper() 445 (void) snprintf(ser, SER_LEN, "9600,8,n,1,-"); in cvt_hyper_option() 485 (void) snprintf(ser, SER_LEN, "%u,%c,%c,%c,-", baud, in cvt_hyper_option() 670 (void) snprintf(rcpath, len, "%s%s", osroot, BOOTRC_FILE); in parse_bootenvrc() 929 (void) snprintf(kernel, len, "%s%s %s", osroot, in cvt_to_hyper() 934 (void) snprintf(kernel, len, "%s%s", osroot, XEN_MENU); in cvt_to_hyper() 962 (void) snprintf(mod_kernel, len, "%s %s", kern_path, kern_path); in cvt_to_hyper() 970 (void) snprintf(zfsstr, zfslen + 1, " %s", ZFS_BOOT); in cvt_to_hyper() 1148 (void) snprintf(kernel, len, "%s", kern_path); in cvt_to_metal() [all …]
|
H A D | bootadm_upgrade.c | 60 (void) snprintf(path, sizeof (path), "%s/%s", in get_findroot_cap() 137 (void) snprintf(fname, PATH_MAX, "%s/%s", osroot, in get_boot_cap() 142 (void) snprintf(fname, PATH_MAX, "%s/%s", osroot, in get_boot_cap() 245 (void) snprintf(path, sizeof (path), "%s/%s", root, INST_RELEASE); in is_bfu_system() 273 (void) snprintf(linep->line, size, "%s%s%s", linep->cmd, linep->sep, in update_line() 394 (void) snprintf(path, PATH_MAX, "%s%s", osroot, in cvt_kernel_line() 396 (void) snprintf(path_64, PATH_MAX, "%s%s", osroot, in cvt_kernel_line() 482 (void) snprintf(new_arg, sizeof (new_arg), "%s", in cvt_kernel_line() 485 (void) snprintf(new_arg, sizeof (new_arg), "%s", in cvt_kernel_line() 645 (void) snprintf(opt, sizeof (opt), "%d", root_opt); in find_matching_entry() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_tunables.c | 112 nbytes = snprintf(pval, pr_size, "%d", MOD_PROP_PERM_RW); in ip_get_forwarding() 115 nbytes = snprintf(pval, pr_size, "%d", pinfo->prop_def_bval); in ip_get_forwarding() 124 nbytes = snprintf(pval, pr_size, "%d", pinfo->prop_cur_bval); in ip_get_forwarding() 148 nbytes = snprintf(pval, pr_size, "%d", value); in ip_get_forwarding() 193 nbytes = snprintf(pval, psize, "%u", MOD_PROP_PERM_RW); in ip_get_debug() 195 nbytes = snprintf(pval, psize, "%u-%u", in ip_get_debug() 198 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_uval); in ip_get_debug() 200 nbytes = snprintf(pval, psize, "%u", ip_debug); in ip_get_debug() 305 nbytes = snprintf(pval, psize, "%u", def_mtu); in ip_get_mtu() 310 nbytes = snprintf(pval, psize, "%u-%u", min_mtu, max_mtu); in ip_get_mtu()
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | pkgops.c | 198 len = snprintf(pkgingzonlyPath, sizeof (pkgingzonlyPath), "%s/%s", in pkgOpenInGzOnlyFile() 378 len = snprintf(srcPath, sizeof (srcPath), "%s/%s", in pkgRemovePackageFromGzonlyList() 388 len = snprintf(destPath, sizeof (destPath), "%s/%s.tmp", in pkgRemovePackageFromGzonlyList() 398 len = snprintf(savePath, sizeof (savePath), "%s/%s.save", in pkgRemovePackageFromGzonlyList() 571 len = snprintf(srcPath, sizeof (srcPath), "%s/%s", in pkgAddPackageToGzonlyList() 581 len = snprintf(destPath, sizeof (destPath), "%s/%s.tmp", in pkgAddPackageToGzonlyList() 591 len = snprintf(savePath, sizeof (savePath), "%s/%s.save", in pkgAddPackageToGzonlyList() 1045 (void) snprintf(pkgInstPath, sizeof (pkgInstPath), "%s%s", a_rootPath, in pkgLocateHighestInst() 1072 (void) snprintf(pkgWild, sizeof (pkgWild), "%s.*", pkgName); in pkgLocateHighestInst() 1166 (void) snprintf(cmd, sizeof (cmd), in pkgTestInstalled()
|