Home
last modified time | relevance | path

Searched refs:errstr (Results 1 – 25 of 134) sorted by relevance

123456

/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibccconfig.c127 char *errstr; in congestion_key_info() local
132 if ((errstr = parselonglongint(argv[0], &cc_key))) in congestion_key_info()
133 return errstr; in congestion_key_info()
134 if ((errstr = parseint(argv[1], &cc_keyprotectbit, 0))) in congestion_key_info()
135 return errstr; in congestion_key_info()
136 if ((errstr = parseint(argv[2], &cc_keyleaseperiod, 0))) in congestion_key_info()
137 return errstr; in congestion_key_info()
138 if ((errstr = parseint(argv[3], &cc_keyviolations, 0))) in congestion_key_info()
139 return errstr; in congestion_key_info()
208 char *errstr; in parse256() local
[all …]
/freebsd/contrib/libarchive/cpio/test/
H A Dtest_owner_parse.c56 const char *errstr; in DEFINE_TEST()
58 assert(0 == owner_parse(ROOT, &owner, &errstr)); in DEFINE_TEST()
64 assert(0 == owner_parse(ROOT ":", &owner, &errstr)); in DEFINE_TEST()
71 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()
103 assert(0 == owner_parse("116:117", &owner, &errstr)); in DEFINE_TEST()
[all …]
/freebsd/usr.sbin/ugidfw/
H A Dugidfw.c73 char errstr[BUFSIZ], charstr[BUFSIZ]; in add_rule() local
77 error = bsde_parse_rule(argc, argv, &rule, BUFSIZ, errstr); in add_rule()
79 warnx("%s", errstr); in add_rule()
83 error = bsde_add_rule(&rulenum, &rule, BUFSIZ, errstr); in add_rule()
85 warnx("%s", errstr); in add_rule()
97 char errstr[BUFSIZ], charstr[BUFSIZ]; in list_rules() local
101 rule_slots = bsde_get_rule_slots(BUFSIZ, errstr); in list_rules()
105 errx(1, "bsde_get_rule_slots: %s", errstr); in list_rules()
108 rule_count = bsde_get_rule_count(BUFSIZ, errstr); in list_rules()
110 errx(1, "bsde_get_rule_count: %s", errstr); in list_rules()
[all …]
/freebsd/lib/libugidfw/
H A Dugidfw.c511 size_t buflen, char *errstr){ in bsde_parse_uidrange() argument
526 snprintf(errstr, buflen, "invalid uid: '%s'", spec1); in bsde_parse_uidrange()
543 snprintf(errstr, buflen, "invalid uid: '%s'", spec2); in bsde_parse_uidrange()
557 size_t buflen, char *errstr){ in bsde_parse_gidrange() argument
572 snprintf(errstr, buflen, "invalid gid: '%s'", spec1); in bsde_parse_gidrange()
589 snprintf(errstr, buflen, "invalid gid: '%s'", spec2); in bsde_parse_gidrange()
602 bsde_get_jailid(const char *name, size_t buflen, char *errstr) in bsde_get_jailid() argument
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()
[all …]
H A Dugidfw.h41 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/sbin/gvinum/
H A Dgvinum.c139 const char *errstr; in gvinum_attach() local
166 errstr = gctl_issue(req); in gvinum_attach()
167 if (errstr != NULL) in gvinum_attach()
168 warnx("attach failed: %s", errstr); in gvinum_attach()
183 const char *errstr; in gvinum_create() local
398 errstr = gctl_issue(req); in gvinum_create()
399 if (errstr != NULL) in gvinum_create()
400 warnx("create failed: %s", errstr); in gvinum_create()
423 const char *errstr; in create_drive() local
451 errstr = gctl_issue(req); in create_drive()
[all …]
/freebsd/contrib/mandoc/
H A Dtest-strtonum.c23 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/tests/sys/kern/tty/
H A Dreadsz.c31 const char *errstr; in main() local
50 reps = strtonum(optarg, 0, SSIZE_MAX, &errstr); in main()
51 if (errstr != NULL) in main()
52 errx(1, "strtonum: %s", errstr); in main()
56 reps = strtonum(optarg, 1, SSIZE_MAX, &errstr); in main()
57 if (errstr != NULL) in main()
58 errx(1, "strtonum: %s", errstr); in main()
64 bufsz = strtonum(optarg, 1, SSIZE_MAX, &errstr); in main()
65 if (errstr != NULL) in main()
66 errx(1, "strtonum: %s", errstr); in main()
/freebsd/usr.sbin/pw/
H A Dpw_utils.c41 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 Dpw_conf.c245 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()
376 INT_MAX, &errstr); in read_userconfig()
[all …]
/freebsd/crypto/openssh/regress/unittests/authopt/
H A Dtests.c138 const char *errstr; in test_authkeys_parse() local
143 opts = sshauthopt_parse(keywords, &errstr); \ in test_authkeys_parse()
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()
166 opts = sshauthopt_parse(" ", &errstr); in test_authkeys_parse()
172 opts = sshauthopt_parse("restrict", &errstr); in test_authkeys_parse()
187 opts = sshauthopt_parse("tunnel=\"1\"", &errstr); in test_authkeys_parse()
194 opts = sshauthopt_parse("tunnel=\"any\"", &errstr); in test_authkeys_parse()
[all …]
/freebsd/usr.sbin/traceroute/
H A Dfindsaddr-udp.c56 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/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c50 gpart_show_error(const char *title, const char *explanation, const char *errstr) in gpart_show_error() argument
60 error = strtol(errstr, &errmsg, 0); in gpart_show_error()
61 if (errmsg != errstr) { in gpart_show_error()
290 const char *errstr; in gpart_partition() local
328 errstr = gctl_issue(r); in gpart_partition()
329 if (errstr != NULL && errstr[0] != '\0') { in gpart_partition()
330 gpart_show_error("Error", NULL, errstr); in gpart_partition()
347 const char *errstr, *scheme; in gpart_activate() local
381 errstr = gctl_issue(r); in gpart_activate()
382 if (errstr != NULL && errstr[0] != '\0') in gpart_activate()
[all …]
/freebsd/lib/libc/tests/resolv/
H A Dresolv_test.c100 resolv_getaddrinfo(long threadnum, char *host, int port, const char **errstr) in resolv_getaddrinfo() argument
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()
149 resolv_getipnodeby(long threadnum, char *host, const char **errstr) in resolv_getipnodeby() argument
167 *errstr = hstrerror(error); in resolv_getipnodeby()
168 DBG("T%ld: host %s not found: %s\n", threadnum, host, *errstr); in resolv_getipnodeby()
176 const char* errstr = NULL; in resolvone() local
[all …]
/freebsd/usr.bin/xargs/
H A Dxargs.c113 const char *errstr; in main() local
163 Lflag = (int)strtonum(optarg, 1, INT_MAX, &errstr); in main()
164 if (errstr) in main()
165 errx(1, "-%c %s: %s", ch, optarg, errstr); in main()
169 nargs = (int)strtonum(optarg, 1, INT_MAX, &errstr); in main()
170 if (errstr) in main()
171 errx(1, "-%c %s: %s", ch, optarg, errstr); in main()
177 maxprocs = (int)strtonum(optarg, 0, INT_MAX, &errstr); in main()
178 if (errstr) in main()
179 errx(1, "-%c %s: %s", ch, optarg, errstr); in main()
[all...]
/freebsd/tools/regression/sockets/unix_cmsg/
H A Dunix_cmsg.c347 const char *errstr; in main() local
370 IPC_MSG_NUM_MAX, &errstr); in main()
371 if (errstr != NULL) in main()
373 errstr); in main()
377 IPC_MSG_SIZE_MAX, &errstr); in main()
378 if (errstr != NULL) in main()
380 errstr); in main()
392 zvalue = strtonum(optarg, 0, 3, &errstr); in main()
393 if (errstr != NULL) in main()
395 errstr); in main()
[all …]
/freebsd/lib/libiscsiutil/
H A Dlog.c88 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/usr.sbin/autofs/
H A Dlog.c90 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/usr.bin/m4/
H A Deval.c126 const char *errstr; in expand_builtin() local
182 const char *errstr; in expand_builtin() local
185 base = strtonum(argv[3], 2, 36, &errstr); in expand_builtin()
186 if (errstr) { in expand_builtin()
188 errstr, argv[3]); in expand_builtin()
192 maxdigits = strtonum(argv[4], 0, INT_MAX, &errstr); in expand_builtin()
193 if (errstr) { in expand_builtin()
195 errstr, argv[4]); in expand_builtin()
235 n = strtonum(argv[2], INT_MIN, INT_MAX-1, &errstr); in expand_builtin()
236 if (errstr != NULL) in expand_builtin()
[all …]
/freebsd/crypto/openssh/
H A Dauth-options.c260 const char *errstr = "unknown error"; in handle_permit() local
266 if ((opt = opt_dequote(optsp, &errstr)) == NULL) { in handle_permit()
329 const char *errstr = "unknown error"; in sshauthopt_parse() local
368 errstr = "multiple \"command\" clauses"; in sshauthopt_parse()
371 ret->force_command = opt_dequote(&opts, &errstr); in sshauthopt_parse()
376 errstr = "multiple \"principals\" clauses"; in sshauthopt_parse()
379 ret->cert_principals = opt_dequote(&opts, &errstr); in sshauthopt_parse()
384 errstr = "multiple \"from\" clauses"; in sshauthopt_parse()
388 &errstr); in sshauthopt_parse()
392 if ((opt = opt_dequote(&opts, &errstr)) == NULL) in sshauthopt_parse()
[all …]
/freebsd/sbin/ccdconfig/
H A Dccdconfig.c169 char const *errstr; in do_single() local
189 errstr = gctl_issue(grq); in do_single()
190 if (errstr == NULL) { in do_single()
198 errstr); in do_single()
266 errstr = gctl_issue(grq); in do_single()
267 if (errstr == NULL) { in do_single()
276 errstr); in do_single()
368 char const *errstr; in dumpout() local
379 errstr = gctl_issue(grq); in dumpout()
380 if (errstr != NULL) in dumpout()
[all …]
/freebsd/tests/sys/fifo/
H A Dfifo_open.c101 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/contrib/libfido2/src/
H A Dlog.c102 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/usr.bin/split/
H A Dsplit.c77 const char *p, *errstr; in main() local
102 sufflen = strtonum(optarg, 0, INT_MAX, &errstr); in main()
103 if (errstr != NULL) { in main()
105 optarg, errstr); in main()
129 numlines = strtonum(optarg, 1, LONG_MAX, &errstr); in main()
130 if (errstr != NULL) { in main()
132 optarg, errstr); in main()
136 chunks = strtonum(optarg, 1, LONG_MAX, &errstr); in main()
137 if (errstr != NULL) { in main()
139 optarg, errstr); in main()
[all...]
/freebsd/tools/test/buf_ring/
H A Dbuf_ring_test.c223 const char *errstr; in main() local
231 errstr = NULL; in main()
232 size = strtonum(optarg, 1, UINT_MAX, &errstr); in main()
233 if (errstr != NULL) { in main()
234 errx(1, "--bufsize=%s: %s", optarg, errstr); in main()
256 errstr = NULL; in main()
257 prod_count = strtonum(optarg, 1, UINT_MAX, &errstr); in main()
258 if (errstr != NULL) { in main()
259 errx(1, "--prod-count=%s: %s", optarg, errstr); in main()

123456