Home
last modified time | relevance | path

Searched refs:snprintf (Results 176 – 200 of 2421) sorted by relevance

12345678910>>...97

/illumos-gate/usr/src/common/zfs/
H A Dzfs_deleg.c224 (void) snprintf(attr, len, "%c%c%c%lld", type, inheritchr, in zfs_deleg_whokey()
229 (void) snprintf(attr, len, "%c-%c%s", type, in zfs_deleg_whokey()
234 (void) snprintf(attr, len, "%c-%c", type, in zfs_deleg_whokey()
239 (void) snprintf(attr, len, "%c%c%c", type, inheritchr, in zfs_deleg_whokey()
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetbootparams.c102 len = snprintf(buffer, buflen, "%s", in _nss_ldap_bootparams2str()
105 len = snprintf(buffer, buflen, " %s", in _nss_ldap_bootparams2str()
145 ret = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
150 ret = snprintf(userdata, sizeof (userdata), in getbyname()
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_string_len.c154 ret = snprintf(buf, sizeof(buf), "%llx", sval.uvalue); in handle_format()
156 ret = snprintf(buf, sizeof(buf), "%llu", sval.uvalue); in handle_format()
161 ret = snprintf(buf, sizeof(buf), "%lld", sval.value); in handle_format()
163 tmp = snprintf(buf, sizeof(buf), "%lld", min.value); in handle_format()
167 ret = snprintf(buf, sizeof(buf), "%lld", sval.value); in handle_format()
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetgrent.c61 (void) snprintf(gidstr, 12, "%d", argp->key.gid);
99 idlen = snprintf(NULL, 0, "%u", GID_NOBODY); in validate_group_ids()
107 (void) snprintf(newline, newlinelen + 1, "%s:%u%s", in validate_group_ids()
117 (void) snprintf(gidp, idlen + 1, "%u", GID_NOBODY); in validate_group_ids()
280 if (snprintf(netname, MAXNETNAMELEN + 1, "unix.%d@%s", in netid_lookup()
/illumos-gate/usr/src/cmd/gss/gsscred/
H A Dgsscred_file.c74 (void) snprintf(tmpBuf, sizeof (tmpBuf), in file_addGssCredEntry()
107 (void) snprintf(entry, sizeof (entry), in file_getGssCredEntry()
184 (void) snprintf(entry, sizeof (entry), in file_deleteGssCredEntry()
201 (void) snprintf(entry, sizeof (entry), in file_deleteGssCredEntry()
212 (void) snprintf(entry, sizeof (entry), in file_deleteGssCredEntry()
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootdev.c247 (void) snprintf(ret_buf, len, "%s", dev_name); in i_devname_to_promname()
275 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname()
356 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname()
362 (void) snprintf(optr, olen, "%s", prom_path); in i_devname_to_promname()
446 (void) snprintf(fullname, MAXPATHLEN, "/devices%s", name); in resolve_devfs_name()
502 (void) snprintf(new_path + strlen(new_path), in i_convert_boot_device_name()
506 (void) snprintf(new_path, *len, "%s", cur_path); in i_convert_boot_device_name()
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/
H A Dlinkage.c58 (void) snprintf(composite_name, sizeof (composite_name), in generate_linkage()
93 (void) snprintf(buf, BUFSIZ, "%s;", strnormalize(p)); in generate_interface_predeclaration()
95 (void) snprintf(buf, BUFSIZ, "%s", strnormalize(p)); in generate_interface_predeclaration()
H A Dtrace.c192 (void) snprintf(infile, sizeof (infile), "%s", filename); in xlator_startfile()
193 (void) snprintf(outfile, sizeof (outfile), "%s.c", in xlator_startfile()
678 n = MAXLINE - snprintf(buffer, MAXLINE, "%s", name_of(p)); in to_actual()
682 n -= snprintf(strend(buffer), n, in to_actual()
735 (void) snprintf(tmp_proto, BUFSIZ, "%s;", p); in collect_prototype()
737 (void) snprintf(tmp_proto, BUFSIZ, "%s", p); in collect_prototype()
797 (void) snprintf(a_type, BUFSIZ, "%s ", in collect_prototype()
799 (void) snprintf(a_basetype, BUFSIZ, "%s", in collect_prototype()
819 (void) snprintf(a_name, 20, "%s", funargs->d_name); in collect_prototype()
935 (void) snprintf(pathname, sizeof (pathname), "%s.pf", in generate_aux_file()
/illumos-gate/usr/src/lib/libadm/common/
H A Dpkgparam.c84 len = snprintf(path, PATH_MAX, "%s/.save.%s/pkginfo", pkg_dir, in pkginfofind()
93 len = snprintf(path, PATH_MAX, "%s/%s/pkginfo", pkg_dir, in pkginfofind()
397 (void) snprintf(Adm_pkgloc, sizeof (Adm_pkgloc), in set_PKGpaths()
399 (void) snprintf(Adm_pkgadm, sizeof (Adm_pkgadm), in set_PKGpaths()
403 (void) snprintf(Adm_pkgloc, sizeof (Adm_pkgloc), "%s", PKGLOC); in set_PKGpaths()
404 (void) snprintf(Adm_pkgadm, sizeof (Adm_pkgadm), "%s", PKGADM); in set_PKGpaths()
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_rexecd.c204 (void) snprintf(buf, sizeof (buf), dgettext(bsm_dom,
209 (void) snprintf(buf, sizeof (buf), dgettext(bsm_dom,
220 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
312 (void) snprintf(buf, sizeof (buf), dgettext(bsm_dom,
317 (void) snprintf(buf, sizeof (buf), dgettext(bsm_dom,
327 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
/illumos-gate/usr/src/cmd/prstat/
H A Dprtable.c72 n = snprintf(NULL, 0, "%u", uid); in pwd_getname()
74 (void) snprintf(name, length, "%.*u%c", in pwd_getname()
77 (void) snprintf(name, length, "%u", uid); in pwd_getname()
81 (void) snprintf(name, length, "%s", "ERROR"); in pwd_getname()
83 (void) snprintf(name, length, "%.*s%c", in pwd_getname()
86 (void) snprintf(name, length, "%s", pwd->pw_name); in pwd_getname()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_config.c1163 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1243 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1250 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1502 (void) snprintf(errstr, MAXERROR, in verify_value()
2382 (void) snprintf(errstr, in __ns_ldap_setParamValue()
2396 (void) snprintf(errstr, in __ns_ldap_setParamValue()
2492 (void) snprintf(errstr, in __ns_ldap_setParamValue()
2570 (void) snprintf(errstr, in __ns_ldap_setParamValue()
2584 (void) snprintf(errstr, in __ns_ldap_setParamValue()
3724 (void) snprintf(errbuf, MAXERROR, in __s_val_postime()
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_add_hdrs.c148 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_empty_hdr()
203 (void) snprintf(new_header->sip_hdr_start, in sip_add_2strs_to_msg()
207 (void) snprintf(new_header->sip_hdr_start, in sip_add_2strs_to_msg()
213 (void) snprintf(new_header->sip_hdr_start, in sip_add_2strs_to_msg()
218 (void) snprintf(new_header->sip_hdr_start, in sip_add_2strs_to_msg()
268 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_str_to_msg()
271 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_str_to_msg()
328 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_int_to_msg()
331 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_int_to_msg()
392 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_intstr_to_msg()
[all …]
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dnicenum.c93 rc = snprintf(buf, buflen, "%llu%s", n, spc); in nicenum_scale()
99 rc = snprintf(buf, buflen, "%llu%s%c", n / divisor, spc, u); in nicenum_scale()
113 if ((rc = snprintf(buf, buflen, "%.*f%s%c", i, in nicenum_scale()
/illumos-gate/usr/src/lib/libdisasm/common/
H A Ddis_s390x.c1867 (void) snprintf(buf, buflen, "%#x", in fmt_diag()
1970 (void) snprintf(buf, buflen, "%#x", ri2); in fmt_ri_c()
2041 (void) snprintf(buf, buflen, "%s,%s,%s", in fmt_rrf_a()
2049 (void) snprintf(buf, buflen, "%s,%s,%s", in fmt_rrf_b()
2057 (void) snprintf(buf, buflen, "%s,%s,%s", in fmt_rrf_c()
2065 (void) snprintf(buf, buflen, "%s,%s,%s", in fmt_rrf_d()
2127 (void) snprintf(buf, buflen, "%u(%s,%s)", in fmt_rx_b()
2210 (void) snprintf(buf, buflen, "%u(%u,%s)", in fmt_rsl_a()
2283 (void) snprintf(buf, buflen, "%u(%s),%u", in fmt_sil()
2292 (void) snprintf(buf, buflen, "%u(%s),%u", in fmt_siy()
[all …]
/illumos-gate/usr/src/common/ficl/emu/
H A Dloader_emu.c1091 (void) snprintf(buf, sizeof (buf), "/boot/loader.help"); in command_help()
1163 (void) snprintf(command_errbuf, sizeof (command_errbuf), in command_help()
1190 (void) snprintf(name, sizeof (name), " %-15s ", in command_commandlist()
1375 (void) snprintf(command_errbuf, in command_read()
1429 (void) snprintf(line, sizeof (line), in command_more()
1449 (void) snprintf(command_errbuf, sizeof (command_errbuf), in page_file()
1521 (void) snprintf(lbuf, sizeof (lbuf), in command_ls()
1526 (void) snprintf(lbuf, sizeof (lbuf), in command_ls()
1562 (void) snprintf(command_errbuf, sizeof (command_errbuf), in ls_getdir()
1573 (void) snprintf(command_errbuf, sizeof (command_errbuf), in ls_getdir()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dontario.c215 (void) snprintf(pci_card.status, in ontario_pci_callback()
220 (void) snprintf(pci_card.status, in ontario_pci_callback()
224 (void) snprintf(pci_card.status, in ontario_pci_callback()
425 (void) snprintf(NAC, sizeof (NAC), "%s/%s%d", IOBOARD, OPHIR, in ontario_hw_rev_callback()
434 (void) snprintf(NAC, sizeof (NAC), "%s/%s%d", IOBOARD, OPHIR, in ontario_hw_rev_callback()
443 (void) snprintf(NAC, sizeof (NAC), "%s/%s", IOBOARD, in ontario_hw_rev_callback()
452 (void) snprintf(NAC, sizeof (NAC), "%s/%s", IOBOARD, in ontario_hw_rev_callback()
460 (void) snprintf(NAC, sizeof (NAC), "%s/%s", IOBOARD, SWITCH_A); in ontario_hw_rev_callback()
467 (void) snprintf(NAC, sizeof (NAC), "%s/%s", IOBOARD, SWITCH_B); in ontario_hw_rev_callback()
474 (void) snprintf(NAC, sizeof (NAC), "%s/%s", IOBOARD, in ontario_hw_rev_callback()
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddispsyms.c218 (void) snprintf(typebuf, INTSTRLEN, in print_symtab()
226 (void) snprintf(bindbuf, INTSTRLEN, in print_symtab()
252 (void) snprintf(shndxbuf, INTSTRLEN, in print_symtab()
257 (void) snprintf(shndxbuf, INTSTRLEN, in print_symtab()
308 (void) snprintf(buffer, 1024, "%s(%s)", in process_elf()
/illumos-gate/usr/src/boot/common/linenoise/
H A Dlinenoise.c264 nwritten = snprintf(ls->buf,ls->buflen,"%s",lc.cvec[i]); in completeLine()
356 snprintf(seq,64,"\r"); in refreshSingleLine()
362 snprintf(seq,64,"\x1b[K"); in refreshSingleLine()
365 snprintf(seq,64,"\r\x1b[%dC", (int)(pos+plen)); in refreshSingleLine()
394 snprintf(seq,64,"\x1b[%dB", old_rows-rpos); in refreshMultiLine()
400 snprintf(seq,64,"\r\x1b[0K\x1b[1A"); in refreshMultiLine()
405 snprintf(seq,64,"\r\x1b[0K"); in refreshMultiLine()
419 snprintf(seq,64,"\r"); in refreshMultiLine()
430 snprintf(seq,64,"\x1b[%dA", rows-rpos2); in refreshMultiLine()
437 snprintf(seq,64,"\r\x1b[%dC", col); in refreshMultiLine()
[all …]
/illumos-gate/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1086 (void) snprintf(linkp, CFGA_LOG_EXT_LEN, "%s", in get_link()
1777 (void) snprintf(lib, sizeof (lib), "%s%s%s%s%s", in find_lib_impl()
1792 (void) snprintf(lib, sizeof (lib), "%s%s%s%s%s", in find_lib_impl()
1808 (void) snprintf(lib, sizeof (lib), "%s%s%s%s%s", in find_lib_impl()
1824 (void) snprintf(lib, sizeof (lib), "%s%s%s%s", in find_lib_impl()
2120 (void) snprintf(inst, sizeof (inst), "%s", cp); in check_ap_impl()
2868 (void) snprintf((alp->array[0]).ap_log_id, in stat_plugin_v2()
2874 (void) snprintf((alp->array[0]).ap_phys_id, in stat_plugin_v2()
2888 (void) snprintf((alp->array[i]).ap_class, in stat_plugin_v2()
2979 (void) snprintf(path, sizeof (path), "%s%s", in find_arg_type()
[all …]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c320 (void) snprintf(buf, len, "%llu", in zpool_get_prop()
332 (void) snprintf(buf, len, "%llu", in zpool_get_prop()
340 (void) snprintf(buf, len, "%llu", in zpool_get_prop()
351 (void) snprintf(buf, len, "%llu", in zpool_get_prop()
380 (void) snprintf(buf, len, "-"); in zpool_get_prop()
2950 (void) snprintf(msg, sizeof (msg), in zpool_vdev_offline()
2998 (void) snprintf(msg, sizeof (msg), in zpool_vdev_fault()
3033 (void) snprintf(msg, sizeof (msg), in zpool_vdev_degrade()
3260 (void) snprintf(msg, sizeof (msg), in zpool_vdev_detach()
3362 (void) snprintf(msg, sizeof (msg), in zpool_vdev_split()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dgroup.c409 nbytes = snprintf(ptr, len, "%d-%d", in group2intlist()
412 nbytes = snprintf(ptr, len, "%d,%d", in group2intlist()
415 nbytes = snprintf(ptr, len, "%d", start); in group2intlist()
445 (void) snprintf(ptr, len, "%d-%d", start, end); in group2intlist()
447 (void) snprintf(ptr, len, "%d,%d", start, end); in group2intlist()
449 (void) snprintf(ptr, len, "%d", start); in group2intlist()
H A Discsiboot_prop.c101 n = snprintf(outbuf, ISCSI_BOOTPROP_BUFLEN, in iscsi_print_nic_property()
106 n = n + snprintf(outbuf + n, ISCSI_BOOTPROP_BUFLEN - n, in iscsi_print_nic_property()
111 n = n + snprintf(outbuf + n, ISCSI_BOOTPROP_BUFLEN - n, in iscsi_print_nic_property()
114 (void) snprintf(outbuf + n, ISCSI_BOOTPROP_BUFLEN - n, in iscsi_print_nic_property()
304 (void) snprintf(bootpath, BO_MAXOBJNAME, "/iscsi/ssd@%s%s%04X,%d:%s", in get_iscsi_bootpath_vhci()
329 (void) snprintf(bootpath, BO_MAXOBJNAME, "/iscsi/disk@%s%s%04X,%d:%s", in get_iscsi_bootpath_phy()
/illumos-gate/usr/src/cmd/devfsadm/i386/
H A Dmisc_link_i386.c244 (void) snprintf(path, sizeof (path), "%s:%s", in lp()
253 (void) snprintf(path, sizeof (path), "ecpp%s", buf); in lp()
361 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc"); in mc_node()
363 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc%u", in mc_node()
366 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc%u", in mc_node()
389 (void) snprintf(linkpath, sizeof (linkpath), "ppt%d", in ppt()
/illumos-gate/usr/src/cmd/hal/hald/
H A Dids.c136 snprintf (rep_vi, 8, "%04x", vendor_id); in ids_find_pci()
137 snprintf (rep_pi, 8, "%04x", product_id); in ids_find_pci()
138 snprintf (rep_svi, 8, "%04x", subsys_vendor_id); in ids_find_pci()
139 snprintf (rep_spi, 8, "%04x", subsys_product_id); in ids_find_pci()
401 snprintf (rep_vi, 8, "%04x", vendor_id); in ids_find_usb()
402 snprintf (rep_pi, 8, "%04x", product_id); in ids_find_usb()

12345678910>>...97