Home
last modified time | relevance | path

Searched refs:snprintf (Results 51 – 75 of 2292) sorted by relevance

12345678910>>...92

/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dmerginfo.c167 i = snprintf(pkginfoPath, sizeof (pkginfoPath), in merginfo()
197 i = snprintf(path, PATH_MAX, "%s/%s", pkgloc, PKGINFO); in merginfo()
442 i = snprintf(path, PATH_MAX, "%s/install", instdir); in merginfo()
455 i = snprintf(path, PATH_MAX, "%s/install/%s", in merginfo()
463 i = snprintf(temp, PATH_MAX, "%s/%s", pkgbin, in merginfo()
484 i = snprintf(path, PATH_MAX, "%s/install", instdir); in merginfo()
507 i = snprintf(path, PATH_MAX, "%s/install/%s", in merginfo()
516 i = snprintf(temp, PATH_MAX, "%s/install/%s", in merginfo()
547 i = snprintf(temp, sizeof (temp), "%s/%s", in merginfo()
566 i = snprintf(temp, sizeof (temp), "%s/pkgmap", in merginfo()
[all …]
H A Dmain.c1395 (void) snprintf(pkgloc, sizeof (pkgloc), in main()
1398 (void) snprintf(pkgbin, sizeof (pkgbin), in main()
1401 (void) snprintf(pkgsav, sizeof (pkgsav), in main()
1415 (void) snprintf(savlog, sizeof (savlog), in main()
1548 (void) snprintf(path, sizeof (path), in main()
1748 (void) snprintf(path, sizeof (path), in main()
2046 (void) snprintf(script, sizeof (script), in main()
2602 (void) snprintf(pkgloc, sizeof (pkgloc), in set_dryrun_dir_loc()
2604 (void) snprintf(pkgbin, sizeof (pkgbin), in set_dryrun_dir_loc()
2606 (void) snprintf(pkgsav, sizeof (pkgsav), in set_dryrun_dir_loc()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dtemp.c64 snprintf(tempMail, TMPSIZ, "/tmp/Rs%-ld", pid); in tinit()
65 snprintf(tempQuit, TMPSIZ, "/tmp/Rm%-ld", pid); in tinit()
66 snprintf(tempEdit, TMPSIZ, "/tmp/Re%-ld", pid); in tinit()
67 snprintf(tempMesg, TMPSIZ, "/tmp/Rx%-ld", pid); in tinit()
68 snprintf(tempZedit, TMPSIZ, "/tmp/Rz%-ld", pid); in tinit()
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetprojent.c108 len = snprintf(buffer, buflen, "%s:%s:%s:", name[0], id[0], in _nss_ldap_proj2str()
121 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str()
125 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str()
131 len = snprintf(buffer, buflen, ":"); in _nss_ldap_proj2str()
143 len = snprintf(buffer, buflen, "%s", in _nss_ldap_proj2str()
147 len = snprintf(buffer, buflen, ",%s", in _nss_ldap_proj2str()
160 len = snprintf(buffer, buflen, ":%s", attr_str); in _nss_ldap_proj2str()
185 if (snprintf(searchfilter, SEARCHFILTERLEN, in getbyname()
206 if (snprintf(searchfilter, SEARCHFILTERLEN, _F_GETPROJID, in getbyprojid()
H A Dgetservent.c234 len = snprintf(buffer, buflen, "%s", protoval); in _nss_ldap_services2str()
245 len = snprintf(buffer, buflen, " %s", in _nss_ldap_services2str()
330 ret = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
335 ret = snprintf(userdata, sizeof (userdata), in getbyname()
343 ret = snprintf(searchfilter, sizeof (searchfilter), in getbyname()
348 ret = snprintf(userdata, sizeof (userdata), in getbyname()
381 ret = snprintf(portstr, sizeof (portstr), " %d", in getbyport()
387 ret = snprintf(searchfilter, sizeof (searchfilter), in getbyport()
392 ret = snprintf(userdata, sizeof (userdata), in getbyport()
400 ret = snprintf(searchfilter, sizeof (searchfilter), in getbyport()
[all …]
H A Dgetpwnam.c84 (void) snprintf(uid_nobody, sizeof (uid_nobody), "%u", UID_NOBODY); in _nss_ldap_passwd2str()
86 (void) snprintf(gid_nobody, sizeof (gid_nobody), "%u", GID_NOBODY); in _nss_ldap_passwd2str()
153 (void) snprintf(be->buffer, be->buflen, in _nss_ldap_passwd2str()
158 (void) snprintf(argp->buf.buffer, (str_len + 8), in _nss_ldap_passwd2str()
190 ret = snprintf(searchfilter, sizeof (searchfilter), _F_GETPWNAM, name); in getbyname()
194 ret = snprintf(userdata, sizeof (userdata), _F_GETPWNAM_SSD, name); in getbyname()
222 ret = snprintf(searchfilter, sizeof (searchfilter), in getbyuid()
227 ret = snprintf(userdata, sizeof (userdata), in getbyuid()
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_get_info.c63 (void) snprintf(fname, sizeof (fname), "%s/%d/cred", in proc_get_cred()
83 (void) snprintf(fname, sizeof (fname), "%s/%d/secflags", in proc_get_secflags()
111 (void) snprintf(fname, sizeof (fname), "%s/%d/priv", in proc_get_priv()
141 (void) snprintf(fname, sizeof (fname), "%s/%d/ldt", in proc_get_ldt()
172 (void) snprintf(fname, sizeof (fname), "%s/%d/psinfo", in proc_get_psinfo()
189 (void) snprintf(fname, sizeof (fname), "%s/%d/status", in proc_get_status()
212 (void) snprintf(fname, sizeof (fname), "%s/%d/auxv", in proc_get_auxv()
229 (void) snprintf(fname, sizeof (fname), "%s/%d/lwp/%u/lwpsinfo", in proc_get_lwpsinfo()
246 (void) snprintf(fname, sizeof (fname), "%s/%d/lwp/%u/lwpstatus", in proc_get_lwpstatus()
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_debug.c82 snprintf(buf, sizeof(buf), fmt); in elink_cb_dbg()
99 snprintf(buf, sizeof(buf), fmt, arg1); in elink_cb_dbg1()
116 snprintf(buf, sizeof(buf), fmt, arg1, arg2); in elink_cb_dbg2()
133 snprintf(buf, sizeof(buf), fmt, arg1, arg2, arg3); in elink_cb_dbg3()
235 snprintf(c, sizeof(c), "%03x", xx); in BnxeDumpMem()
240 snprintf(c, sizeof(c), "%02x ", *pMem); in BnxeDumpMem()
271 snprintf(c, sizeof(c), "%03x", xx); in BnxeDumpPkt()
283 snprintf(c, sizeof(c), "%03x", xx); in BnxeDumpPkt()
288 snprintf(c, sizeof(c), "%02x ", *pMem); in BnxeDumpPkt()
297 snprintf(c, sizeof(c), "%d", (int)MBLKL(pMblk)); in BnxeDumpPkt()
/illumos-gate/usr/src/lib/pam_modules/ldap/
H A Dldap_acct_mgmt.c60 (void) snprintf(messages[0], sizeof (messages[0]), in warn_user_passwd_will_expire()
64 (void) snprintf(messages[0], sizeof (messages[0]), in warn_user_passwd_will_expire()
69 (void) snprintf(messages[0], sizeof (messages[0]), in warn_user_passwd_will_expire()
91 (void) snprintf(messages[0], sizeof (messages[0]), in display_acct_unlock_time()
106 (void) snprintf(messages[0], sizeof (messages[0]), in display_acct_unlock_time()
111 (void) snprintf(messages[0], sizeof (messages[0]), in display_acct_unlock_time()
117 (void) snprintf(messages[0], sizeof (messages[0]), in display_acct_unlock_time()
136 (void) snprintf(messages[0], sizeof (messages[0]), in warn_user_passwd_expired()
142 (void) snprintf(messages[0], sizeof (messages[0]), in warn_user_passwd_expired()
158 (void) snprintf(messages[0], sizeof (messages[0]), in display_passwd_reset_msg()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_vxlan.c33 (void) snprintf(get_sum_line(), MAXLINE, in interpret_vxlan()
45 (void) snprintf(get_sum_line(), MAXLINE, in interpret_vxlan()
52 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_vxlan()
54 (void) snprintf(get_line(0, 0), get_line_remain(), " %s", in interpret_vxlan()
57 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_vxlan()
/illumos-gate/usr/src/uts/common/inet/
H A Dtunables.c113 nbytes = snprintf(pval, psize, "%u,%u", B_FALSE, B_TRUE); in mod_get_boolean()
115 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_bval); in mod_get_boolean()
117 nbytes = snprintf(pval, psize, "%u", pinfo->prop_cur_bval); in mod_get_boolean()
202 nbytes = snprintf(pval, psize, "%u-%u", in mod_get_uint32()
205 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_uval); in mod_get_uint32()
207 nbytes = snprintf(pval, psize, "%u", pinfo->prop_cur_uval); in mod_get_uint32()
277 nbytes = snprintf(pval, psize, "%u-%u", min, max); in mod_get_buf_prop()
327 nbytes = snprintf(pval, size, "%s %d %d", prop->mpi_name, in mod_get_allprop()
487 tbytes = snprintf(pval, psize, "%u", MOD_PROP_PERM_RW); in mod_get_extra_privports()
520 nbytes = snprintf(pval, size, "%u", ports[i]); in mod_get_extra_privports()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dls.c132 snprintf(lbuf, sizeof (lbuf), " %c %8d %s\n", in command_ls()
136 snprintf(lbuf, sizeof (lbuf), " %c %s\n", in command_ls()
168 snprintf(command_errbuf, sizeof (command_errbuf), in ls_getdir()
177 snprintf(command_errbuf, sizeof (command_errbuf), in ls_getdir()
188 snprintf(command_errbuf, sizeof (command_errbuf), in ls_getdir()
193 snprintf(command_errbuf, sizeof (command_errbuf), in ls_getdir()
198 snprintf(command_errbuf, sizeof (command_errbuf), in ls_getdir()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpsiginfo.c61 l = snprintf(buf, sizeof (buf), _libc_gettext("%s : "), s); in psiginfo()
68 (void) snprintf(buf + l, sizeof (buf) - l, in psiginfo()
79 (void) snprintf(buf + l, sizeof (buf) - l, in psiginfo()
85 (void) snprintf(buf + l, sizeof (buf) - l, in psiginfo()
91 (void) snprintf(buf + l, sizeof (buf) - l, in psiginfo()
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dcpu_prop_update.c105 (void) snprintf(tlb_str, sizeof (tlb_str), in add_tlb_props()
109 (void) snprintf(tlb_str, sizeof (tlb_str), in add_tlb_props()
113 (void) snprintf(tlb_str, sizeof (tlb_str), in add_tlb_props()
119 (void) snprintf(property, sizeof (property), in add_tlb_props()
163 (void) snprintf(cache_str, sizeof (cache_str), in add_cache_props()
167 (void) snprintf(cache_str, sizeof (cache_str), in add_cache_props()
171 (void) snprintf(cache_str, sizeof (cache_str), in add_cache_props()
175 (void) snprintf(cache_str, sizeof (cache_str), in add_cache_props()
181 (void) snprintf(property, sizeof (property), in add_cache_props()
189 (void) snprintf(property, sizeof (property), "%s-size", in add_cache_props()
[all …]
/illumos-gate/usr/src/cmd/latencytop/common/
H A Ddisplay.c113 (void) snprintf(buffer, len, in get_time_string()
116 (void) snprintf(buffer, len, in get_time_string()
119 (void) snprintf(buffer, len, in get_time_string()
122 (void) snprintf(buffer, len, in get_time_string()
196 (void) snprintf(tmp, sizeof (tmp), "%.1f %%", in print_statistics()
200 (void) snprintf(tmp, sizeof (tmp), "--- "); in print_statistics()
227 (void) snprintf(header, sizeof (header), in print_sysglobal()
288 (void) snprintf(header, sizeof (header), in print_empty_process_bar()
374 (void) snprintf(str, sizeof (str) - 1, in print_taskbar_process()
452 tlen = snprintf(NULL, 0, "_%d", tidlist[i]); in print_taskbar_thread()
[all …]
/illumos-gate/usr/src/common/nvme/
H A Dnvme_field.c47 (void) snprintf(msg, msglen, "controller does not support field %s " in nvme_field_supported_nsid()
66 (void) snprintf(msg, msglen, "namespace id %" PRIu64 "is outside the " in nvme_field_valid_nsid()
80 (void) snprintf(msg, msglen, "field %s (%s) value 0x%" in nvme_field_range_check()
102 (void) snprintf(msg, msglen, "field %s (%s) requires " in nvme_field_validate()
112 (void) snprintf(msg, msglen, "field %s (%s) is not " in nvme_field_validate()
120 (void) snprintf(msg, msglen, "field %s (%s) " in nvme_field_validate()
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Ddiskmon_conf.c78 (void) snprintf(buf, buflen, "Invalid state change"); in conf_error_msg()
81 (void) snprintf(buf, buflen, in conf_error_msg()
114 (void) snprintf(buf, buflen, "Unknown error"); in conf_error_msg()
457 (void) snprintf(buf, len, "%c%s", in check_indactions()
472 (void) snprintf(buf, len, "%c%s", in check_indactions()
509 (void) snprintf(buf, len, "%c%s", in check_inds()
559 (void) snprintf(buf, sizeof (buf), "%d-%d", in check_indrules()
600 (void) snprintf(buf, len, "%c%s", in check_consistent_ind_indrules()
613 (void) snprintf(buf, len, "%c%s", in check_consistent_ind_indrules()
731 (void) snprintf(buf, len, "%s\t", prefix); in print_ap()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Ddockdeps.c111 (void) snprintf(file, sizeof (file), in dockdeps()
150 (void) snprintf(wabbrev, sizeof (wabbrev), "%s.*", abbrev); in dockdeps()
222 (void) snprintf(buf, sizeof (buf), ERR_INCOMP_VERS, pkginst, pkgname); in incompat()
252 (void) snprintf(buf, sizeof (buf), ERR_PRENCI, pkginst, in prereq()
257 (void) snprintf(buf, sizeof (buf), ERR_PREREQ, pkginst, in prereq()
287 (void) snprintf(buf, sizeof (buf), in deponme()
290 (void) snprintf(buf, sizeof (buf), in deponme()
299 (void) snprintf(buf, sizeof (buf), ERR_DEPONME, pkginst); in deponme()
301 (void) snprintf(buf, sizeof (buf), ERR_DEPNAM, pkginst, in deponme()
392 (void) snprintf(depfile, sizeof (depfile), in ckrdeps()
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Denx_log.c89 msglen = snprintf(msgbuf, ENX_MAX_LINE, "%llx: %s", in eibnx_log()
92 msglen = snprintf(msgbuf, ENX_MAX_LINE, "%s", msg); in eibnx_log()
133 (void) snprintf(newfmt, ENX_MAX_LINE, "..........%s", fmt); in eibnx_dprintf_verbose()
155 (void) snprintf(newfmt, ENX_MAX_LINE, "........%s", fmt); in eibnx_dprintf_args()
177 (void) snprintf(newfmt, ENX_MAX_LINE, "......%s", fmt); in eibnx_dprintf_debug()
200 (void) snprintf(newfmt, ENX_MAX_LINE, "....%s", fmt); in eibnx_dprintf_warn()
222 (void) snprintf(newfmt, ENX_MAX_LINE, "..%s", fmt); in eibnx_dprintf_err()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_subr.c135 (void) snprintf(buf, count, "%s", begin); in env_process_value()
263 *sz += snprintf(buf, left, "%s", str); in topo_fmristr_build()
265 *sz += snprintf(buf, left, "%s%s", prepend, str); in topo_fmristr_build()
267 *sz += snprintf(buf, left, "%s%s", str, append); in topo_fmristr_build()
291 (void) snprintf(sp, PATH_MAX, TOPO_COMMON_PATH, in topo_search_path()
366 (void) snprintf(buf, len, "0x%02x", type); in topo_sensor_type_name()
381 (void) snprintf(buf, len, "0x%02x", type); in topo_sensor_units_name()
396 (void) snprintf(buf, len, "0x%02x", type); in topo_led_type_name()
411 (void) snprintf(buf, len, "0x%02x", type); in topo_led_state_name()
548 (void) snprintf(buf, len, "0x%02x", state); in topo_sensor_state_name()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_sbd.c869 (void) snprintf(id, bufsize, "%s", name); in ap_cm_id()
871 (void) snprintf(id, bufsize, "%s%d", name, unit); in ap_cm_id()
1078 info += snprintf(info, end - info, p[BI_POWERED]); in bd_info()
1202 info += snprintf(info, end - info, p[MI_ADDRESS], in mem_info()
1204 info += snprintf(info, end - info, p[MI_SIZE], in mem_info()
1208 info += snprintf(info, end - info, p[MI_PERMANENT], in mem_info()
1226 (void) snprintf(physid, sizeof (physid), "%s%s", in mem_info()
1247 info += snprintf(info, end - info, "::%s", cm); in mem_info()
1252 info += snprintf(info, end - info, "::%s", cm); in mem_info()
1257 info += snprintf(info, end - info, p[MI_DELETED], in mem_info()
[all …]
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c104 if (snprintf(tmpfile, size, "%sXXXXXX", file) >= size) { in _file_put_printer()
265 if (snprintf(lfile, sizeof (lfile), "/tmp/%s", map) >= in nis_put_printer()
270 if (snprintf(rfile, sizeof (rfile), "root@%s:/etc/%s", host, map) >= in nis_put_printer()
281 if (snprintf(cmd, sizeof (cmd), "rcp %s %s >/dev/null 2>&1", in nis_put_printer()
295 if (snprintf(cmd, sizeof (cmd), "rcp %s %s >/dev/null 2>&1", in nis_put_printer()
305 if (snprintf(cmd, sizeof (cmd), in nis_put_printer()
317 if (snprintf(cmd, sizeof (cmd), in nis_put_printer()
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dulockf.c61 (void) snprintf(tempfile, MAXNAMESIZE, "%s/LTMP.%ld", X_LOCKDIR, in mklock()
201 (void) snprintf(cb, sizeof (cb), in onelock()
210 (void) snprintf(cb, sizeof (cb), in onelock()
224 (void) snprintf(cb, sizeof (cb), in onelock()
231 (void) snprintf(cb, sizeof (cb), "%s %d", tempfile, errno); in onelock()
255 (void) snprintf(lockname, sizeof (lockname), in fd_mklock()
292 (void) snprintf(lockname, sizeof (lockname), in fd_rmlock()
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Ddimm_topo.c65 (void) snprintf(buf, sizeof (buf), "dimm-rank-base-%d", num); in inhm_vrank()
67 (void) snprintf(buf, sizeof (buf), "dimm-rank-limit-%d", num); in inhm_vrank()
70 (void) snprintf(buf, sizeof (buf), "dimm-socket-interleave-%d", in inhm_vrank()
73 (void) snprintf(buf, sizeof (buf), in inhm_vrank()
78 (void) snprintf(buf, sizeof (buf), "dimm-channel-interleave-%d", in inhm_vrank()
81 (void) snprintf(buf, sizeof (buf), in inhm_vrank()
86 (void) snprintf(buf, sizeof (buf), "dimm-rank-interleave-%d", in inhm_vrank()
89 (void) snprintf(buf, sizeof (buf), in inhm_vrank()
147 (void) snprintf(sbuf, sizeof (sbuf), "%dG", in inhm_dimm()
150 (void) snprintf(sbuf, sizeof (sbuf), "%dM", in inhm_dimm()
/illumos-gate/usr/src/cmd/fm/notify/smtp-notify/common/
H A Dsmtp-notify.c153 (void) snprintf(pp_script, sizeof (pp_script), "%s%s", in process_template()
155 (void) snprintf(tmpfile, sizeof (tmpfile), "%s%s", in process_template()
243 len = snprintf(NULL, 0, subj_fmt, hostname, in build_headers()
247 (void) snprintf(subj, len + 1, subj_fmt, hostname, in build_headers()
255 (void) snprintf(subj, len + 1, subj_fmt, hostname, in build_headers()
260 len = snprintf(NULL, 0, subj_fmt, hostname); in build_headers()
263 (void) snprintf(subj, len + 1, subj_fmt, hostname); in build_headers()
286 len = snprintf(NULL, 0, "%s: %s\n%s: %s\n%s: %s\n%s: %s\n" in build_headers()
302 len = snprintf(NULL, 0, "%s: %s\n%s: %s\n%s: %s\n%s: %s\n" in build_headers()
629 len = snprintf(NULL, 0, body_fmt, hostname, tstamp, in irpt_cbfunc()
[all …]

12345678910>>...92