Home
last modified time | relevance | path

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

12345678910>>...19

/freebsd-14.2/stand/efi/libefi/
H A Ddevpath.c84 (void)asprintf(&tail, "/%s", suffix); in efi_make_tail()
117 rv = asprintf(&name, "%s%02x", head, 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()
167 if (asprintf(&name, "Ctrl(%x)%s", in efi_hw_dev_path()
193 if (asprintf(&name, "PciRoot(%x)%s", in efi_acpi_dev_path()
203 if (asprintf(&name, "Floppy(%x)%s", in efi_acpi_dev_path()
213 if (asprintf(&name, "Serial(%x)%s", in efi_acpi_dev_path()
264 if (asprintf(&name, "SCSI(%x,%x)%s", in efi_messaging_dev_path()
281 if (asprintf(&name, "USB(%x,%x)%s", in efi_messaging_dev_path()
[all …]
/freebsd-14.2/bin/ps/
H A Dprint.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()
349 asprintf(&str, "%#jx", (uintmax_t)dev); in tdev()
369 asprintf(&str, "%s%c", ttname, in tname()
527 asprintf(&str, "%ld:%02ld%c%02ld", in printtime()
627 asprintf(&str, "%jd", (intmax_t)val); in elapseds()
657 asprintf(&str, "%.1f", getpcpu(k)); in pcpu()
685 asprintf(&str, "%.1f", getpmem(k)); in pmem()
738 asprintf(&str, "%u:%u", class, level); in priorityr()
[all …]
/freebsd-14.2/lib/libc/posix1e/
H A Dacl_to_text.c89 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-14.2/libexec/rtld-elf/tests/
H A Dld_library_pathfds.c62 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 Dld_preload_fds.c64 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-14.2/contrib/openpam/t/
H A Dt_pam_conv.c72 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-14.2/usr.sbin/lpr/lpd/
H A Dlpd.c680 asprintf(&syserr, in chkhost()
683 asprintf(&usererr, in chkhost()
688 asprintf(&syserr, in chkhost()
691 asprintf(&usererr, in chkhost()
706 asprintf(&syserr, "Cannot print IP address (error %d)", in chkhost()
708 asprintf(&usererr, "Cannot print IP address for your host"); in chkhost()
723 asprintf(&syserr, "reverse lookup results in non-FQDN %s", in chkhost()
736 asprintf(&syserr, "dns lookup for address %s failed: %s", in chkhost()
755 asprintf(&usererr, in chkhost()
780 asprintf(&usererr, in chkhost()
[all …]
/freebsd-14.2/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-14.2/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-14.2/usr.sbin/bluetooth/iwmbtfw/
H A Diwmbt_fw.c121 asprintf(&fwname, "%s/ibt-hw-%x.%x.%x-fw-%x.%x.%x.%x.%x.%s", in iwmbt_get_fwname()
138 asprintf(&fwname, "%s/ibt-hw-%x.%x.%s", in iwmbt_get_fwname()
148 asprintf(&fwname, "%s/ibt-%u-%u.%s", in iwmbt_get_fwname()
159 asprintf(&fwname, "%s/ibt-%u-%u-%u.%s", in iwmbt_get_fwname()
/freebsd-14.2/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_device_path_os.c274 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-14.2/usr.bin/sdiff/
H A Dedit.c111 if (asprintf(&text, "%s\n%s\n", left, right) == -1) in eparse()
121 if (asprintf(&text, "%s\n", left) == -1) in eparse()
132 if (asprintf(&text, "%s\n", right) == -1) in eparse()
142 if (asprintf(&filename, "%s/sdiff.XXXXXXXXXX", tmpdir) == -1) in eparse()
/freebsd-14.2/usr.bin/rctl/
H A Drctl.c157 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju", in expand_amount()
160 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju/%s", in expand_amount()
220 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule()
228 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule()
230 ret = asprintf(&resolved, "%s:%s:%s", subject, textid, rest); in expand_rule()
283 ret = asprintf(&humanized, "%s:%s:%s", subject, textid, rest); in humanize_ids()
340 ret = asprintf(&humanized, "%s:%s:%s:%s=%s", in humanize_amount()
343 ret = asprintf(&humanized, "%s:%s:%s:%s=%s/%s", in humanize_amount()
483 ret = asprintf(&humanized, "%s=%s", resource, buf); in humanize_usage_amount()
/freebsd-14.2/contrib/openpam/lib/libpam/
H A Dopenpam_asprintf.h35 #undef asprintf
36 #define asprintf(arg, ...) openpam_asprintf(arg, __VA_ARGS__) macro
/freebsd-14.2/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-14.2/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()
769 if (asprintf (&n, "_unused%d:1", pos) < 0 || n == NULL) in define_type()
777 if (asprintf (&n, "%s:1", m->gen_name) < 0 || n == NULL) in define_type()
787 if (asprintf (&n, "_unused%d:1", pos) < 0 || n == NULL) in define_type()
834 if (asprintf (&n, "*%s", m->gen_name) < 0 || n == NULL) in define_type()
[all …]
H A Dgen_template.c231 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(&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.c269 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()
/freebsd-14.2/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-14.2/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-14.2/usr.bin/mktemp/
H A Dmktemp.c139 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()
/freebsd-14.2/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()
/freebsd-14.2/tools/test/stress2/misc/
H A Dpthread7.sh163 asprintf(&file->name, "%s/filename_too-long:%d", dirname1, i);
194 asprintf(&newname, "%s/%s", dirname2, filename);
238 asprintf(&dirname1, "%s.1", "f1");
239 asprintf(&dirname2, "%s.2", "f2");

12345678910>>...19