Home
last modified time | relevance | path

Searched refs:asprintf (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/freebsd-11-stable/bin/ps/
HDprint.c124 asprintf(&str, "%s%s%s%s%s", in command()
151 asprintf(&str, "%s%s%s%s", in command()
177 asprintf(&str, "%s%s%s%s%s", in ucomm()
185 asprintf(&str, "%s/%s%s", k->ki_p->ki_comm, in ucomm()
199 asprintf(&str, "%s%s", k->ki_p->ki_tdname, in tdnam()
297 asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_level)); in pri()
306 asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_user)); in upr()
349 asprintf(&str, "%#jx", (uintmax_t)dev); in tdev()
369 asprintf(&str, "%s%c", ttname, in tname()
459 asprintf(&str, "%lx", (long)k->ki_p->ki_wchan); in wchan()
[all …]
/freebsd-11-stable/lib/libc/posix1e/
HDacl_to_text.c90 len = asprintf(&tmpbuf, "%suser::%s\n", buf, in _posix1e_acl_to_text()
117 len = asprintf(&tmpbuf, "%suser:%s:%s\t\t# " in _posix1e_acl_to_text()
122 len = asprintf(&tmpbuf, "%suser:%s:%s\n", buf, in _posix1e_acl_to_text()
145 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in _posix1e_acl_to_text()
149 len = asprintf(&tmpbuf, "%sgroup::%s\n", buf, in _posix1e_acl_to_text()
177 len = asprintf(&tmpbuf, "%sgroup:%s:%s\t\t# " in _posix1e_acl_to_text()
182 len = asprintf(&tmpbuf, "%sgroup:%s:%s\n", buf, in _posix1e_acl_to_text()
197 len = asprintf(&tmpbuf, "%smask::%s\n", buf, in _posix1e_acl_to_text()
211 len = asprintf(&tmpbuf, "%sother::%s\n", buf, in _posix1e_acl_to_text()
/freebsd-11-stable/contrib/openpam/t/
HDt_pam_conv.c74 asprintf(&s->comment, "expected %d messages, got %d", in t_pam_conv()
89 asprintf(&s->comment, in t_pam_conv()
95 asprintf(&s->comment, in t_pam_conv()
114 asprintf(&s->comment, "invalid message style %d", in t_pam_conv()
128 asprintf(&s->comment, "%s", strerror(ENOMEM)); in t_pam_conv()
/freebsd-11-stable/usr.sbin/lpr/lpd/
HDlpd.c672 asprintf(&syserr, in chkhost()
675 asprintf(&usererr, in chkhost()
680 asprintf(&syserr, in chkhost()
683 asprintf(&usererr, in chkhost()
698 asprintf(&syserr, "Cannot print IP address (error %d)", in chkhost()
700 asprintf(&usererr, "Cannot print IP address for your host"); in chkhost()
715 asprintf(&syserr, "reverse lookup results in non-FQDN %s", in chkhost()
728 asprintf(&syserr, "dns lookup for address %s failed: %s", in chkhost()
730 asprintf(&usererr, "hostname for your address (%s) unknown: %s", in chkhost()
745 asprintf(&syserr, "address for remote host (%s) not matched", in chkhost()
[all …]
/freebsd-11-stable/libexec/rtld-elf/tests/
HDld_library_pathfds.c69 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d", files.etc) > 0); in ATF_TC_BODY()
82 ATF_REQUIRE(asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=::") > 0); in ATF_TC_BODY()
96 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d", files.testdir) > 0); in ATF_TC_BODY()
110 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d", in ATF_TC_BODY()
125 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d:%d", in ATF_TC_BODY()
140 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d", in ATF_TC_BODY()
/freebsd-11-stable/usr.bin/stdbuf/
HDstdbuf.c92 i = asprintf(&preload1, "LD_PRELOAD=" LIBSTDBUF); in main()
94 i = asprintf(&preload1, "LD_PRELOAD=%s:%s", preload0, in main()
102 i = asprintf(&preload1, "LD_32_PRELOAD=" LIBSTDBUF32); in main()
104 i = asprintf(&preload1, "LD_32_PRELOAD=%s:%s", preload0, in main()
/freebsd-11-stable/contrib/dma/
HDspool.c99 if (asprintf(&queue->id, "%"PRIxMAX, (uintmax_t)st.st_ino) < 0) in newspoolf()
244 if (asprintf(&it->queueid, "%s.%"PRIxPTR, queue->id, (uintptr_t)it) <= 0) in linkspool()
246 if (asprintf(&it->queuefn, "%s/Q%s", config.spooldir, it->queueid) <= 0) in linkspool()
248 if (asprintf(&it->mailfn, "%s/M%s", config.spooldir, it->queueid) <= 0) in linkspool()
302 if (asprintf(&queuefn, "%s/Q%s", config.spooldir, de->d_name + 1) < 0) in load_queue()
304 if (asprintf(&mailfn, "%s/M%s", config.spooldir, de->d_name + 1) < 0) in load_queue()
407 if (asprintf(&flushfn, "%s/%s", config.spooldir, SPOOL_FLUSHFILE) < 0) in flushqueue_since()
431 if (asprintf(&flushfn, "%s/%s", config.spooldir, SPOOL_FLUSHFILE) < 0) in flushqueue_signal()
/freebsd-11-stable/crypto/heimdal/kadmin/
HDcheck.c131 if (asprintf(&p, "%s/%s@%s", KRB5_TGS_NAME, realm, realm) == -1) { in check()
151 if (asprintf(&p, "kadmin/admin@%s", realm) == -1) { in check()
171 if (asprintf(&p, "kadmin/changepw@%s", realm) == -1) { in check()
198 if (asprintf(&p, "afs/%s@%s", p2, realm) == -1) { in check()
213 if (asprintf(&p, "afs@%s", realm) == -1) { in check()
HDstash.c61 asprintf(&opt->key_file_string, "%s/m-key", hdb_db_dir(context)); in stash()
112 asprintf(&old, "%s.old", opt->key_file_string); in stash()
113 asprintf(&new, "%s.new", opt->key_file_string); in stash()
/freebsd-11-stable/usr.bin/sdiff/
HDedit.c113 if (asprintf(&text, "%s\n%s\n", left, right) == -1) in eparse()
123 if (asprintf(&text, "%s\n", left) == -1) in eparse()
134 if (asprintf(&text, "%s\n", right) == -1) in eparse()
144 if (asprintf(&filename, "%s/sdiff.XXXXXXXXXX", tmpdir) == -1) in eparse()
/freebsd-11-stable/usr.bin/rctl/
HDrctl.c162 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju", in expand_amount()
165 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju/%s", in expand_amount()
225 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule()
233 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule()
235 ret = asprintf(&resolved, "%s:%s:%s", subject, textid, rest); in expand_rule()
288 ret = asprintf(&humanized, "%s:%s:%s", subject, textid, rest); in humanize_ids()
345 ret = asprintf(&humanized, "%s:%s:%s:%s=%s", in humanize_amount()
348 ret = asprintf(&humanized, "%s:%s:%s:%s=%s/%s", in humanize_amount()
487 ret = asprintf(&humanized, "%s=%s", resource, buf); in humanize_usage_amount()
/freebsd-11-stable/crypto/heimdal/lib/asn1/
HDgen.c129 if (asprintf(&header, "%s.h", headerbase) < 0 || header == NULL) in init_generate()
131 if (asprintf(&fn, "%s.hx", headerbase) < 0 || fn == NULL) in init_generate()
140 if (asprintf(&privheader, "%s-priv.h", headerbase) < 0 || privheader == NULL) in init_generate()
142 if (asprintf(&fn, "%s-priv.hx", headerbase) < 0 || fn == NULL) in init_generate()
151 if (asprintf(&template, "%s-template.c", headerbase) < 0 || template == NULL) in init_generate()
245 if (asprintf(&fn, "%s_files", base) < 0 || fn == NULL) in init_generate()
348 if (asprintf (&filename, "%s_%s.x", STEM, name) < 0 || filename == NULL) in generate_header_of_codefile()
696 if (asprintf(newbasename, "%s_%s", basename, name) < 0) in getnewbasename()
767 if (asprintf (&n, "_unused%d:1", pos) < 0 || n == NULL) in define_type()
775 if (asprintf (&n, "%s:1", m->gen_name) < 0 || n == NULL) in define_type()
[all …]
HDcheck-der.c80 if (asprintf (&tests[i].name, "integer %d", values[i]) < 0) in test_integer()
204 if (asprintf (&tests[i].name, "unsigned %u", values[i]) < 0) in test_unsigned()
246 if (asprintf (&tests[0].name, "a octet string") < 0) in test_octet_string()
288 if (asprintf (&tests[0].name, "a bmp string") < 0) in test_bmp_string()
293 if (asprintf (&tests[1].name, "second bmp string") < 0) in test_bmp_string()
336 if (asprintf (&tests[0].name, "a universal string") < 0) in test_universal_string()
341 if (asprintf (&tests[1].name, "second universal string") < 0) in test_universal_string()
378 if (asprintf (&tests[0].name, "the string \"%s\"", s1) < 0) in test_general_string()
416 if (asprintf (&tests[i].name, "time %d", (int)values[i]) < 0) in test_generalized_time()
465 if (asprintf (&tests[i].name, "oid %d", i) < 0) in test_oid()
[all …]
HDgen_template.c229 if (asprintf(&str, "offsetof(struct %s, %s)", basetype, name) < 0 || str == NULL) in partial_offset()
560 if (asprintf(&bname, "bmember_%s_%p", name ? name : "", t) < 0 || bname == NULL) in template_members()
599 if (asprintf(&newbasename, "%s_%s", basetype, name) < 0) in template_members()
623 if (asprintf(&tname, "tag_%s_%p", name ? name : "", t) < 0 || tname == NULL) in template_members()
627 if (asprintf(&elname, "%s_%s", basetype, tname) < 0 || elname == NULL) in template_members()
653 if (asprintf(&sename, "%s_%s_val", basetype, name) < 0) in template_members()
657 if (asprintf(&sename, "%s_val", symbol_name(basetype, t->subtype)) < 0) in template_members()
673 if (asprintf(&elname, "%s_%s_%p", basetype, tname, t) < 0 || elname == NULL) in template_members()
693 if (asprintf(&tname, "asn1_choice_%s_%s%x", in template_members()
710 if (asprintf(&elname, "%s_choice_%s", basetype, m->gen_name) < 0 || elname == NULL) in template_members()
[all …]
HDgen_encode.c267 if (asprintf (&s, "%s(%s)->%s", m->optional ? "" : "&", name, m->gen_name) < 0 || s == NULL) in encode_type()
362 if (asprintf (&n, "&(%s)->val[i]", name) < 0 || n == NULL) in encode_type()
364 if (asprintf (&sname, "%s_S_Of", tmpstr) < 0 || sname == NULL) in encode_type()
390 if (asprintf (&tname, "%s_tag", tmpstr) < 0 || tname == NULL) in encode_type()
411 if (asprintf (&s, "(%s)", name) < 0 || s == NULL) in encode_type()
424 if (asprintf(&s2, "%s(%s)->u.%s", m->optional ? "" : "&", in encode_type()
HDgen_copy.c113 if (asprintf (&fs, "%s(%s)->%s%s", in copy_type()
119 if (asprintf (&ts, "%s(%s)->%s%s", in copy_type()
170 if (asprintf(&f, "&(%s)->val[(%s)->len]", from, to) < 0) in copy_type()
174 if (asprintf(&T, "&(%s)->val[(%s)->len]", to, to) < 0) in copy_type()
HDgen_decode.c329 if (asprintf (&s, "%s(%s)->%s", m->optional ? "" : "&", in decode_type()
367 if (asprintf (&s, "%s(%s)->%s", m->optional ? "" : "&", name, m->gen_name) < 0 || s == NULL) in decode_type()
391 if (asprintf (&s, "%s->%s", name, m->gen_name) < 0 || s == NULL) in decode_type()
443 if (asprintf (&n, "&(%s)->val[(%s)->len]", name, name) < 0 || n == NULL) in decode_type()
445 if (asprintf (&sname, "%s_s_of", tmpstr) < 0 || sname == NULL) in decode_type()
475 if (asprintf(&typestring, "%s_type", tmpstr) < 0 || typestring == NULL) in decode_type()
529 if (asprintf (&tname, "%s_Tag", tmpstr) < 0 || tname == NULL) in decode_type()
587 if (asprintf (&s, "%s(%s)->u.%s", m->optional ? "" : "&", in decode_type()
/freebsd-11-stable/sbin/iscontrol/
HDiscontrol.c245 asprintf(&op->initiatorName, "%s:%s", op->iqn, hostname); in main()
247 asprintf(&op->initiatorName, "%s:%d", op->iqn, (int)time(0) & 0xff); // XXX: in main()
251 asprintf(&op->initiatorName, "%s", hostname); in main()
253 asprintf(&op->initiatorName, "%d", (int)time(0) & 0xff); // XXX: in main()
/freebsd-11-stable/contrib/netbsd-tests/lib/libcurses/director/
HDdirector.c247 if (asprintf(&arg1, "%d", cmdpipe[0]) < 0) in main()
250 if (asprintf(&arg2, "%d", cmdpipe[1]) < 0) in main()
253 if (asprintf(&arg3, "%d", slvpipe[0]) < 0) in main()
256 if (asprintf(&arg4, "%d", slvpipe[1]) < 0) in main()
/freebsd-11-stable/crypto/heimdal/lib/gssapi/mech/
HDgss_display_status.c167 e = asprintf(&buf, "%s", supplementary_error( in gss_display_status()
170 e = asprintf (&buf, "%s %s", in gss_display_status()
194 e = asprintf (&buf, "unknown mech-code %lu for mech %.*s", in gss_display_status()
/freebsd-11-stable/crypto/heimdal/lib/gssapi/krb5/
HDdisplay_status.c167 e = asprintf(&buf, "%s", in _gsskrb5_display_status()
170 e = asprintf (&buf, "%s %s", in _gsskrb5_display_status()
179 e = asprintf(&buf, "unknown mech error-code %u", in _gsskrb5_display_status()
/freebsd-11-stable/contrib/openpam/lib/libpam/
HDopenpam_asprintf.h37 #undef asprintf
38 #define asprintf(arg, ...) openpam_asprintf(arg, __VA_ARGS__) macro
/freebsd-11-stable/contrib/netbsd-tests/lib/libcurses/slave/
HDcommands.c80 asprintf(&string, "NULL"); in report_ptr()
82 asprintf(&string, "%p", ptr); in report_ptr()
95 asprintf(&string, "%d", value); in report_int()
/freebsd-11-stable/lib/libpam/modules/pam_ksu/
HDpam_ksu.c126 (void)asprintf(&prompt, "Password for %s:", su_principal_name); in auth_krb5()
128 (void)asprintf(&prompt, "Password:"); in auth_krb5()
205 (void)asprintf(&ccname, "%s%lu", KRB5_DEFAULT_CCROOT, (unsigned long)ruid); in get_su_principal()
248 (void)asprintf(su_principal_name, "%s/%s@%s", principal_name, superuser, p); in get_su_principal()
/freebsd-11-stable/crypto/heimdal/kdc/
HDkstash.c88 asprintf(&keyfile, "%s/m-key", hdb_db_dir(context)); in main()
136 asprintf(&old, "%s.old", keyfile); in main()
137 asprintf(&new, "%s.new", keyfile); in main()

12345678910>>...18