/freebsd/stand/efi/libefi/ |
H A D | devpath.c | 84 (void)asprintf(&tail, "/%s", suffix); in efi_make_tail() 110 rv = asprintf(&head, "%sVendor(%s)[%x:", type, uuid, size); in efi_vendor_path() 117 rv = asprintf(&name, "%s%02x", head, in efi_vendor_path() 129 if (asprintf(&name, "%s]%s", head, tail) < 0) in efi_vendor_path() 145 if (asprintf(&name, "Pci(%x,%x)%s", in efi_hw_dev_path() 151 if (asprintf(&name, "PCCARD(%x)%s", in efi_hw_dev_path() 156 if (asprintf(&name, "MMap(%x,%" PRIx64 ",%" PRIx64 ")%s", in efi_hw_dev_path() 167 if (asprintf(&name, "Ctrl(%x)%s", in efi_hw_dev_path() 172 if (asprintf(&name, "UnknownHW(%x)%s", subtype, tail) < 0) in efi_hw_dev_path() 193 if (asprintf(&name, "PciRoot(%x)%s", in efi_acpi_dev_path() [all …]
|
/freebsd/bin/ps/ |
H A D | print.c | 116 asprintf(&str, "%s%s%s%s%s", in command() 143 asprintf(&str, "%s%s%s%s", in command() 169 asprintf(&str, "%s%s%s%s%s", in ucomm() 177 asprintf(&str, "%s/%s%s", k->ki_p->ki_comm, in ucomm() 191 asprintf(&str, "%s%s", k->ki_p->ki_tdname, in tdnam() 287 asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_level)); in pri() 296 asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_user)); in upr() 339 asprintf(&str, "%#jx", (uintmax_t)dev); in tdev() 359 asprintf(&str, "%s%c", ttname, in tname() 449 asprintf(&str, "%lx", (long)k->ki_p->ki_wchan); in wchan() [all …]
|
/freebsd/lib/libc/posix1e/ |
H A D | acl_to_text.c | 89 len = asprintf(&tmpbuf, "%suser::%s\n", buf, in _posix1e_acl_to_text() 116 len = asprintf(&tmpbuf, "%suser:%s:%s\t\t# " in _posix1e_acl_to_text() 121 len = asprintf(&tmpbuf, "%suser:%s:%s\n", buf, in _posix1e_acl_to_text() 144 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in _posix1e_acl_to_text() 148 len = asprintf(&tmpbuf, "%sgroup::%s\n", buf, in _posix1e_acl_to_text() 176 len = asprintf(&tmpbuf, "%sgroup:%s:%s\t\t# " in _posix1e_acl_to_text() 181 len = asprintf(&tmpbuf, "%sgroup:%s:%s\n", buf, in _posix1e_acl_to_text() 196 len = asprintf(&tmpbuf, "%smask::%s\n", buf, in _posix1e_acl_to_text() 210 len = asprintf(&tmpbuf, "%sother::%s\n", buf, in _posix1e_acl_to_text()
|
/freebsd/libexec/rtld-elf/tests/ |
H A D | ld_library_pathfds.c | 62 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d", files.etc) > 0); in ATF_TC_BODY() 75 ATF_REQUIRE(asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=::") > 0); in ATF_TC_BODY() 89 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d", files.testdir) > 0); in ATF_TC_BODY() 103 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d", in ATF_TC_BODY() 118 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d:%d", in ATF_TC_BODY() 133 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d", in ATF_TC_BODY()
|
H A D | ld_preload_fds.c | 64 ATF_REQUIRE(asprintf(&senv, "LD_PRELOAD_FDS=::") > 0); in ATF_TC_BODY() 78 asprintf(&senv, "LD_PRELOAD_FDS=%d", libraryfd) > 0); in ATF_TC_BODY() 91 asprintf(&senv, "LD_PRELOAD_FDS=%d:%d", libraryfd, libraryfd) > 0); in ATF_TC_BODY()
|
/freebsd/contrib/openpam/t/ |
H A D | t_pam_conv.c | 72 asprintf(&s->comment, "expected %d messages, got %d", in t_pam_conv() 87 asprintf(&s->comment, in t_pam_conv() 93 asprintf(&s->comment, in t_pam_conv() 112 asprintf(&s->comment, "invalid message style %d", in t_pam_conv() 126 asprintf(&s->comment, "%s", strerror(ENOMEM)); in t_pam_conv()
|
/freebsd/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 668 asprintf(&syserr, in chkhost() 671 asprintf(&usererr, in chkhost() 676 asprintf(&syserr, in chkhost() 679 asprintf(&usererr, in chkhost() 694 asprintf(&syserr, "Cannot print IP address (error %d)", in chkhost() 696 asprintf(&usererr, "Cannot print IP address for your host"); in chkhost() 711 asprintf(&syserr, "reverse lookup results in non-FQDN %s", in chkhost() 724 asprintf(&syserr, "dns lookup for address %s failed: %s", in chkhost() 726 asprintf(&usererr, "hostname for your address (%s) unknown: %s", in chkhost() 741 asprintf(&syserr, "address for remote host (%s) not matched", in chkhost() [all …]
|
/freebsd/usr.sbin/bluetooth/iwmbtfw/ |
H A D | iwmbt_fw.c | 122 asprintf(&fwname, "%s/ibt-hw-%x.%x.%x-fw-%x.%x.%x.%x.%x.%s", in iwmbt_get_fwname() 139 asprintf(&fwname, "%s/ibt-hw-%x.%x.%s", in iwmbt_get_fwname() 149 asprintf(&fwname, "%s/ibt-%u-%u.%s", in iwmbt_get_fwname() 160 asprintf(&fwname, "%s/ibt-%u-%u-%u.%s", in iwmbt_get_fwname() 186 asprintf(&fwname, "%s/ibt-%04x-%04x.%s", in iwmbt_get_fwname_tlv()
|
/freebsd/contrib/dma/ |
H A D | spool.c | 102 if (asprintf(&queue->id, "%"PRIxMAX, (uintmax_t)st.st_ino) < 0) in newspoolf() 247 if (asprintf(&it->queueid, "%s.%"PRIxPTR, queue->id, (uintptr_t)it) <= 0) in linkspool() 249 if (asprintf(&it->queuefn, "%s/Q%s", config.spooldir, it->queueid) <= 0) in linkspool() 251 if (asprintf(&it->mailfn, "%s/M%s", config.spooldir, it->queueid) <= 0) in linkspool() 305 if (asprintf(&queuefn, "%s/Q%s", config.spooldir, de->d_name + 1) < 0) in load_queue() 307 if (asprintf(&mailfn, "%s/M%s", config.spooldir, de->d_name + 1) < 0) in load_queue() 410 if (asprintf(&flushfn, "%s/%s", config.spooldir, SPOOL_FLUSHFILE) < 0) in flushqueue_since() 434 if (asprintf(&flushfn, "%s/%s", config.spooldir, SPOOL_FLUSHFILE) < 0) in flushqueue_signal()
|
/freebsd/crypto/heimdal/kadmin/ |
H A D | check.c | 131 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()
|
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/ |
H A D | zutil_device_path_os.c | 274 if (asprintf(&path, "/sys/bus/pci/slots/%s", in zfs_get_pci_slots_sys_path() 328 tmpsize = asprintf(&tmp1, "/sys/block/%s/device", dev_name); in zfs_get_enclosure_sysfs_path() 349 if (asprintf(&tmp2, "%s/%s", tmp1, ep->d_name) == -1) { in zfs_get_enclosure_sysfs_path() 379 if (asprintf(&path, "/sys/class/%s", tmp3) == -1) { in zfs_get_enclosure_sysfs_path() 452 if (asprintf(&tmp, "/sys/block/%s/slaves/", dev_str) == -1) { in dm_get_underlying_path() 481 if (asprintf(&path, "/dev/%s", ep->d_name) == -1) in dm_get_underlying_path() 500 if (asprintf(&path, "/dev/%s", first_path) == -1) in dm_get_underlying_path()
|
/freebsd/usr.bin/sdiff/ |
H A D | edit.c | 110 if (asprintf(&text, "%s\n%s\n", left, right) == -1) in eparse() 120 if (asprintf(&text, "%s\n", left) == -1) in eparse() 131 if (asprintf(&text, "%s\n", right) == -1) in eparse() 141 if (asprintf(&filename, "%s/sdiff.XXXXXXXXXX", tmpdir) == -1) in eparse()
|
/freebsd/usr.bin/rctl/ |
H A D | rctl.c | 156 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju", in expand_amount() 159 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju/%s", in expand_amount() 219 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule() 227 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule() 229 ret = asprintf(&resolved, "%s:%s:%s", subject, textid, rest); in expand_rule() 282 ret = asprintf(&humanized, "%s:%s:%s", subject, textid, rest); in humanize_ids() 339 ret = asprintf(&humanized, "%s:%s:%s:%s=%s", in humanize_amount() 342 ret = asprintf(&humanized, "%s:%s:%s:%s=%s/%s", in humanize_amount() 482 ret = asprintf(&humanized, "%s=%s", resource, buf); in humanize_usage_amount()
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | gen.c | 129 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() 769 if (asprintf (&n, "_unused%d:1", pos) < 0 || n == NULL) in define_type() 777 if (asprintf ( in define_type() [all...] |
H A D | check-der.c | 80 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 …]
|
H A D | gen_template.c | 231 if (asprintf(&str, "offsetof(struct %s, %s)", basetype, name) < 0 || str == NULL) in partial_offset() 564 if (asprintf(&bname, "bmember_%s_%p", name ? name : "", t) < 0 || bname == NULL) in template_members() 603 if (asprintf(&newbasename, "%s_%s", basetype, name) < 0) in template_members() 627 if (asprintf(&tname, "tag_%s_%p", name ? name : "", t) < 0 || tname == NULL) in template_members() 631 if (asprintf(&elname, "%s_%s", basetype, tname) < 0 || elname == NULL) in template_members() 657 if (asprintf(&sename, "%s_%s_val", basetype, name) < 0) in template_members() 661 if (asprintf(&sename, "%s_val", symbol_name(basetype, t->subtype)) < 0) in template_members() 677 if (asprintf(&elname, "%s_%s_%p", basetype, tname, t) < 0 || elname == NULL) in template_members() 697 if (asprintf(&tname, "asn1_choice_%s_%s%x", in template_members() 714 if (asprintf( in template_members() [all...] |
H A D | gen_copy.c | 113 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()
|
H A D | gen_encode.c | 269 if (asprintf (&s, "%s(%s)->%s", m->optional ? "" : "&", name, m->gen_name) < 0 || s == NULL) in encode_type() 364 if (asprintf (&n, "&(%s)->val[i]", name) < 0 || n == NULL) in encode_type() 366 if (asprintf (&sname, "%s_S_Of", tmpstr) < 0 || sname == NULL) in encode_type() 392 if (asprintf (&tname, "%s_tag", tmpstr) < 0 || tname == NULL) in encode_type() 413 if (asprintf (&s, "(%s)", name) < 0 || s == NULL) in encode_type() 426 if (asprintf(&s2, "%s(%s)->u.%s", m->optional ? "" : "&", in encode_type()
|
H A D | gen_decode.c | 331 if (asprintf (&s, "%s(%s)->%s", m->optional ? "" : "&", in decode_type() 369 if (asprintf (&s, "%s(%s)->%s", m->optional ? "" : "&", name, m->gen_name) < 0 || s == NULL) in decode_type() 393 if (asprintf (&s, "%s->%s", name, m->gen_name) < 0 || s == NULL) in decode_type() 445 if (asprintf (&n, "&(%s)->val[(%s)->len]", name, name) < 0 || n == NULL) in decode_type() 447 if (asprintf (&sname, "%s_s_of", tmpstr) < 0 || sname == NULL) in decode_type() 477 if (asprintf(&typestring, "%s_type", tmpstr) < 0 || typestring == NULL) in decode_type() 531 if (asprintf (&tname, "%s_Tag", tmpstr) < 0 || tname == NULL) in decode_type() 592 if (asprintf (&s, "%s(%s)->u.%s", m->optional ? "" : "&", in decode_type()
|
/freebsd/contrib/openpam/lib/libpam/ |
H A D | openpam_asprintf.h | 35 #undef asprintf 36 #define asprintf(arg, ...) openpam_asprintf(arg, __VA_ARGS__) macro
|
/freebsd/crypto/heimdal/lib/gssapi/mech/ |
H A D | gss_display_status.c | 166 e = asprintf(&buf, "%s", supplementary_error( in gss_display_status() 169 e = asprintf (&buf, "%s %s", in gss_display_status() 193 e = asprintf (&buf, "unknown mech-code %lu for mech %.*s", in gss_display_status()
|
/freebsd/contrib/netbsd-tests/lib/libcurses/director/ |
H A D | director.c | 247 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/crypto/heimdal/lib/gssapi/krb5/ |
H A D | display_status.c | 167 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/contrib/netbsd-tests/lib/libcurses/slave/ |
H A D | commands.c | 80 asprintf(&string, "NULL"); in report_ptr() 82 asprintf(&string, "%p", ptr); in report_ptr() 95 asprintf(&string, "%d", value); in report_int()
|
/freebsd/usr.bin/mktemp/ |
H A D | mktemp.c | 139 asprintf(&name, "%s%s.XXXXXXXXXX", tmpdir, prefix); in main() 141 asprintf(&name, "%s/%s.XXXXXXXXXX", tmpdir, prefix); in main() 155 asprintf(&name, "%s/%s", tmpdir, argv[0]); in main()
|