Searched refs:asprintf (Results 26 - 50 of 386) sorted by relevance

1234567891011>>

/freebsd-12-stable/crypto/heimdal/kdc/
H A Dkstash.c88 asprintf(&keyfile, "%s/m-key", hdb_db_dir(context));
136 asprintf(&old, "%s.old", keyfile);
137 asprintf(&new, "%s.new", keyfile);
/freebsd-12-stable/crypto/heimdal/lib/gssapi/
H A Dtest_common.c59 if (asprintf(&ret, "gss-code: %lu %.*s -- mech-code: %lu %.*s",
/freebsd-12-stable/crypto/heimdal/lib/roken/
H A Dwrite_pid.c44 if (asprintf (&ret, "%s%s.pid", _PATH_VARRUN, progname) < 0 || ret == NULL)
/freebsd-12-stable/lib/libc/tests/stdlib/
H A Ddynthr_test.c74 if (asprintf(&libpath, "%s/dynthr_mod.so", srcdir) < 0)
/freebsd-12-stable/lib/libc/uuid/
H A Duuid_to_string.c62 asprintf(s, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
/freebsd-12-stable/sbin/iscontrol/
H A Discontrol.c245 asprintf(&op->initiatorName, "%s:%s", op->iqn, hostname);
247 asprintf(&op->initiatorName, "%s:%d", op->iqn, (int)time(0) & 0xff); // XXX:
251 asprintf(&op->initiatorName, "%s", hostname);
253 asprintf(&op->initiatorName, "%d", (int)time(0) & 0xff); // XXX:
/freebsd-12-stable/usr.bin/sdiff/
H A Dedit.c113 if (asprintf(&text, "%s\n%s\n", left, right) == -1)
123 if (asprintf(&text, "%s\n", left) == -1)
134 if (asprintf(&text, "%s\n", right) == -1)
144 if (asprintf(&filename, "%s/sdiff.XXXXXXXXXX", tmpdir) == -1)
145 err(2, "asprintf");
/freebsd-12-stable/contrib/com_err/
H A Dparse.y105 asprintf (&prefix, "%s_", $2);
127 asprintf (&ec->name, "%s%s", prefix, $2);
/freebsd-12-stable/contrib/dma/
H A Dspool.c100 if (asprintf(&queue->id, "%"PRIxMAX, (uintmax_t)st.st_ino) < 0)
245 if (asprintf(&it->queueid, "%s.%"PRIxPTR, queue->id, (uintptr_t)it) <= 0)
247 if (asprintf(&it->queuefn, "%s/Q%s", config.spooldir, it->queueid) <= 0)
249 if (asprintf(&it->mailfn, "%s/M%s", config.spooldir, it->queueid) <= 0)
303 if (asprintf(&queuefn, "%s/Q%s", config.spooldir, de->d_name + 1) < 0)
305 if (asprintf(&mailfn, "%s/M%s", config.spooldir, de->d_name + 1) < 0)
408 if (asprintf(&flushfn, "%s/%s", config.spooldir, SPOOL_FLUSHFILE) < 0)
432 if (asprintf(&flushfn, "%s/%s", config.spooldir, SPOOL_FLUSHFILE) < 0)
/freebsd-12-stable/crypto/heimdal/lib/com_err/
H A Dparse.y105 asprintf (&prefix, "%s_", $2);
127 asprintf (&ec->name, "%s%s", prefix, $2);
/freebsd-12-stable/usr.sbin/bluetooth/iwmbtfw/
H A Diwmbt_fw.c124 asprintf(&fwname, "%s/ibt-%u-%u.%s",
135 asprintf(&fwname, "%s/ibt-%u-%u-%u.%s",
/freebsd-12-stable/usr.sbin/lpr/lpd/
H A Dlpd.c674 asprintf(&syserr,
677 asprintf(&usererr,
682 asprintf(&syserr,
685 asprintf(&usererr,
700 asprintf(&syserr, "Cannot print IP address (error %d)",
702 asprintf(&usererr, "Cannot print IP address for your host");
717 asprintf(&syserr, "reverse lookup results in non-FQDN %s",
730 asprintf(&syserr, "dns lookup for address %s failed: %s",
732 asprintf(&usererr, "hostname for your address (%s) unknown: %s",
747 asprintf(
[all...]
/freebsd-12-stable/usr.bin/rctl/
H A Drctl.c162 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju",
165 ret = asprintf(&expanded, "%s:%s:%s:%s=%ju/%s",
170 warn("asprintf");
225 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest);
233 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest);
235 ret = asprintf(&resolved, "%s:%s:%s", subject, textid, rest);
239 warn("asprintf");
288 ret = asprintf(&humanized, "%s:%s:%s", subject, textid, rest);
290 err(1, "asprintf");
345 ret = asprintf(
[all...]
/freebsd-12-stable/crypto/heimdal/lib/kadm5/
H A Dcontext_s.c124 asprintf(&ctx->config.acl_file, "%s/kadmind.acl", hdb_db_dir(context));
126 asprintf(&ctx->config.stash_file, "%s/m-key", hdb_db_dir(context));
128 asprintf(&ctx->log_context.log_file, "%s/log", hdb_db_dir(context));
/freebsd-12-stable/usr.bin/localedef/
H A Dmonetary.c96 (void) asprintf(&str, "%d", n);
167 (void) asprintf(&s, "%d", n);
169 (void) asprintf(&s, "%s;%d", mon.mon_grouping, n);
/freebsd-12-stable/crypto/heimdal/lib/asn1/
H A Dgen_encode.c267 if (asprintf (&s, "%s(%s)->%s", m->optional ? "" : "&", name, m->gen_name) < 0 || s == NULL)
362 if (asprintf (&n, "&(%s)->val[i]", name) < 0 || n == NULL)
364 if (asprintf (&sname, "%s_S_Of", tmpstr) < 0 || sname == NULL)
390 if (asprintf (&tname, "%s_tag", tmpstr) < 0 || tname == NULL)
411 if (asprintf (&s, "(%s)", name) < 0 || s == NULL)
424 if (asprintf(&s2, "%s(%s)->u.%s", m->optional ? "" : "&",
H A Dgen_free.c96 if (asprintf (&s, "%s(%s)->%s%s",
130 if (asprintf (&n, "&(%s)->val[(%s)->len-1]", name, name) < 0 || n == NULL)
/freebsd-12-stable/lib/libsbuf/tests/
H A Dsbuf_stdio_test.c68 asprintf(&test_string_tmp, "%s%c" MESSAGE_FORMAT,
70 ATF_REQUIRE_MSG(test_string_tmp != NULL, "asprintf failed");
127 asprintf(&test_string_tmp, "%s%c" MESSAGE_FORMAT,
129 ATF_REQUIRE_MSG(test_string_tmp != NULL, "asprintf failed");
/freebsd-12-stable/usr.bin/tip/tip/
H A Dcu.c73 asprintf(&cp, "-s%s", argv[i] + 1);
99 asprintf(&DV, "/dev/%s", optarg);
/freebsd-12-stable/usr.sbin/ypldap/
H A Dlog.c73 if (asprintf(&nfmt, "%s\n", fmt) == -1) {
98 if (asprintf(&nfmt, "%s: %s", emsg, strerror(errno)) == -1) {
/freebsd-12-stable/crypto/heimdal/appl/login/
H A Denv.c58 asprintf(&str, "%s=%s", var, value);
/freebsd-12-stable/contrib/netbsd-tests/lib/libcurses/director/
H A Ddirector.c247 if (asprintf(&arg1, "%d", cmdpipe[0]) < 0)
250 if (asprintf(&arg2, "%d", cmdpipe[1]) < 0)
253 if (asprintf(&arg3, "%d", slvpipe[0]) < 0)
256 if (asprintf(&arg4, "%d", slvpipe[1]) < 0)
/freebsd-12-stable/contrib/ofed/libibverbs/
H A Dsysfs.c85 if (asprintf(&path, "%s/%s", dir, file) < 0)
/freebsd-12-stable/contrib/openpam/lib/libpam/
H A Dopenpam_log.c125 if (asprintf(&format, "in %s(): %s", func, fmt) > 0) {
/freebsd-12-stable/contrib/pf/pflogd/
H A Dpidfile.c73 (void) asprintf(&pidfile_path, "%s%s.pid", _PATH_VARRUN, basename);

Completed in 157 milliseconds

1234567891011>>