Home
last modified time | relevance | path

Searched refs:snprintf (Results 26 – 50 of 2294) sorted by relevance

12345678910>>...92

/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_backup_reader.c270 (void) snprintf(section_name, TLM_MAX_PATH_NAME, in output_xattr_header()
273 (void) snprintf(section_name, in output_xattr_header()
321 (void) snprintf(xhdr->h_link_component_len, in output_xattr_header()
376 (void) snprintf(section_name, in output_file_header()
402 (void) snprintf(tar_hdr->th_name, in output_file_header()
445 (void) snprintf(tar_hdr->th_linkname, in output_file_header()
482 (void) snprintf(tar_hdr->th_name, in output_file_header()
495 (void) snprintf(tar_hdr->th_linkname, in output_file_header()
516 (void) snprintf(tar_hdr->th_shared.th_dev.th_devmajor, in output_file_header()
519 (void) snprintf(tar_hdr->th_shared.th_dev.th_devminor, in output_file_header()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_perror.c130 (void) snprintf(str, ERRBUFSZ, "%s: ", s); in clnt_sperror()
160 (void) snprintf(str, REMAINDER, in clnt_sperror()
175 (void) snprintf(str, REMAINDER, in clnt_sperror()
182 (void) snprintf(str, REMAINDER, in clnt_sperror()
190 (void) snprintf(str, REMAINDER, "; why = "); in clnt_sperror()
195 (void) snprintf(str, REMAINDER, in clnt_sperror()
203 (void) snprintf(str, REMAINDER, in clnt_sperror()
242 (void) snprintf(str, ERRBUFSZ, "%s: ", s); in clnt_spcreateerror()
264 (void) snprintf(&str[strlen(str)], in clnt_spcreateerror()
286 (void) snprintf(&str[strlen(str)], in clnt_spcreateerror()
[all …]
/illumos-gate/usr/src/boot/efi/loader/
H A Dacpi.c49 snprintf(buf, sizeof (buf), "0x%016llx", (unsigned long long)rsdp); in acpi_detect()
51 snprintf(buf, sizeof (buf), "0x%08x", (unsigned int)rsdp); in acpi_detect()
57 snprintf(buf, sizeof (buf), "%d", revision); in acpi_detect()
63 snprintf(buf, sizeof (buf), "0x%016llx", in acpi_detect()
66 snprintf(buf, sizeof (buf), "0x%08x", rsdp->RsdtPhysicalAddress); in acpi_detect()
70 snprintf(buf, sizeof (buf), "0x%016llx", in acpi_detect()
73 snprintf(buf, sizeof (buf), "%d", rsdp->Length); in acpi_detect()
/illumos-gate/usr/src/cmd/dlstat/
H A Ddlstat.c675 (void) snprintf(ubuf.h_rbytes, sizeof (ubuf.h_rbytes), in show_history_res()
679 (void) snprintf(ubuf.h_obytes, sizeof (ubuf.h_obytes), in show_history_res()
833 (void) snprintf(buf, bufsize, "%.0lf", num); in map_to_units()
1016 (void) snprintf(buf->r_index, sizeof (buf->r_index), in print_rx_generic_ring_stats()
1050 (void) snprintf(buf->r_index, sizeof (buf->r_index), in print_tx_generic_ring_stats()
1153 (void) snprintf(buf->l_id, sizeof (buf->l_id), "hw"); in print_rx_generic_lane_stats()
1155 (void) snprintf(buf->l_id, sizeof (buf->l_id), "sw"); in print_rx_generic_lane_stats()
1166 (void) snprintf(buf->l_index, sizeof (buf->l_index), in print_rx_generic_lane_stats()
1212 (void) snprintf(buf->l_index, sizeof (buf->l_index), in print_tx_generic_lane_stats()
1419 (void) snprintf(buf->ap_portname, in print_aggr_port_stats()
[all …]
/illumos-gate/usr/src/cmd/devmgmt/cmds/
H A Ddevfree.c201 (void) snprintf(msg, sizeof (msg), M_INVKEY, *argp); in main()
217 (void) snprintf(msg, sizeof(msg), M_RSVTAB, rsvtab); in main()
221 (void) snprintf(msg, sizeof (msg), M_ERROR, errno); in main()
242 (void) snprintf(msg, sizeof(msg), M_DEVTAB, devtab); in main()
246 (void) snprintf(msg, sizeof (msg), M_ERROR, errno); in main()
257 (void) snprintf(msg, sizeof(msg), M_INVKEY, *argp); in main()
276 (void) snprintf(msg, sizeof(msg), M_RSVTAB, rsvtab); in main()
281 (void) snprintf(msg, sizeof (msg), M_ERROR, errno); in main()
290 (void) snprintf(msg, sizeof(msg), M_NOTONKEY, *argp); in main()
297 (void) snprintf(msg, sizeof(msg), M_NOTRSVD, *argp); in main()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_smb.c741 tl = snprintf(p, sz, "SMB R"); in interpret_smb()
743 tl = snprintf(p, sz, "SMB C"); in interpret_smb()
761 tl = snprintf(p, sz, "%s", xtra); in interpret_smb()
1429 tl = snprintf(xtra, xsz, in interpret_trans()
1435 snprintf(xtra, xsz, in interpret_trans()
2032 tl = snprintf(outstr, outsz, in interpret_default()
2049 tl = snprintf(outstr, outsz, in interpret_default()
2066 tl = snprintf(outstr, outsz, in interpret_default()
2083 tl = snprintf(outstr, outsz, in interpret_default()
2108 tl = snprintf(outstr, outsz, in interpret_default()
[all …]
H A Dsnoop_aecho.c42 (void) snprintf(get_sum_line(), MAXLINE, in interpret_aecho()
47 (void) snprintf(get_sum_line(), MAXLINE, in interpret_aecho()
55 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aecho()
63 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aecho()
67 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aecho()
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_log.c92 msglen = snprintf(msgbuf, EIB_MAX_LINE, "%llx: %s", in eib_log()
95 msglen = snprintf(msgbuf, EIB_MAX_LINE, "%s", msg); in eib_log()
135 (void) snprintf(newfmt, EIB_MAX_LINE, "eoib%d__%s", inst, fmt); in eib_dprintf_verbose()
159 (void) snprintf(msgbuf, EIB_MAX_LINE, in eib_dprintf_pkt()
175 (void) snprintf(bufp, len, "eoib%02d__%02x ", in eib_dprintf_pkt()
180 (void) snprintf(bufp, len, "%02x ", p[i]); in eib_dprintf_pkt()
184 (void) snprintf(bufp, len, "%02x\n", p[i]); in eib_dprintf_pkt()
204 (void) snprintf(newfmt, EIB_MAX_LINE, "eoib%d__%s", inst, fmt); in eib_dprintf_args()
226 (void) snprintf(newfmt, EIB_MAX_LINE, "eoib%d__%s", inst, fmt); in eib_dprintf_debug()
249 (void) snprintf(newfmt, EIB_MAX_LINE, "eoib%d__%s", inst, fmt); in eib_dprintf_warn()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgethostent.c157 len = snprintf(buf1, buflen1, "%s", ips[0]); in _nss_ldap_hosts2str_int()
160 len = snprintf(buf2, buflen2, "\n%s ", ips[0]); in _nss_ldap_hosts2str_int()
191 len = snprintf(buf1, buflen1, " %s", cname); in _nss_ldap_hosts2str_int()
194 len = snprintf(buf1, buflen1, " %s.%s", cname, in _nss_ldap_hosts2str_int()
211 len = snprintf(buf1, buflen1, " %s", in _nss_ldap_hosts2str_int()
215 len = snprintf(buf1, buflen1, " %s.%s", in _nss_ldap_hosts2str_int()
317 rc = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
322 rc = snprintf(userdata, sizeof (userdata), in getbyname()
334 rc = snprintf(userdata, sizeof (userdata), in getbyname()
340 rc = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
[all …]
H A Dgethostent6.c99 rc = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
103 rc = snprintf(userdata, sizeof (userdata), in getbyname()
135 rc = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
140 rc = snprintf(userdata, sizeof (userdata), in getbyname()
147 rc = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
152 rc = snprintf(userdata, sizeof (userdata), in getbyname()
158 rc = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
163 rc = snprintf(userdata, sizeof (userdata), in getbyname()
214 ret = snprintf(searchfilter, sizeof (searchfilter), in getbyaddr()
219 ret = snprintf(userdata, sizeof (userdata), in getbyaddr()
/illumos-gate/usr/src/cmd/devfsadm/
H A Daudio_link.c136 (void) snprintf(buf, sizeof (buf), "/dev/mixer%ld", num); in send_number()
203 (void) snprintf(devpath, sizeof (devpath), "%s:%s", tmp, mn); in audio_process()
243 (void) snprintf(newpath, sizeof (newpath), "sound/%s:%d%s", in audio_process()
270 (void) snprintf(re_string, RE_SIZE, "%s", "^mixer([0-9]+)"); in audio_process()
287 (void) snprintf(linksrc, sizeof (linksrc), "sound/%s:%ld", in audio_process()
289 (void) snprintf(linkdst, sizeof (linkdst), "sound/%ld", num); in audio_process()
292 (void) snprintf(linksrc, sizeof (linksrc), "sound/%s:%ldctl", in audio_process()
297 (void) snprintf(linksrc, sizeof (linksrc), "sound/%s:%lddsp", in audio_process()
299 (void) snprintf(linkdst, sizeof (linkdst), "dsp%ld", num); in audio_process()
302 (void) snprintf(linksrc, sizeof (linksrc), "sound/%s:%ldmixer", in audio_process()
[all …]
/illumos-gate/usr/src/cmd/pcieadm/
H A Dpcieadm_devs.c130 if (snprintf(buf, buflen, "%x/%x/%x", psdo->psdo_bus, in pcieadm_show_devs_ofmt_cb()
152 (void) snprintf(buf, buflen, "--"); in pcieadm_show_devs_ofmt_cb()
160 (void) snprintf(buf, buflen, "--"); in pcieadm_show_devs_ofmt_cb()
167 (void) snprintf(buf, buflen, "--"); in pcieadm_show_devs_ofmt_cb()
181 } else if (snprintf(buf, buflen, "%x", psdo->psdo_vid) >= in pcieadm_show_devs_ofmt_cb()
299 if (snprintf(buf, buflen, "PCIe Gen %ux%u", in pcieadm_show_devs_ofmt_cb()
353 (void) snprintf(dinst, sizeof (dinst), "%s%d", in pcieadm_show_devs_match()
479 (void) snprintf(venstr, sizeof (venstr), in pcieadm_show_devs_walk_cb()
492 (void) snprintf(devstr, sizeof (devstr), in pcieadm_show_devs_walk_cb()
512 (void) snprintf(subvenstr, sizeof (subvenstr), in pcieadm_show_devs_walk_cb()
[all …]
/illumos-gate/usr/src/cmd/mail/
H A Dsendmail.c101 (void) snprintf(buf, sizeof (buf), "%s%s %s\n", in sendmail()
104 (void) snprintf(buf, sizeof (buf), "%s%s %s\n", in sendmail()
119 (void) snprintf(buf, sizeof (buf), in sendmail()
206 (void) snprintf(buf, sizeof (buf), "%s \n", in sendmail()
239 snprintf(buf, sizeof (buf), "%s%s\n", in sendmail()
259 (void) snprintf(line, sizeof (line), "%s \n", in sendmail()
267 (void) snprintf(line, sizeof (line), "%s \n", in sendmail()
275 (void) snprintf(line, sizeof (line), "%s \n", in sendmail()
295 (void) snprintf(line, sizeof (line), "%s \n", in sendmail()
303 (void) snprintf(line, sizeof (line), "%s \n", in sendmail()
[all …]
/illumos-gate/usr/src/cmd/gcore/
H A Dgcore.c67 len = snprintf(fname, size, "%d", (int)pip->pr_pid); in convert_path()
70 len = snprintf(fname, size, "%d", (int)pip->pr_uid); in convert_path()
73 len = snprintf(fname, size, "%d", (int)pip->pr_gid); in convert_path()
76 len = snprintf(fname, size, "%s", pip->pr_fname); in convert_path()
85 len = snprintf(fname, size, "%s", &exec[1]); in convert_path()
90 len = snprintf(fname, size, "%s", uts.nodename); in convert_path()
95 len = snprintf(fname, size, "%s", uts.machine); in convert_path()
98 len = snprintf(fname, size, "%ld", (long)time(NULL)); in convert_path()
107 len = snprintf(fname, size, "%d", in convert_path()
117 len = snprintf(fname, size, "%%%c", *p); in convert_path()
[all …]
/illumos-gate/usr/src/cmd/backup/lib/
H A Dmyrcmd.c93 (void) snprintf(myrcmd_stderr, sizeof (myrcmd_stderr), in myrcmd()
101 (void) snprintf(myrcmd_stderr, in myrcmd()
122 (void) snprintf(myrcmd_stderr, sizeof (myrcmd_stderr), in myrcmd()
151 (void) snprintf(myrcmd_stderr, in myrcmd()
157 (void) snprintf(myrcmd_stderr, in myrcmd()
204 (void) snprintf(myrcmd_stderr, sizeof (myrcmd_stderr), in myrcmd()
227 (void) snprintf(myrcmd_stderr, sizeof (myrcmd_stderr), in myrcmd()
230 (void) snprintf(myrcmd_stderr, sizeof (myrcmd_stderr), in myrcmd()
247 (void) snprintf(myrcmd_stderr, sizeof (myrcmd_stderr), in myrcmd()
251 (void) snprintf(myrcmd_stderr, sizeof (myrcmd_stderr), in myrcmd()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_configfile.c333 (void) snprintf(*errmsg, MAXPATHLEN, in lex()
358 (void) snprintf(*errmsg, MAXPATHLEN, in lex()
511 (void) snprintf(*errmsg, MAXPATHLEN, in usb_get_conf_rec()
531 (void) snprintf(*errmsg, MAXPATHLEN, in usb_get_conf_rec()
574 (void) snprintf(*errmsg, MAXPATHLEN, in usb_get_conf_rec()
589 (void) snprintf(*errmsg, MAXPATHLEN, in usb_get_conf_rec()
619 (void) snprintf(*errmsg, MAXPATHLEN, in usb_get_conf_rec()
625 (void) snprintf(*errmsg, MAXPATHLEN, in usb_get_conf_rec()
759 (void) snprintf(*errmsg, MAXPATHLEN, in add_entry()
767 (void) snprintf(*errmsg, MAXPATHLEN, in add_entry()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_confmgr.c87 (void) snprintf(errstr, MAXERROR, in read_line()
91 (void) snprintf(errstr, MAXERROR, in read_line()
123 (void) snprintf(errstr, sizeof (errstr), in read_file()
149 (void) snprintf(errstr, sizeof (errstr), in read_file()
158 (void) snprintf(errstr, sizeof (errstr), in read_file()
167 (void) snprintf(errstr, sizeof (errstr), in read_file()
220 (void) snprintf(errstr, sizeof (errstr), in read_file()
228 (void) snprintf(errstr, sizeof (errstr), in read_file()
265 (void) snprintf(errmsg, sizeof (errmsg), in set_attr()
304 (void) snprintf(errmsg, sizeof (errmsg), in __s_api_create_config_door_str()
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dckvolseq.c59 (void) snprintf(path, sizeof (path), "%s/pkginfo", dir); in ckvolseq()
65 (void) snprintf(path, sizeof (path), "%s/pkgmap", dir); in ckvolseq()
75 (void) snprintf(path, sizeof (path), "%s/pkginfo", dir); in ckvolseq()
91 (void) snprintf(path, sizeof (path), "%s/root.%d", dir, part); in ckvolseq()
94 (void) snprintf(path, sizeof (path), "%s/reloc.%d", dir, part); in ckvolseq()
98 (void) snprintf(path, sizeof (path), "%s/install", in ckvolseq()
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_conf.c205 (void) snprintf(*errmsg, MAXPATHLEN, in ib_lex()
230 (void) snprintf(*errmsg, MAXPATHLEN, in ib_lex()
500 (void) snprintf(*errmsg, MAXPATHLEN, in ib_get_services()
554 (void) snprintf(*errmsg, MAXPATHLEN, in ib_get_services()
567 (void) snprintf(*errmsg, MAXPATHLEN, in ib_get_services()
572 (void) snprintf(*errmsg, MAXPATHLEN, in ib_get_services()
741 (void) snprintf(*errmsg, MAXPATHLEN, in ib_init_file()
749 (void) snprintf(*errmsg, MAXPATHLEN, in ib_init_file()
982 (void) snprintf(sbuf, 9, "\"\""); in ib_delete_service()
1020 (void) snprintf(*errmsg, MAXPATHLEN, in ib_delete_service()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_msg.c365 (void) snprintf(p, len, fmt, cmd, target, in ap_err()
371 (void) snprintf(p, len, fmt, cmd, target); in ap_err()
374 (void) snprintf(p, len, fmt, target); in ap_err()
381 (void) snprintf(p, len, fmt, option); in ap_err()
391 (void) snprintf(p, len, fmt); in ap_err()
402 (void) snprintf(p, len, "%s", rinfostr); in ap_err()
404 (void) snprintf(p, len, fmt, cmd, target); in ap_err()
410 (void) snprintf(p, len, fmt, sym, path); in ap_err()
413 (void) snprintf(p, len, fmt, path, syserr); in ap_err()
416 (void) snprintf(p, len, fmt); in ap_err()
[all …]
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_nicenum.c72 (void) snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format()
75 (void) snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format()
78 (void) snprintf(buf, buflen, "%s", "-"); in zfs_nicenum_format()
91 (void) snprintf(buf, buflen, "-"); in zfs_nicenum_format()
98 (void) snprintf(buf, buflen, "%llu%s", (u_longlong_t)n, u); in zfs_nicenum_format()
124 if (snprintf(buf, buflen, "%d%s", in zfs_nicenum_format()
129 if (snprintf(buf, buflen, "%.*f%s", i, in zfs_nicenum_format()
/illumos-gate/usr/src/cmd/bnu/
H A Duuxqt.c1074 (void) snprintf(_Cmd, sizeof (_Cmd),
1079 (void) snprintf(_Cmd, sizeof (_Cmd),
1095 (void) snprintf(msgbuf, sizeof (msgbuf),
1098 (void) snprintf(lbuf, sizeof (lbuf),
1101 (void) snprintf(msgbuf, sizeof (msgbuf),
1154 (void) snprintf(msgbuf, sizeof (msgbuf),
1158 (void) snprintf(msgbuf, sizeof (msgbuf),
1191 (void) snprintf(msgbuf + strlen(msgbuf),
1195 (void) snprintf(msgbuf + strlen(msgbuf),
1236 (void) snprintf(msgbuf + strlen(msgbuf),
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_hw.c209 snprintf(buf, sizeof(buf), "Phy %d supported:", i); in BnxeHwReqPhyMediumSettings()
218 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
229 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
240 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
251 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
262 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
273 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
284 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
303 snprintf(buf, sizeof(buf), "Phy %d link config:", i); in BnxeHwReqPhyMediumSettings()
410 snprintf(buf, sizeof(buf), "Requesting Phy %d speed:", i); in BnxeHwReqPhyMediumSettings()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dprintf-6961.c73 (void) snprintf(buf + 4, sizeof (buf) - 4, "%lo", ~0L); in main()
80 (void) snprintf(buf + 4, sizeof (buf) - 4, "%lo", 42L); in main()
87 (void) snprintf(buf + 4, sizeof (buf) - 4, "%ld", ~0L); in main()
94 (void) snprintf(buf + 4, sizeof (buf) - 4, "%ld", 42L); in main()
101 (void) snprintf(buf + 4, sizeof (buf) - 4, "%lx", ~0L); in main()
108 (void) snprintf(buf + 4, sizeof (buf) - 4, "%lx", 42L); in main()
/illumos-gate/usr/src/lib/libcommputil/common/
H A Dsdp.c47 wrote = snprintf(buf, len, "a=%s%c%s%s", \
51 wrote = snprintf(buf, len, "a=%s%s", (m_attr)-> \
63 wrote = snprintf(buf, len, "k=%s%c%s%s", \
67 wrote = snprintf(buf, len, "k=%s%s", (m_key)-> \
98 wrote = snprintf(buf, len, "c=%s %s %s/%d/%d" \
103 wrote = snprintf(buf, len, "c=%s %s %s/%d%s", \
776 len += snprintf(buf, 1, "%llu", in sdp_get_length()
1048 wrote = snprintf(buf, len, " %llu", in sdp_session_to_str()
1054 wrote = snprintf(buf, len, "%s", COMMP_CRLF); in sdp_session_to_str()
1075 wrote = snprintf(buf, len, "%s", COMMP_CRLF); in sdp_session_to_str()
[all …]

12345678910>>...92