/openbsd/usr.sbin/snmpd/ |
H A D | smi.c | 398 if (asprintf(&str, "%lld", v) == -1) in smi_print_element_legacy() 414 if (asprintf(&str, "%s", in smi_print_element_legacy() 423 if (asprintf(&str, "%s", in smi_print_element_legacy() 430 if (asprintf(&str, "\"%s\"", p) == -1) { in smi_print_element_legacy() 467 if (asprintf(&str, "%lld", v) == -1) in smi_print_element() 484 if (asprintf(&str, "\"%s\"", p) == -1) { in smi_print_element() 491 if (asprintf(&str, "null") == -1) in smi_print_element() 506 if (asprintf(&str, "%s", in smi_print_element() 513 if (asprintf(&str, "%lld(c32)", v) == -1) in smi_print_element() 519 if (asprintf(&str, "%lld(g32)", v) == -1) in smi_print_element() [all …]
|
/openbsd/usr.bin/sdiff/ |
H A D | edit.c | 45 if (asprintf(&p, "%s %s", ed, pathname) == -1) in editit() 108 if (asprintf(&text, "%s\n%s\n", left, right) == -1) in eparse() 118 if (asprintf(&text, "%s\n", left) == -1) in eparse() 129 if (asprintf(&text, "%s\n", right) == -1) in eparse() 139 if (asprintf(&filename, "%s/sdiff.XXXXXXXXXX", tmpdir) == -1) in eparse()
|
/openbsd/gnu/lib/libreadline/ |
H A D | shell.c | 126 if (asprintf (&b, "LINES=%d", lines) == -1) 129 if (asprintf (&b, "COLUMNS=%d", cols) == -1) 134 if (asprintf(&b, "%d", lines) == -1) 137 if (asprintf (&b, "%d", cols) == -1)
|
/openbsd/regress/lib/libtls/signer/ |
H A D | signertest.c | 65 if (asprintf(&filepath, "%s/%s", cert_path, filename) == -1) in load_file() 181 if (asprintf(&server_rsa_filepath, "%s/%s", cert_path, in do_signer_tests() 415 if (asprintf(&ca_root_ecdsa, "%s/%s", cert_path, in do_signer_tls_tests() 418 if (asprintf(&ca_root_rsa, "%s/%s", cert_path, in do_signer_tls_tests() 421 if (asprintf(&server_ecdsa_cert, "%s/%s", cert_path, in do_signer_tls_tests() 424 if (asprintf(&server_ecdsa_key, "%s/%s", cert_path, in do_signer_tls_tests() 427 if (asprintf(&server_rsa_cert, "%s/%s", cert_path, in do_signer_tls_tests() 430 if (asprintf(&server_rsa_key, "%s/%s", cert_path, in do_signer_tls_tests()
|
/openbsd/usr.bin/snmp/ |
H A D | smi.c | 292 if (asprintf(&str, in smi_print_element() 298 if (asprintf(&str, in smi_print_element() 304 if (asprintf(&str, in smi_print_element() 313 if (asprintf(&str, "%d:%02d:%02d.%02d", in smi_print_element() 317 if (asprintf(&str, in smi_print_element() 322 if (asprintf(&str, in smi_print_element() 367 if (asprintf(&str, "%s%s", in smi_print_element() 377 if (asprintf(&str, "%s%s", in smi_print_element() 460 if (asprintf(&str, "%s%s", in smi_print_element() 629 if (asprintf(&rbuf, "INTEGER: %s(%lld)", in smi_displayhint_int() [all …]
|
/openbsd/usr.sbin/acme-client/ |
H A D | json.c | 606 c = asprintf(&p, "{" in json_fmt_chkacc() 627 c = asprintf(&cnt, "\"contact\": [ \"%s\" ], ", contact); in json_fmt_newacc() 634 c = asprintf(&p, "{" in json_fmt_newacc() 661 c = asprintf(&p, in json_fmt_neworder() 672 c = asprintf(&p, "%s ] }", t); in json_fmt_neworder() 693 c = asprintf(&p, "{" in json_fmt_revokecert() 713 c = asprintf(&p, "{" in json_fmt_newcert() 734 c = asprintf(&p, "{" in json_fmt_protected_rsa() 759 c = asprintf(&p, "{" in json_fmt_protected_ec() 783 c = asprintf(&p, "{" in json_fmt_protected_kid() [all …]
|
/openbsd/usr.sbin/eigrpctl/ |
H A D | eigrpctl.c | 524 if (asprintf(&nexthop, "Connected") == -1) in show_topology_msg() 526 if (asprintf(&rdistance, "-") == -1) in show_topology_msg() 529 if (asprintf(&nexthop, "%s", log_addr(rt->af, in show_topology_msg() 532 if (asprintf(&rdistance, "%u", rt->rdistance) == -1) in show_topology_msg() 577 if (asprintf(&dstnet, "%s/%d", log_addr(rt->af, in show_topology_detail_msg() 582 if (asprintf(&state, "Active") == -1) in show_topology_detail_msg() 585 if (asprintf(&state, "Passive") == -1) in show_topology_detail_msg() 591 if (asprintf(&type, "Internal") == -1) in show_topology_detail_msg() 594 if (asprintf(&type, "External") == -1) in show_topology_detail_msg() 599 if (asprintf(&nexthop, "Connected") == -1) in show_topology_detail_msg() [all …]
|
/openbsd/usr.sbin/ospfctl/ |
H A D | output.c | 138 if (asprintf(&header, "%s (Area %s)", format, in show_rib_head() 155 if (asprintf(&netid, "%s/%d", inet_ntoa(iface->addr), in show_interface() 245 if (asprintf(&state, "%s/%s", nbr_state_name(nbr->nbr_state), in show_neighbor() 292 if (asprintf(&dstnet, "%s/%d", in show_rib() 301 if (asprintf(&dstnet, "%s", in show_rib() 324 if (asprintf(&dstnet, "%s/%d", inet_ntoa(rt->prefix), in show_rib() 342 if (asprintf(&dstnet, "%s/%d", inet_ntoa(rt->prefix), in show_rib() 347 if (asprintf(&dstnet, "%s", in show_rib() 457 if (asprintf(&format, "LSA type %x", ntohs(type)) == -1) in show_database_head() 463 if (asprintf(&header, "%s (Area %s Interface %s)", format, in show_database_head() [all …]
|
/openbsd/usr.bin/yacc/ |
H A D | main.c | 183 if (asprintf(&output_file_name, "%s%s", file_prefix, OUTPUT_SUFFIX) in create_file_names() 188 if (asprintf(&code_file_name, "%s%s", file_prefix, CODE_SUFFIX) == -1) in create_file_names() 221 if (asprintf(&defines_file_name, "%s%s", file_prefix, in create_file_names() 227 if (asprintf(&verbose_file_name, "%s%s", file_prefix, in create_file_names()
|
/openbsd/regress/sys/kern/pledge/filedescriptor/ |
H A D | dev.c | 32 if (asprintf(&devpre, "/dev/fd/%d", fdpre) == -1) in fdops() 34 if (asprintf(&devpost, "/dev/fd/%d", fdpost) == -1) in fdops()
|
/openbsd/regress/sys/kern/unveil/ |
H A D | socket.c | 19 if (asprintf(&path1, "%s/1.sock", uv_dir1) == -1) in test_bind_unix_socket() 21 if (asprintf(&path2, "%s/2.sock", uv_dir2) == -1) in test_bind_unix_socket() 23 if (asprintf(&path3, "%s/3.sock", uv_dir3) == -1) in test_bind_unix_socket()
|
/openbsd/usr.sbin/ospf6ctl/ |
H A D | ospf6ctl.c | 100 if (asprintf(&sockname, "%s.%d", OSPF6D_SOCKET, r) == -1) in main() 589 if (asprintf(&format, "LSA type %x", ntohs(type)) == -1) in show_database_head() 595 if (asprintf(&header, "%s (Area %s)", format, in show_database_head() 599 if (asprintf(&header, "%s (Area %s Interface %s)", format, in show_database_head() 603 if (asprintf(&header, "%s", format) == -1) in show_database_head() 1105 if (asprintf(&dstnet, "%s", in show_rib_msg() 1163 if (asprintf(&header, "%s (Area %s)", format, in show_rib_head() 1205 if (asprintf(&dstnet, "%s/%d", in show_rib_detail_msg() 1215 if (asprintf(&dstnet, "%s", in show_rib_detail_msg() 1240 if (asprintf(&dstnet, "%s/%d", in show_rib_detail_msg() [all …]
|
/openbsd/regress/lib/libcrypto/x509/ |
H A D | callbackfailures.c | 228 if (asprintf(&roots_file, "/etc/ssl/cert.pem") == -1) in verify_cert_test() 230 if (asprintf(&bundle_file, "%s/%s/bundle.pem", certs_path, in verify_cert_test() 233 if (asprintf(&bundle_file2, "%s/%s/roots.pem", certs_path, in verify_cert_test() 236 if (asprintf(&roots_dir, "./%s/roots", vct->id) == -1) in verify_cert_test()
|
/openbsd/lib/libc/stdio/ |
H A D | asprintf.c | 30 asprintf(char **str, const char *fmt, ...) in asprintf() function 70 DEF_WEAK(asprintf);
|
/openbsd/sbin/ipsecctl/ |
H A D | ike.c | 402 if (asprintf(&transform, "phase2-transform-%s-%s%.*s-%s-%s-%s", in ike_section_p2() 604 if (asprintf(&transform, "phase1-transform-%s-%s-%s-%s%.*s-%s", in ike_section_p1() 836 if (asprintf(&r->p1name, "peer-%s-local-%s", in ike_setup_ids() 841 if (asprintf(&r->p1name, "peer-%s", in ike_setup_ids() 850 if (asprintf(&r->p2lid, "from-sec%u", r->iface) == -1) in ike_setup_ids() 852 if (asprintf(&r->p2rid, "to-sec%u", r->iface) == -1) in ike_setup_ids() 864 if (asprintf(&r->p2lid, "from-%s%s%s", r->src->name, in ike_setup_ids() 868 if (asprintf(&r->p2rid, "to-%s%s%s", r->dst->name, in ike_setup_ids() 874 if (asprintf(&r->p2name, "%s-%s", r->p2lid , r->p2rid) == -1) in ike_setup_ids() 878 if (asprintf(&r->p2nid, "nat-%s%s%s", r->src->srcnat->name, sproto, in ike_setup_ids()
|
/openbsd/usr.bin/jot/ |
H A D | jot.c | 361 if (asprintf(&format, "%s%%.%df", format, prec) == -1) in getformat() 364 if (asprintf(&format, "%s%%c", format) == -1) in getformat() 368 if (asprintf(&format, "%s%%", format) == -1) in getformat() 451 if (asprintf(&format, "%s%%", format) == -1) in getformat()
|
/openbsd/usr.bin/htpasswd/ |
H A D | htpasswd.c | 100 if ((loginlen = asprintf(&login, "%s:", line)) == -1) in main() 111 if ((loginlen = asprintf(&login, "%s:", argv[0])) == -1) in main() 116 if ((loginlen = asprintf(&login, "%s:", argv[1])) == -1) in main()
|
/openbsd/regress/usr.sbin/snmpd/ |
H A D | snmp.c | 826 if (asprintf(&str, "%lld", v) == -1) in smi_print_element() 843 if (asprintf(&str, "\"%s\"", p) == -1) { in smi_print_element() 850 if (asprintf(&str, "null") == -1) in smi_print_element() 855 if (asprintf(&str, "[U/%u]", root->be_type) == -1) in smi_print_element() 865 if (asprintf(&str, "%s", in smi_print_element() 872 if (asprintf(&str, "%lld(c32)", v) == -1) in smi_print_element() 878 if (asprintf(&str, "%lld(g32)", v) == -1) in smi_print_element() 894 if (asprintf(&str, "\"%s\"(opaque)", p) == -1) { in smi_print_element() 903 if (asprintf(&str, "%lld(c64)", v) == -1) in smi_print_element() 908 if (asprintf(&str, "[A/%u]", root->be_type) == -1) in smi_print_element() [all …]
|
/openbsd/usr.sbin/ldomctl/ |
H A D | mdstore.c | 484 if (asprintf(&path, "%s/hv.md", name) == -1) in mdstore_download() 506 if (asprintf(&path, "%s/%s.md", name, guest->name) == -1) in mdstore_download() 510 if (asprintf(&path, "%s/hv.md", name) == -1) in mdstore_download() 513 if (asprintf(&path, "%s/pri", name) == -1) in mdstore_download() 519 if (asprintf(&path, "%s/%s.md", name, guest->name) == -1) in mdstore_download() 527 if (asprintf(&path, "%s/hv.md", name) == -1) in mdstore_download() 532 if (asprintf(&path, "%s/pri", name) == -1) in mdstore_download()
|
/openbsd/usr.sbin/ldapctl/ |
H A D | ldapctl.c | 104 if (asprintf(&path, "%s/%s_data.db", datadir, ns->suffix) == -1) in compact_namespace() 113 if (asprintf(&path, "%s/%s_indx.db", datadir, ns->suffix) == -1) in compact_namespace() 153 if (asprintf(&path, "%s/%s_data.db", datadir, ns->suffix) == -1) in index_namespace() 160 if (asprintf(&path, "%s/%s_indx.db", datadir, ns->suffix) == -1) in index_namespace()
|
/openbsd/regress/lib/libcrypto/x509/bettertls/ |
H A D | verify.c | 205 if (asprintf(&roots_file, "%s/root.crt", certs_path) == -1) in bettertls_cert_test() 211 if (asprintf(&cert_file, "%s/%d.crt", certs_path, i) == -1) in bettertls_cert_test() 213 if (asprintf(&bundle_file, "%s/%d.chain", certs_path, i) == -1) in bettertls_cert_test()
|
/openbsd/usr.sbin/ldpd/ |
H A D | log.c | 71 if (asprintf(&nfmt, "%s\n", fmt) == -1) { in vlog() 95 if (asprintf(&nfmt, "%s: %s", emsg, strerror(errno)) == -1) { in log_warn()
|
/openbsd/usr.sbin/dvmrpd/ |
H A D | log.c | 72 if (asprintf(&nfmt, "%s\n", fmt) == -1) { in vlog() 96 if (asprintf(&nfmt, "%s: %s", emsg, strerror(errno)) == -1) { in log_warn()
|
/openbsd/usr.sbin/ripd/ |
H A D | log.c | 71 if (asprintf(&nfmt, "%s\n", fmt) == -1) { in vlog() 95 if (asprintf(&nfmt, "%s: %s", emsg, strerror(errno)) == -1) { in log_warn()
|
/openbsd/usr.sbin/ypldap/ |
H A D | log.c | 70 if (asprintf(&nfmt, "%s\n", fmt) == -1) { in vlog() 94 if (asprintf(&nfmt, "%s: %s", emsg, strerror(errno)) == -1) { in log_warn()
|