Searched refs:errstr (Results 1 - 25 of 431) sorted by relevance

1234567891011>>

/openbsd-current/gnu/lib/libiberty/src/
H A Dxstrerror.c56 char *errstr; local
67 errstr = (*vmslib_strerror) (errnum, vaxc$errno);
69 errstr = strerror (errnum);
73 if (!errstr)
76 errstr = xstrerror_buf;
78 return errstr;
/openbsd-current/regress/sys/net/pf_trans/
H A Ddev-limit.c70 const char *errstr, *sleep_arg; local
78 sleep_time = strtonum(optarg, 1, 60, &errstr);
79 if (errstr != NULL) {
82 "range <1, 60>\n", argv[0], errstr, optarg);
87 chld_count = strtonum(optarg, 1, 32768, &errstr);
88 if (errstr != NULL) {
92 errstr);
97 expect_success = strtonum(optarg, 0, 32768, &errstr);
98 if (errstr != NULL) {
102 optarg, errstr);
[all...]
/openbsd-current/regress/usr.sbin/ospfd/
H A Dopentap.c45 const char *errstr; local
56 fd = strtonum(argv[1], 0, INT_MAX, &errstr);
57 if (errstr)
58 errx(2, "file descriptor number %s: %s", errstr, argv[1]);
59 tap = strtonum(argv[2], 0, INT_MAX, &errstr);
60 if (errstr)
61 errx(2, "tap device number %s: %s", errstr, argv[2]);
/openbsd-current/usr.bin/nice/
H A Dnice.c49 const char *errstr; local
59 prio = strtonum(argv[1] + 1, PRIO_MIN, PRIO_MAX, &errstr);
60 if (errstr)
61 errx(1, "increment is %s", errstr);
69 prio = strtonum(optarg, PRIO_MIN, PRIO_MAX, &errstr);
70 if (errstr)
71 errx(1, "increment is %s", errstr);
/openbsd-current/regress/lib/libusbhid/usage/
H A Dparsetest.c32 const char *errstr; local
41 testval = strtonum(argv[1], 0x0, 0xFFFFFFFF, &errstr);
42 if (errstr != NULL)
/openbsd-current/usr.sbin/fdformat/
H A Dfdformat.c168 const char *errstr; local
175 cyls = strtonum(optarg, 1, INT_MAX, &errstr);
176 if (errstr)
177 errx(1, "-c %s: %s", optarg, errstr);
181 secs = strtonum(optarg, 1, INT_MAX, &errstr);
182 if (errstr)
183 errx(1, "-s %s: %s", optarg, errstr);
187 heads = strtonum(optarg, 1, INT_MAX, &errstr);
188 if (errstr)
189 errx(1, "-h %s: %s", optarg, errstr);
[all...]
/openbsd-current/sbin/wsconsctl/
H A Dmap_scan.l85 const char *errstr;
87 yylval.ival = strtonum(yytext, 0, INT_MAX, &errstr);
88 if (errstr)
89 errx(1, "%s: %s", yytext, errstr);
/openbsd-current/regress/sys/netinet/mcast/
H A Dmcsend.c51 const char *errstr, *file, *group, *ifaddr, *msg; local
76 loop = strtonum(optarg, 0, 1, &errstr);
77 if (errstr != NULL)
78 errx(1, "loop is %s: %s", errstr, optarg);
84 port = strtonum(optarg, 1, 0xffff, &errstr);
85 if (errstr != NULL)
86 errx(1, "port is %s: %s", errstr, optarg);
89 ttl = strtonum(optarg, 0, 255, &errstr);
90 if (errstr != NULL)
91 errx(1, "ttl is %s: %s", errstr, optar
[all...]
/openbsd-current/regress/sys/netinet6/mcast6/
H A Dmc6send.c52 const char *errstr, *file, *group, *ifname, *msg; local
78 loop = strtonum(optarg, 0, 1, &errstr);
79 if (errstr != NULL)
80 errx(1, "loop is %s: %s", errstr, optarg);
86 port = strtonum(optarg, 1, 0xffff, &errstr);
87 if (errstr != NULL)
88 errx(1, "port is %s: %s", errstr, optarg);
91 ttl = strtonum(optarg, 0, 255, &errstr);
92 if (errstr != NULL)
93 errx(1, "ttl is %s: %s", errstr, optar
[all...]
/openbsd-current/regress/usr.sbin/bgpd/unittests/
H A Drde_trie_test.c68 const char *errstr; local
74 mask = strtonum(p+1, 0, 128, &errstr);
75 if (errstr) {
76 warnx("prefixlen is %s: %s", errstr, p+1);
117 const char *errstr; local
140 min = strtonum(s, 0, maskmax, &errstr);
141 if (errstr != NULL)
142 errx(1, "min is %s: %s", errstr, s);
145 max = strtonum(s, 0, maskmax, &errstr);
146 if (errstr !
172 const char *errstr; local
257 const char *errstr; local
[all...]
/openbsd-current/usr.bin/head/
H A Dhead.c52 const char *errstr; local
63 linecnt = strtonum(argv[1] + 1, 1, LONG_MAX, &errstr);
64 if (errstr != NULL)
65 errx(1, "count is %s: %s", errstr, argv[1] + 1);
73 linecnt = strtonum(optarg, 1, LONG_MAX, &errstr);
74 if (errstr != NULL)
75 errx(1, "count is %s: %s", errstr, optarg);
/openbsd-current/usr.bin/skey/
H A Dskey.c44 const char *errstr; local
63 cnt = strtonum(argv[i], 1, SKEY_MAX_SEQ -1, &errstr);
64 if (errstr)
105 n = strtonum(argv[i], 0, SKEY_MAX_SEQ, &errstr);
106 if (errstr) {
107 warnx("%s: %s", argv[i], errstr);
111 n = strtonum(argv[i], 0, SKEY_MAX_SEQ, &errstr);
112 if (errstr) {
113 warnx("%s: %s", argv[i], errstr);
/openbsd-current/usr.bin/rcs/
H A Drcstime.c40 const char *errstr; local
67 tzone = strtonum(h, -23, 23, &errstr);
68 if (errstr)
83 tzone = strtonum(m, 0, 59, &errstr);
84 if (errstr)
/openbsd-current/sbin/fdisk/
H A Dfdisk.c69 const char *errstr; local
86 disk.dk_cylinders = strtonum(optarg, 1, 262144, &errstr);
87 if (errstr)
89 errstr);
102 disk.dk_heads = strtonum(optarg, 1, 256, &errstr);
103 if (errstr)
104 errx(1, "Head argument %s [1..256].", errstr);
112 UINT32_MAX, &errstr);
113 if (errstr)
114 errx(1, "Block argument %s [%u..%u].", errstr,
215 const char *errstr; local
[all...]
/openbsd-current/regress/lib/libc/sleep/
H A Dsleep_test.c65 char const *errstr; local
71 i = strtonum(argv[1], 0, INT_MAX, &errstr);
73 fprintf(stderr, "%s\n", errstr);
/openbsd-current/lib/libfido2/src/
H A Dlog.c101 char errstr[LINELEN]; local
106 if (strerror_r(errnum, errstr, sizeof(errstr)) != 0)
107 snprintf(errstr, sizeof(errstr), "error %d", errnum);
110 do_log(errstr, fmt, args);
/openbsd-current/usr.bin/systat/
H A Dmain.c327 const char *errstr; local
331 del = strtodnum(buf, 0, UINT32_MAX / 1000000, &errstr);
332 if (errstr != NULL)
333 error("s: \"%s\": delay value is %s", buf, errstr);
344 const char *errstr; local
346 maxprint = strtonum(buf, 1, lines - HEADER_LINES, &errstr);
347 if (errstr)
431 const char *errstr; member in struct:errval
454 *errstrp = ev[error].errstr;
466 const char *errstr; local
[all...]
/openbsd-current/usr.bin/chpass/
H A Dfield.c94 const char *errstr; local
100 id = (uid_t)strtonum(p, 0, UID_MAX, &errstr);
101 if (errstr) {
102 warnx("uid is %s", errstr);
113 const char *errstr; local
128 id = (uid_t)strtonum(p, 0, GID_MAX, &errstr);
129 if (errstr) {
130 warnx("gid is %s", errstr);
/openbsd-current/games/primes/
H A Dprimes.c98 const char *errstr; local
121 stop = strtonum(argv[1], 0, BIG, &errstr);
122 if (errstr)
123 errx(1, "stop is %s: %s", errstr, argv[1]);
125 start = strtonum(argv[0], 0, BIG, &errstr);
126 if (errstr)
127 errx(1, "start is %s: %s", errstr, argv[0]);
149 const char *errstr; local
164 val = strtonum(buf, 0, BIG, &errstr);
165 if (errstr)
[all...]
/openbsd-current/games/boggle/mkdict/
H A Dmkdict.c58 const char *errstr; local
70 n = strtonum(argv[1], 1, INT_MAX, &errstr);
71 if (errstr)
72 errx(1, "%s: %s", argv[1], errstr);
/openbsd-current/regress/usr.sbin/httpd/patterns/
H A Dpatterns-tester.c61 const char *errstr = NULL; local
85 ret = str_match(string, pattern, &m, &errstr);
86 if (errstr != NULL)
87 errx(1, "str_match: %s", errstr);
/openbsd-current/regress/sys/kern/fork-exit/
H A Dfork-exit.c210 const char *errstr; local
225 heap = strtonum(optarg, 0, INT_MAX, &errstr);
226 if (errstr != NULL)
228 errstr, optarg);
231 procs = strtonum(optarg, 0, INT_MAX / 4096, &errstr);
232 if (errstr != NULL)
233 errx(1, "number of procs is %s: %s", errstr,
238 (INT_MAX / (4096 + 64)) - 2, &errstr);
239 if (errstr != NULL)
241 errstr, optar
[all...]
/openbsd-current/regress/lib/libpthread/switch/
H A Dswitch.c90 const char *errstr; local
95 count = strtonum(optarg, 2, 26, &errstr);
96 if (errstr != NULL)
97 errx(1, "count is %s: %s", errstr, optarg);
/openbsd-current/bin/kill/
H A Dkill.c54 const char *errstr; local
74 numsig = strtonum(*argv, 1, NSIG + 127, &errstr);
75 if (errstr != NULL) {
108 numsig = strtonum(*argv, 0, NSIG - 1, &errstr);
109 if (errstr != NULL) {
124 pid = strtonum(*argv, -INT_MAX, INT_MAX, &errstr);
125 if (errstr != NULL) {
/openbsd-current/usr.sbin/watchdogd/
H A Dwatchdogd.c57 const char *errstr; local
71 &errstr);
72 if (errstr)
73 errx(1, "interval is %s: %s", errstr, optarg);
79 period = (u_int)strtonum(optarg, 2LL, 86400LL, &errstr);
80 if (errstr)
81 errx(1, "period is %s: %s", errstr, optarg);

Completed in 208 milliseconds

1234567891011>>