Home
last modified time | relevance | path

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

12345678910>>...18

/freebsd-13.1/stand/efi/libefi/
H A Ddevpath.c87 (void)asprintf(&tail, "/%s", suffix); in efi_make_tail()
120 rv = asprintf(&name, "%s%02x", head, in efi_vendor_path()
148 if (asprintf(&name, "Pci(%x,%x)%s", in efi_hw_dev_path()
154 if (asprintf(&name, "PCCARD(%x)%s", in efi_hw_dev_path()
170 if (asprintf(&name, "Ctrl(%x)%s", in efi_hw_dev_path()
196 if (asprintf(&name, "PciRoot(%x)%s", in efi_acpi_dev_path()
206 if (asprintf(&name, "Floppy(%x)%s", in efi_acpi_dev_path()
216 if (asprintf(&name, "Serial(%x)%s", in efi_acpi_dev_path()
267 if (asprintf(&name, "SCSI(%x,%x)%s", in efi_messaging_dev_path()
284 if (asprintf(&name, "USB(%x,%x)%s", in efi_messaging_dev_path()
[all …]
/freebsd-13.1/bin/ps/
H A Dprint.c126 asprintf(&str, "%s%s%s%s%s", in command()
153 asprintf(&str, "%s%s%s%s", in command()
179 asprintf(&str, "%s%s%s%s%s", in ucomm()
351 asprintf(&str, "%#jx", (uintmax_t)dev); in tdev()
371 asprintf(&str, "%s%c", ttname, in tname()
529 asprintf(&str, "%ld:%02ld%c%02ld", in printtime()
629 asprintf(&str, "%jd", (intmax_t)val); in elapseds()
659 asprintf(&str, "%.1f", getpcpu(k)); in pcpu()
687 asprintf(&str, "%.1f", getpmem(k)); in pmem()
740 asprintf(&str, "%u:%u", class, level); in priorityr()
[all …]
/freebsd-13.1/lib/libc/posix1e/
H A Dacl_to_text.c92 len = asprintf(&tmpbuf, "%suser::%s\n", buf, in _posix1e_acl_to_text()
119 len = asprintf(&tmpbuf, "%suser:%s:%s\t\t# " in _posix1e_acl_to_text()
124 len = asprintf(&tmpbuf, "%suser:%s:%s\n", buf, in _posix1e_acl_to_text()
147 len = asprintf(&tmpbuf, "%sgroup::%s\t\t# " in _posix1e_acl_to_text()
151 len = asprintf(&tmpbuf, "%sgroup::%s\n", buf, in _posix1e_acl_to_text()
179 len = asprintf(&tmpbuf, "%sgroup:%s:%s\t\t# " in _posix1e_acl_to_text()
184 len = asprintf(&tmpbuf, "%sgroup:%s:%s\n", buf, in _posix1e_acl_to_text()
199 len = asprintf(&tmpbuf, "%smask::%s\n", buf, in _posix1e_acl_to_text()
213 len = asprintf(&tmpbuf, "%sother::%s\n", buf, in _posix1e_acl_to_text()
/freebsd-13.1/libexec/rtld-elf/tests/
H A Dld_library_pathfds.c64 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d", files.etc) > 0); in ATF_TC_BODY()
77 ATF_REQUIRE(asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=::") > 0); in ATF_TC_BODY()
91 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d", files.testdir) > 0); in ATF_TC_BODY()
105 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d", in ATF_TC_BODY()
120 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d:%d", in ATF_TC_BODY()
135 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d:%d", in ATF_TC_BODY()
H A Dld_preload_fds.c66 ATF_REQUIRE(asprintf(&senv, "LD_PRELOAD_FDS=::") > 0); in ATF_TC_BODY()
80 asprintf(&senv, "LD_PRELOAD_FDS=%d", libraryfd) > 0); in ATF_TC_BODY()
93 asprintf(&senv, "LD_PRELOAD_FDS=%d:%d", libraryfd, libraryfd) > 0); in ATF_TC_BODY()
/freebsd-13.1/contrib/openpam/t/
H A Dt_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-13.1/usr.bin/stdbuf/
H A Dstdbuf.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-13.1/usr.sbin/lpr/lpd/
H A Dlpd.c674 asprintf(&syserr, in chkhost()
677 asprintf(&usererr, in chkhost()
682 asprintf(&syserr, in chkhost()
685 asprintf(&usererr, in chkhost()
700 asprintf(&syserr, "Cannot print IP address (error %d)", in chkhost()
702 asprintf(&usererr, "Cannot print IP address for your host"); in chkhost()
717 asprintf(&syserr, "reverse lookup results in non-FQDN %s", in chkhost()
730 asprintf(&syserr, "dns lookup for address %s failed: %s", in chkhost()
749 asprintf(&usererr, in chkhost()
774 asprintf(&usererr, in chkhost()
[all …]
/freebsd-13.1/contrib/dma/
H A Dspool.c102 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-13.1/crypto/heimdal/kadmin/
H A Dcheck.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()
/freebsd-13.1/usr.sbin/bluetooth/iwmbtfw/
H A Diwmbt_fw.c125 asprintf(&fwname, "%s/ibt-hw-%x.%x.%x-fw-%x.%x.%x.%x.%x.%s", in iwmbt_get_fwname()
142 asprintf(&fwname, "%s/ibt-hw-%x.%x.%s", in iwmbt_get_fwname()
152 asprintf(&fwname, "%s/ibt-%u-%u.%s", in iwmbt_get_fwname()
163 asprintf(&fwname, "%s/ibt-%u-%u-%u.%s", in iwmbt_get_fwname()
/freebsd-13.1/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_device_path_os.c266 if (asprintf(&path, "/sys/bus/pci/slots/%s", in zfs_get_pci_slots_sys_path()
321 tmpsize = asprintf(&tmp1, "/sys/block/%s/device", dev_name); in zfs_get_enclosure_sysfs_path()
340 if (asprintf(&tmp2, "%s/%s", tmp1, ep->d_name) == -1) { in zfs_get_enclosure_sysfs_path()
368 if (asprintf(&path, "/sys/class/%s", tmp3) == -1) { in zfs_get_enclosure_sysfs_path()
445 if ((size = asprintf(&tmp, "/sys/block/%s/slaves/", dev_str)) == -1) { in dm_get_underlying_path()
474 if ((size = asprintf( in dm_get_underlying_path()
494 if ((size = asprintf(&path, "/dev/%s", first_path)) == -1) in dm_get_underlying_path()
/freebsd-13.1/usr.bin/sdiff/
H A Dedit.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-13.1/usr.bin/rctl/
H A Drctl.c161 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju", in expand_amount()
164 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju/%s", in expand_amount()
224 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule()
232 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule()
234 ret = asprintf(&resolved, "%s:%s:%s", subject, textid, rest); in expand_rule()
287 ret = asprintf(&humanized, "%s:%s:%s", subject, textid, rest); in humanize_ids()
344 ret = asprintf(&humanized, "%s:%s:%s:%s=%s", in humanize_amount()
347 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-13.1/contrib/openpam/lib/libpam/
H A Dopenpam_asprintf.h37 #undef asprintf
38 #define asprintf(arg, ...) openpam_asprintf(arg, __VA_ARGS__) macro
/freebsd-13.1/sbin/iscontrol/
H A Discontrol.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-13.1/crypto/heimdal/lib/gssapi/mech/
H A Dgss_display_status.c166 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-13.1/crypto/heimdal/lib/asn1/
H A Dcheck-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()
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()
503 if (asprintf (&tests[i].name, "bit_string %d", i) < 0) in test_bit_string()
556 if (asprintf (&tests[i].name, "heim_integer %d", i) < 0) in test_heim_integer()
[all …]
H A Dgen.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()
142 if (asprintf(&fn, "%s-priv.hx", headerbase) < 0 || fn == 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()
785 if (asprintf (&n, "_unused%d:1", pos) < 0 || n == NULL) in define_type()
832 if (asprintf (&n, "*%s", m->gen_name) < 0 || n == NULL) in define_type()
[all …]
H A Dgen_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 …]
H A Dgen_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()
H A Dgen_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()
/freebsd-13.1/contrib/netbsd-tests/lib/libcurses/director/
H A Ddirector.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-13.1/crypto/heimdal/lib/gssapi/krb5/
H A Ddisplay_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-13.1/contrib/netbsd-tests/lib/libcurses/slave/
H A Dcommands.c80 asprintf(&string, "NULL"); in report_ptr()
82 asprintf(&string, "%p", ptr); in report_ptr()
95 asprintf(&string, "%d", value); in report_int()

12345678910>>...18