/openbsd/usr.sbin/fdformat/ |
H A D | fdformat.c | 168 const char *errstr; in main() local 176 if (errstr) in main() 177 errx(1, "-c %s: %s", optarg, errstr); in main() 182 if (errstr) in main() 183 errx(1, "-s %s: %s", optarg, errstr); in main() 188 if (errstr) in main() 194 if (errstr) in main() 200 if (errstr) in main() 206 if (errstr) in main() 216 if (errstr) in main() [all …]
|
/openbsd/sbin/fdisk/ |
H A D | fdisk.c | 69 const char *errstr; in main() local 87 if (errstr) in main() 89 errstr); in main() 103 if (errstr) in main() 104 errx(1, "Head argument %s [1..256].", errstr); in main() 112 UINT32_MAX, &errstr); in main() 113 if (errstr) in main() 120 if (errstr) in main() 215 const char *errstr; in parse_bootprt() local 235 if (errstr) in parse_bootprt() [all …]
|
/openbsd/usr.bin/systat/ |
H A D | main.c | 327 const char *errstr; in cmd_delay() local 332 if (errstr != NULL) in cmd_delay() 344 const char *errstr; in cmd_count() local 347 if (errstr) in cmd_count() 431 const char *errstr; in strtodnum() member 466 const char *errstr; in main() local 506 if (errstr) in main() 524 &errstr); in main() 527 errstr); in main() 531 if (errstr) in main() [all …]
|
/openbsd/regress/usr.sbin/bgpd/unittests/ |
H A D | rde_trie_test.c | 68 const char *errstr; in host() local 74 mask = strtonum(p+1, 0, 128, &errstr); in host() 75 if (errstr) { in host() 117 const char *errstr; in parse_file() local 141 if (errstr != NULL) in parse_file() 146 if (errstr != NULL) in parse_file() 172 const char *errstr; in parse_roa_file() local 207 if (errstr != NULL) in parse_roa_file() 212 if (errstr != NULL) in parse_roa_file() 257 const char *errstr; in test_roa_file() local [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Uncompress/ |
H A D | AnyUncompress.pm | 102 return $self->saveErrorString(undef, $errstr, $errno) 125 return $self->saveErrorString(undef, $errstr, $errno) 145 my ($obj, $errstr, $errno) = 148 return $self->saveErrorString(undef, $errstr, $errno) 163 return $self->saveErrorString(undef, $errstr, $errno) 177 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::LZO::mkUncompObject(); 179 return $self->saveErrorString(undef, $errstr, $errno) 193 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::Lzf::mkUncompObject(); 195 return $self->saveErrorString(undef, $errstr, $errno) 211 return $self->saveErrorString(undef, $errstr, $errno) [all …]
|
/openbsd/regress/sys/net/pf_trans/ |
H A D | dev-limit.c | 70 const char *errstr, *sleep_arg; in main() local 78 sleep_time = strtonum(optarg, 1, 60, &errstr); in main() 79 if (errstr != NULL) { in main() 82 "range <1, 60>\n", argv[0], errstr, optarg); in main() 87 chld_count = strtonum(optarg, 1, 32768, &errstr); in main() 88 if (errstr != NULL) { in main() 92 errstr); in main() 97 expect_success = strtonum(optarg, 0, 32768, &errstr); in main() 98 if (errstr != NULL) { in main() 102 optarg, errstr); in main()
|
/openbsd/regress/sys/kern/fork-exit/ |
H A D | fork-exit.c | 210 const char *errstr; in main() local 225 heap = strtonum(optarg, 0, INT_MAX, &errstr); in main() 226 if (errstr != NULL) in main() 228 errstr, optarg); in main() 232 if (errstr != NULL) in main() 233 errx(1, "number of procs is %s: %s", errstr, in main() 238 (INT_MAX / (4096 + 64)) - 2, &errstr); in main() 239 if (errstr != NULL) in main() 241 errstr, optarg); in main() 245 if (errstr != NULL) in main() [all …]
|
/openbsd/usr.sbin/httpd/ |
H A D | server_fcgi.c | 214 errstr = "failed to encode param"; in server_fcgi() 219 errstr = "failed to encode param"; in server_fcgi() 230 errstr = "failed to encode param"; in server_fcgi() 236 errstr = "failed to encode param"; in server_fcgi() 241 errstr = "failed to encode param"; in server_fcgi() 246 errstr = "failed to encode param"; in server_fcgi() 260 errstr = "failed to encode param"; in server_fcgi() 383 errstr = clt->clt_fcgi_error; in server_fcgi() 406 if (errstr == NULL) in server_fcgi() 407 errstr = strerror(errno); in server_fcgi() [all …]
|
/openbsd/usr.bin/rs/ |
H A D | rs.c | 352 const char *errstr; in getargs() local 388 if (errstr) { in getargs() 389 warnx("width %s", errstr); in getargs() 398 if (errstr) { in getargs() 399 warnx("skip value %s", errstr); in getargs() 410 if (errstr) { in getargs() 411 warnx("gutter width %s", errstr); in getargs() 417 if (errstr) { in getargs() 456 if (errstr) { in getargs() 457 warnx("columns value %s", errstr); in getargs() [all …]
|
/openbsd/regress/sys/netinet/mcast/ |
H A D | mcsend.c | 51 const char *errstr, *file, *group, *ifaddr, *msg; in main() local 76 loop = strtonum(optarg, 0, 1, &errstr); in main() 77 if (errstr != NULL) in main() 78 errx(1, "loop is %s: %s", errstr, optarg); in main() 84 port = strtonum(optarg, 1, 0xffff, &errstr); in main() 85 if (errstr != NULL) in main() 86 errx(1, "port is %s: %s", errstr, optarg); in main() 89 ttl = strtonum(optarg, 0, 255, &errstr); in main() 90 if (errstr != NULL) in main() 91 errx(1, "ttl is %s: %s", errstr, optarg); in main()
|
H A D | mcrecv.c | 57 const char *errstr, *file, *group, *ifaddr; in main() local 84 timeout = strtonum(optarg, 1, INT_MAX, &errstr); in main() 85 if (errstr != NULL) in main() 86 errx(1, "no timeout is %s: %s", errstr, optarg); in main() 89 port = strtonum(optarg, 1, 0xffff, &errstr); in main() 90 if (errstr != NULL) in main() 91 errx(1, "port is %s: %s", errstr, optarg); in main() 94 timeout = strtonum(optarg, 1, INT_MAX, &errstr); in main() 95 if (errstr != NULL) in main() 96 errx(1, "timeout is %s: %s", errstr, optarg); in main()
|
/openbsd/regress/sys/kern/signal/sigpthread/ |
H A D | sigpthread.c | 63 const char *errstr; in main() local 71 threadkill = strtonum(optarg, 0, INT_MAX, &errstr); in main() 72 if (errstr != NULL) in main() 74 errstr, optarg); in main() 83 threadmax = strtonum(optarg, 1, INT_MAX, &errstr); in main() 84 if (errstr != NULL) in main() 86 errstr, optarg); in main() 93 if (errstr != NULL) in main() 95 errstr, optarg); in main() 99 if (errstr != NULL) in main() [all …]
|
/openbsd/games/primes/ |
H A D | primes.c | 98 const char *errstr; in main() local 121 stop = strtonum(argv[1], 0, BIG, &errstr); in main() 122 if (errstr) in main() 123 errx(1, "stop is %s: %s", errstr, argv[1]); in main() 125 start = strtonum(argv[0], 0, BIG, &errstr); in main() 126 if (errstr) in main() 127 errx(1, "start is %s: %s", errstr, argv[0]); in main() 149 const char *errstr; in read_num_buf() local 164 val = strtonum(buf, 0, BIG, &errstr); in read_num_buf() 165 if (errstr) in read_num_buf() [all …]
|
/openbsd/regress/sys/netinet/bindconnect/ |
H A D | bindconnect.c | 293 const char *errstr, *addr_net = NULL; in main() local 305 if (errstr != NULL) in main() 306 errx(1, "bind is %s: %s", errstr, optarg); in main() 310 if (errstr != NULL) in main() 315 if (errstr != NULL) in main() 331 if (errstr != NULL) in main() 332 errx(1, "num is %s: %s", errstr, optarg); in main() 336 if (errstr != NULL) in main() 346 if (errstr != NULL) in main() 354 if (errstr != NULL) in main() [all …]
|
/openbsd/regress/sys/netinet6/mcast6/ |
H A D | mc6send.c | 52 const char *errstr, *file, *group, *ifname, *msg; in main() local 78 loop = strtonum(optarg, 0, 1, &errstr); in main() 79 if (errstr != NULL) in main() 80 errx(1, "loop is %s: %s", errstr, optarg); in main() 86 port = strtonum(optarg, 1, 0xffff, &errstr); in main() 87 if (errstr != NULL) in main() 88 errx(1, "port is %s: %s", errstr, optarg); in main() 91 ttl = strtonum(optarg, 0, 255, &errstr); in main() 92 if (errstr != NULL) in main() 93 errx(1, "ttl is %s: %s", errstr, optarg); in main()
|
H A D | mc6recv.c | 58 const char *errstr, *file, *group, *ifname; in main() local 85 timeout = strtonum(optarg, 1, INT_MAX, &errstr); in main() 86 if (errstr != NULL) in main() 87 errx(1, "no timeout is %s: %s", errstr, optarg); in main() 90 port = strtonum(optarg, 1, 0xffff, &errstr); in main() 91 if (errstr != NULL) in main() 92 errx(1, "port is %s: %s", errstr, optarg); in main() 95 timeout = strtonum(optarg, 1, INT_MAX, &errstr); in main() 96 if (errstr != NULL) in main() 97 errx(1, "timeout is %s: %s", errstr, optarg); in main()
|
/openbsd/usr.bin/nice/ |
H A D | nice.c | 49 const char *errstr; in main() local 59 prio = strtonum(argv[1] + 1, PRIO_MIN, PRIO_MAX, &errstr); in main() 60 if (errstr) in main() 61 errx(1, "increment is %s", errstr); in main() 69 prio = strtonum(optarg, PRIO_MIN, PRIO_MAX, &errstr); in main() 70 if (errstr) in main() 71 errx(1, "increment is %s", errstr); in main()
|
/openbsd/usr.bin/skey/ |
H A D | skey.c | 44 const char *errstr; in main() local 63 cnt = strtonum(argv[i], 1, SKEY_MAX_SEQ -1, &errstr); in main() 64 if (errstr) in main() 105 n = strtonum(argv[i], 0, SKEY_MAX_SEQ, &errstr); in main() 106 if (errstr) { in main() 107 warnx("%s: %s", argv[i], errstr); in main() 111 n = strtonum(argv[i], 0, SKEY_MAX_SEQ, &errstr); in main() 112 if (errstr) { in main() 113 warnx("%s: %s", argv[i], errstr); in main()
|
/openbsd/gnu/lib/libiberty/src/ |
H A D | xstrerror.c | 56 char *errstr; in xstrerror() local 67 errstr = (*vmslib_strerror) (errnum, vaxc$errno); in xstrerror() 69 errstr = strerror (errnum); in xstrerror() 73 if (!errstr) in xstrerror() 76 errstr = xstrerror_buf; in xstrerror() 78 return errstr; in xstrerror()
|
/openbsd/usr.sbin/radiusctl/ |
H A D | parser.c | 184 const char *errstr; in match_token() local 235 if (errstr != NULL) { in match_token() 238 word, errstr); in match_token() 266 num = strtonum(word, 0, 65535, &errstr); in match_token() 267 if (errstr != NULL) { in match_token() 270 "\"nas-port\"\n", word, errstr); in match_token() 283 if (errstr != NULL) { in match_token() 285 " for \"tries\"\n", word, errstr); in match_token() 297 if (errstr != NULL) { in match_token() 311 if (errstr != NULL) { in match_token() [all …]
|
/openbsd/regress/usr.sbin/ospfd/ |
H A D | opentap.c | 45 const char *errstr; in main() local 56 fd = strtonum(argv[1], 0, INT_MAX, &errstr); in main() 57 if (errstr) in main() 58 errx(2, "file descriptor number %s: %s", errstr, argv[1]); in main() 59 tap = strtonum(argv[2], 0, INT_MAX, &errstr); in main() 60 if (errstr) in main() 61 errx(2, "tap device number %s: %s", errstr, argv[2]); in main()
|
/openbsd/regress/sys/netinet6/rip6cksum/ |
H A D | rip6cksum.c | 57 const char *errstr; in main() local 67 ckoff = strtonum(optarg, INT_MIN, INT_MAX, &errstr); in main() 68 if (errstr != NULL) in main() 69 errx(1, "ckoff is %s: %s", errstr, optarg); in main() 76 recvsz = strtonum(optarg, 0, INT_MAX, &errstr); in main() 77 if (errstr != NULL) in main() 78 errx(1, "recvsz is %s: %s", errstr, optarg); in main() 82 sendsz = strtonum(optarg, 0, INT_MAX, &errstr); in main() 83 if (errstr != NULL) in main() 84 errx(1, "sendsz is %s: %s", errstr, optarg); in main()
|
/openbsd/usr.bin/nl/ |
H A D | nl.c | 117 const char *errstr; in main() local 161 if (errstr) in main() 163 errstr, optarg); in main() 166 nblank = strtonum(optarg, 0, UINT_MAX, &errstr); in main() 167 if (errstr) in main() 170 errstr, optarg); in main() 188 if (errstr) in main() 191 errstr, optarg); in main() 194 width = strtonum(optarg, 1, INT_MAX, &errstr); in main() 195 if (errstr) in main() [all …]
|
/openbsd/regress/usr.bin/ssh/unittests/authopt/ |
H A D | tests.c | 134 const char *errstr; in test_authkeys_parse() local 141 ASSERT_PTR_NE(errstr, NULL); \ in test_authkeys_parse() 146 if (errstr != NULL) \ in test_authkeys_parse() 147 ASSERT_STRING_EQ(errstr, ""); \ in test_authkeys_parse() 156 opts = sshauthopt_parse("", &errstr); in test_authkeys_parse() 377 const char *errstr; in test_merge() local 391 if (errstr != NULL) \ in test_merge() 392 ASSERT_STRING_EQ(errstr, ""); \ in test_merge() 395 cert_opts, &errstr); \ in test_merge() 411 if (errstr != NULL) \ in test_merge() [all …]
|
/openbsd/sbin/newfs/ |
H A D | newfs.c | 191 const char *errstr; in main() local 215 if (errstr) in main() 229 if (errstr) in main() 234 if (errstr) in main() 240 if (errstr) in main() 246 &errstr); in main() 247 if (errstr) in main() 253 if (errstr) in main() 259 if (errstr) in main() 265 if (errstr) in main() [all …]
|