| /freebsd-14.2/contrib/ofed/infiniband-diags/src/ |
| H A D | ibccconfig.c | 127 char *errstr; in congestion_key_info() local 133 return errstr; in congestion_key_info() 135 return errstr; in congestion_key_info() 137 return errstr; in congestion_key_info() 139 return errstr; in congestion_key_info() 208 char *errstr; in parse256() local 233 char *errstr; in parsecct() local 267 char *errstr; in switch_congestion_setting() local 354 char *errstr; in switch_port_congestion_setting() local 434 char *errstr; in ca_congestion_setting() local [all …]
|
| /freebsd-14.2/contrib/libarchive/cpio/test/ |
| H A D | test_owner_parse.c | 56 const char *errstr; in DEFINE_TEST() 58 assert(0 == owner_parse(ROOT, &owner, &errstr)); in DEFINE_TEST() 78 assert(0 == owner_parse("111", &owner, &errstr)); in DEFINE_TEST() 83 assert(0 == owner_parse("112:", &owner, &errstr)); in DEFINE_TEST() 88 assert(0 == owner_parse("113.", &owner, &errstr)); in DEFINE_TEST() 93 assert(0 == owner_parse(":114", &owner, &errstr)); in DEFINE_TEST() 98 assert(0 == owner_parse(".115", &owner, &errstr)); in DEFINE_TEST() 114 errstr = NULL; in DEFINE_TEST() 119 errstr = NULL; in DEFINE_TEST() 124 errstr = NULL; in DEFINE_TEST() [all …]
|
| /freebsd-14.2/usr.sbin/ugidfw/ |
| H A D | ugidfw.c | 74 char errstr[BUFSIZ], charstr[BUFSIZ]; in add_rule() local 80 warnx("%s", errstr); in add_rule() 86 warnx("%s", errstr); in add_rule() 98 char errstr[BUFSIZ], charstr[BUFSIZ]; in list_rules() local 106 errx(1, "bsde_get_rule_slots: %s", errstr); in list_rules() 121 warnx("rule %d: %s", i, errstr); in list_rules() 137 char errstr[BUFSIZ]; in set_rule() local 157 warnx("%s", errstr); in set_rule() 163 warnx("%s", errstr); in set_rule() 171 char errstr[BUFSIZ]; in remove_rule() local [all …]
|
| /freebsd-14.2/lib/libugidfw/ |
| H A D | ugidfw.c | 617 if (errstr && buflen) { in bsde_get_jailid() 620 jiov[3].iov_base = errstr; in bsde_get_jailid() 622 errstr[0] = 0; in bsde_get_jailid() 624 if (jid < 0 && !errstr[0]) in bsde_get_jailid() 870 buflen, errstr) < 0) in bsde_parse_object() 916 buflen, errstr) < 0) in bsde_parse_object() 926 snprintf(errstr, buflen, in bsde_parse_object() 962 char *errstr) in bsde_parse_mode() argument 1190 char *errstr) in bsde_get_rule() argument 1260 char *errstr) in bsde_set_rule() argument [all …]
|
| H A D | ugidfw.h | 41 char *errstr); 43 struct mac_bsdextended_rule *rule, size_t buflen, char *errstr); 45 struct mac_bsdextended_rule *rule, size_t buflen, char *errstr); 47 int bsde_get_rule_count(size_t buflen, char *errstr); 48 int bsde_get_rule_slots(size_t buflen, char *errstr); 50 size_t errlen, char *errstr); 51 int bsde_delete_rule(int rulenum, size_t buflen, char *errstr); 53 size_t buflen, char *errstr); 55 size_t buflen, char *errstr);
|
| /freebsd-14.2/sbin/gvinum/ |
| H A D | gvinum.c | 139 const char *errstr; in gvinum_attach() local 167 if (errstr != NULL) in gvinum_attach() 183 const char *errstr; in gvinum_create() local 423 const char *errstr; in create_drive() local 490 const char *errstr; in create_volume() local 541 if (errstr != NULL) in create_volume() 652 const char *errstr; in gvinum_detach() local 683 if (errstr != NULL) in gvinum_detach() 753 const char *errstr; in gvinum_setstate() local 798 if (errstr != NULL) in gvinum_setstate() [all …]
|
| /freebsd-14.2/contrib/mandoc/ |
| H A D | test-strtonum.c | 23 const char *errstr; in main() local 25 if (strtonum("1", 0, 2, &errstr) != 1) in main() 27 if (errstr != NULL) in main() 29 if (strtonum("1x", 0, 2, &errstr) != 0) in main() 31 if (errstr == NULL) in main() 33 if (strtonum("2", 0, 1, &errstr) != 0) in main() 35 if (errstr == NULL) in main() 37 if (strtonum("0", 1, 2, &errstr) != 0) in main() 39 if (errstr == NULL) in main()
|
| /freebsd-14.2/usr.sbin/pw/ |
| H A D | pw_utils.c | 41 const char *errstr; in pw_checkfd() local 46 fd = strtonum(nptr, 0, INT_MAX, &errstr); in pw_checkfd() 47 if (errstr != NULL) in pw_checkfd() 49 nptr, errstr); in pw_checkfd() 56 const char *errstr = NULL; in pw_checkid() local 59 id = strtounum(nptr, 0, maxval, &errstr); in pw_checkid() 60 if (errstr) in pw_checkid() 61 errx(EX_USAGE, "Bad id '%s': %s", nptr, errstr); in pw_checkid()
|
| H A D | pw_conf.c | 245 const char *errstr; in read_userconfig() local 340 UID_MAX, &errstr); in read_userconfig() 341 if (errstr) in read_userconfig() 349 UID_MAX, &errstr); in read_userconfig() 350 if (errstr) in read_userconfig() 358 GID_MAX, &errstr); in read_userconfig() 359 if (errstr) in read_userconfig() 367 GID_MAX, &errstr); in read_userconfig() 368 if (errstr) in read_userconfig() 377 if (errstr) in read_userconfig() [all …]
|
| /freebsd-14.2/crypto/openssh/regress/unittests/authopt/ |
| H A D | tests.c | 138 const char *errstr; in test_authkeys_parse() local 145 ASSERT_PTR_NE(errstr, NULL); \ in test_authkeys_parse() 150 if (errstr != NULL) \ in test_authkeys_parse() 151 ASSERT_STRING_EQ(errstr, ""); \ in test_authkeys_parse() 160 opts = sshauthopt_parse("", &errstr); in test_authkeys_parse() 381 const char *errstr; in test_merge() local 395 if (errstr != NULL) \ in test_merge() 396 ASSERT_STRING_EQ(errstr, ""); \ in test_merge() 399 cert_opts, &errstr); \ in test_merge() 415 if (errstr != NULL) \ in test_merge() [all …]
|
| /freebsd-14.2/usr.sbin/traceroute/ |
| H A D | findsaddr-udp.c | 56 const char *errstr; in findsaddr() local 65 errstr = NULL; in findsaddr() 70 errstr = "failed to connect to peer for src addr selection."; in findsaddr() 75 errstr = "failed to get socket name for src addr selection."; in findsaddr() 80 errstr = "unexpected address family in src addr selection."; in findsaddr() 91 return (errstr); in findsaddr()
|
| /freebsd-14.2/usr.sbin/bsdinstall/partedit/ |
| H A D | gpart_ops.c | 329 if (errstr != NULL && errstr[0] != '\0') { in gpart_partition() 382 if (errstr != NULL && errstr[0] != '\0') in gpart_activate() 384 errstr); in gpart_activate() 402 if (errstr != NULL && errstr[0] != '\0') in gpart_set_root() 404 errstr); in gpart_set_root() 458 if (errstr != NULL && errstr[0] != '\0') in gpart_bootcode() 532 if (errstr != NULL && errstr[0] != '\0') { in gpart_destroy() 698 if (errstr != NULL && errstr[0] != '\0') { in gpart_edit() 1313 if (errstr != NULL && errstr[0] != '\0') { in gpart_create() 1423 if (errstr != NULL && errstr[0] != '\0') { in gpart_delete() [all …]
|
| /freebsd-14.2/lib/libc/tests/resolv/ |
| H A D | resolv_test.c | 121 *errstr = gai_strerror(error); in resolv_getaddrinfo() 122 DBG("T%ld: host %s not found: %s\n", threadnum, host, *errstr); in resolv_getaddrinfo() 128 resolv_gethostby(long threadnum, char *host, const char **errstr) in resolv_gethostby() argument 142 *errstr = hstrerror(h_errno); in resolv_gethostby() 143 DBG("T%ld: host %s not found: %s\n", threadnum, host, *errstr); in resolv_gethostby() 167 *errstr = hstrerror(error); in resolv_getipnodeby() 176 const char* errstr = NULL; in resolvone() local 184 error = resolv_getaddrinfo(threadnum, host, i, &errstr); in resolvone() 187 error = resolv_gethostby(threadnum, host, &errstr); in resolvone() 190 error = resolv_getipnodeby(threadnum, host, &errstr); in resolvone() [all …]
|
| /freebsd-14.2/usr.bin/xargs/ |
| H A D | xargs.c | 125 const char *errstr; in main() local 176 if (errstr) in main() 177 errx(1, "-%c %s: %s", ch, optarg, errstr); in main() 182 if (errstr) in main() 183 errx(1, "-%c %s: %s", ch, optarg, errstr); in main() 190 if (errstr) in main() 191 errx(1, "-%c %s: %s", ch, optarg, errstr); in main() 202 if (errstr) in main() 203 errx(1, "-%c %s: %s", ch, optarg, errstr); in main() 212 if (errstr) in main() [all …]
|
| /freebsd-14.2/tools/regression/sockets/unix_cmsg/ |
| H A D | unix_cmsg.c | 348 const char *errstr; in main() local 371 IPC_MSG_NUM_MAX, &errstr); in main() 372 if (errstr != NULL) in main() 374 errstr); in main() 378 IPC_MSG_SIZE_MAX, &errstr); in main() 379 if (errstr != NULL) in main() 381 errstr); in main() 393 zvalue = strtonum(optarg, 0, 3, &errstr); in main() 394 if (errstr != NULL) in main() 396 errstr); in main() [all …]
|
| /freebsd-14.2/lib/libiscsiutil/ |
| H A D | log.c | 88 char *errstr; in log_common() local 122 errstr = strerror(log_errno); in log_common() 126 peer_addr, peer_name, msgbuf_strvised, errstr); in log_common() 128 peer_addr, peer_name, msgbuf_strvised, errstr); in log_common() 131 peer_addr, msgbuf_strvised, errstr); in log_common() 133 peer_addr, msgbuf_strvised, errstr); in log_common() 136 msgbuf_strvised, errstr); in log_common() 138 msgbuf_strvised, errstr); in log_common()
|
| /freebsd-14.2/usr.sbin/autofs/ |
| H A D | log.c | 90 char *errstr; in log_common() local 124 errstr = strerror(log_errno); in log_common() 128 peer_addr, peer_name, msgbuf_strvised, errstr); in log_common() 130 peer_addr, peer_name, msgbuf_strvised, errstr); in log_common() 133 peer_addr, msgbuf_strvised, errstr); in log_common() 135 peer_addr, msgbuf_strvised, errstr); in log_common() 138 msgbuf_strvised, errstr); in log_common() 140 msgbuf_strvised, errstr); in log_common()
|
| /freebsd-14.2/usr.bin/m4/ |
| H A D | eval.c | 126 const char *errstr; in expand_builtin() local 182 const char *errstr; in expand_builtin() local 186 if (errstr) { in expand_builtin() 188 errstr, argv[3]); in expand_builtin() 193 if (errstr) { in expand_builtin() 195 errstr, argv[4]); in expand_builtin() 236 if (errstr != NULL) in expand_builtin() 250 if (errstr) in expand_builtin() 357 if (errstr) in expand_builtin() 866 const char *errstr; in doundiv() local [all …]
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | auth-options.c | 260 const char *errstr = "unknown error"; in handle_permit() local 329 const char *errstr = "unknown error"; in sshauthopt_parse() local 388 &errstr); in sshauthopt_parse() 397 errstr = "invalid expires time"; in sshauthopt_parse() 466 errstr = "invalid tun device"; in sshauthopt_parse() 478 errstr = "unknown key option"; in sshauthopt_parse() 494 errstr = "memory allocation failed"; in sshauthopt_parse() 498 *errstrp = errstr; in sshauthopt_parse() 538 const char *errstr = "internal error"; in sshauthopt_merge() local 649 errstr = "memory allocation failed"; in sshauthopt_merge() [all …]
|
| /freebsd-14.2/sbin/ccdconfig/ |
| H A D | ccdconfig.c | 170 char const *errstr; in do_single() local 190 errstr = gctl_issue(grq); in do_single() 191 if (errstr == NULL) { in do_single() 199 errstr); in do_single() 267 errstr = gctl_issue(grq); in do_single() 268 if (errstr == NULL) { in do_single() 277 errstr); in do_single() 369 char const *errstr; in dumpout() local 380 errstr = gctl_issue(grq); in dumpout() 381 if (errstr != NULL) in dumpout() [all …]
|
| /freebsd-14.2/tests/sys/fifo/ |
| H A D | fifo_open.c | 101 run_in_process(int (*func)(void), pid_t *pidp, const char *errstr) in run_in_process() argument 107 warn("%s: run_in_process: fork", errstr); in run_in_process() 126 wait_and_timeout(pid_t pid, int timeout, int *status, const char *errstr) in wait_and_timeout() argument 138 warn("%s: wait_and_timeout: waitpid %d", errstr, pid); in wait_and_timeout() 150 warn("%s: wait_and_timeout: waitpid %d", errstr, pid); in wait_and_timeout() 158 warn("%s: wait_and_timeout: kill %d", errstr, pid); in wait_and_timeout() 164 warn("%s: wait_and_timeout: waitpid %d", errstr, pid); in wait_and_timeout() 169 warn("%s: waitpid: returned %d not %d", errstr, wpid, pid); in wait_and_timeout() 173 warnx("%s: process blocked", errstr); in wait_and_timeout()
|
| /freebsd-14.2/contrib/libfido2/src/ |
| H A D | log.c | 102 char errstr[LINELEN]; in fido_log_error() local 107 if (strerror_r(errnum, errstr, sizeof(errstr)) != 0) in fido_log_error() 108 snprintf(errstr, sizeof(errstr), "error %d", errnum); in fido_log_error() 111 do_log(errstr, fmt, args); in fido_log_error()
|
| /freebsd-14.2/usr.bin/split/ |
| H A D | split.c | 88 const char *p, *errstr; in main() local 113 sufflen = strtonum(optarg, 0, INT_MAX, &errstr); in main() 114 if (errstr != NULL) { in main() 116 optarg, errstr); in main() 140 numlines = strtonum(optarg, 1, LONG_MAX, &errstr); in main() 141 if (errstr != NULL) { in main() 143 optarg, errstr); in main() 147 chunks = strtonum(optarg, 1, LONG_MAX, &errstr); in main() 148 if (errstr != NULL) { in main() 150 optarg, errstr); in main()
|
| /freebsd-14.2/contrib/netcat/ |
| H A D | netcat.c | 233 if (errstr) in main() 281 if (errstr) in main() 289 if (errstr) in main() 306 if (errstr != NULL) in main() 308 errstr, optarg); in main() 322 errstr = NULL; in main() 331 &errstr); in main() 1174 const char *errstr; in build_ports() local 1185 if (errstr) in build_ports() 1188 if (errstr) in build_ports() [all …]
|
| /freebsd-14.2/usr.bin/sdiff/ |
| H A D | sdiff.c | 215 const char *errstr, *outfile = NULL; in main() local 295 INT_MAX, &errstr); in main() 296 if (errstr) in main() 297 errx(2, "width is %s: %s", errstr, optarg); in main() 306 if (errstr) in main() 718 const char *errstr; in parsecmd() local 732 if (errstr) in parsecmd() 743 file1end = strtonum(q, 0, INT_MAX, &errstr); in parsecmd() 744 if (errstr) in parsecmd() 763 if (errstr) in parsecmd() [all …]
|