| /openbsd-src/usr.sbin/fdformat/ |
| H A D | fdformat.c | 168 const char *errstr; in main() local 175 cyls = strtonum(optarg, 1, INT_MAX, &errstr); in main() 176 if (errstr) in main() 177 errx(1, "-c %s: %s", optarg, errstr); in main() 181 secs = strtonum(optarg, 1, INT_MAX, &errstr); in main() 182 if (errstr) in main() 183 errx(1, "-s %s: %s", optarg, errstr); in main() 187 heads = strtonum(optarg, 1, INT_MAX, &errstr); in main() 188 if (errstr) in main() 189 errx(1, "-h %s: %s", optarg, errstr); in main() [all …]
|
| /openbsd-src/sbin/fdisk/ |
| H A D | fdisk.c | 69 const char *errstr; in main() local 86 disk.dk_cylinders = strtonum(optarg, 1, 262144, &errstr); in main() 87 if (errstr) in main() 89 errstr); in main() 102 disk.dk_heads = strtonum(optarg, 1, 256, &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() 114 errx(1, "Block argument %s [%u..%u].", errstr, in main() [all …]
|
| /openbsd-src/usr.bin/systat/ |
| H A D | main.c | 327 const char *errstr; in cmd_delay() local 331 del = strtodnum(buf, 0, UINT32_MAX / 1000000, &errstr); in cmd_delay() 332 if (errstr != NULL) in cmd_delay() 333 error("s: \"%s\": delay value is %s", buf, errstr); in cmd_delay() 344 const char *errstr; in cmd_count() local 346 maxprint = strtonum(buf, 1, lines - HEADER_LINES, &errstr); in cmd_count() 347 if (errstr) in cmd_count() 431 const char *errstr; in strtodnum() member 454 *errstrp = ev[error].errstr; in strtodnum() 466 const char *errstr; in main() local [all...] |
| /openbsd-src/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() 76 warnx("prefixlen is %s: %s", errstr, p+1); in host() 117 const char *errstr; in parse_file() local 140 min = strtonum(s, 0, maskmax, &errstr); in parse_file() 141 if (errstr != NULL) in parse_file() 142 errx(1, "min is %s: %s", errstr, s); in parse_file() 145 max = strtonum(s, 0, maskmax, &errstr); in parse_file() 146 if (errstr != NULL) in parse_file() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Uncompress/ |
| H A D | AnyUncompress.pm | 100 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::Inflate::mkUncompObject(); 102 return $self->saveErrorString(undef, $errstr, $errno) 123 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::UnLzma::mkUncompObject(); 125 return $self->saveErrorString(undef, $errstr, $errno) 145 my ($obj, $errstr, $errno) = 148 return $self->saveErrorString(undef, $errstr, $errno) 161 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::Bunzip2::mkUncompObject(); 163 return $self->saveErrorString(undef, $errstr, $errno) 177 my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::LZO::mkUncompObject(); 179 return $self->saveErrorString(undef, $errstr, [all...] |
| /openbsd-src/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-src/regress/sys/kern/fork-exit/ |
| H A D | fork-exit.c | 213 const char *errstr; in main() 230 heap = strtonum(optarg, 0, INT_MAX, &errstr); in main() 231 if (errstr != NULL) in main() 233 errstr, optarg); in main() 237 &errstr); in main() 238 if (errstr != NULL) in main() 239 errx(1, "number of procs is %s: %s", errstr, in main() 244 (INT_MAX / (1024 + 50)) - 2, &errstr); in main() 245 if (errstr != NULL) in main() 247 errstr, optar in main() 210 const char *errstr; main() local [all...] |
| /openbsd-src/usr.sbin/httpd/ |
| H A D | server_fcgi.c | 101 const char *stripped, *alias, *errstr = NULL; in server_fcgi() local 125 errstr = "failed to allocate evbuffer"; in server_fcgi() 139 errstr = "failed to allocate fcgi buffer event"; in server_fcgi() 159 errstr = "failed to write to evbuffer"; in server_fcgi() 177 errstr = "failed to get script name"; in server_fcgi() 191 errstr = "failed to encode param"; in server_fcgi() 198 errstr = "failed to encode param"; in server_fcgi() 214 errstr = "failed to encode param"; in server_fcgi() 219 errstr = "failed to encode param"; in server_fcgi() 226 errstr = "failed to encode param"; in server_fcgi() [all …]
|
| /openbsd-src/usr.bin/rs/ |
| H A D | rs.c | 352 const char *errstr; in getargs() local 387 owidth = strtonum(optarg, 1, INT_MAX, &errstr); in getargs() 388 if (errstr) { in getargs() 389 warnx("width %s", errstr); in getargs() 397 skip = strtonum(optarg, 0, INT_MAX, &errstr); in getargs() 398 if (errstr) { in getargs() 399 warnx("skip value %s", errstr); in getargs() 409 gutter = strtonum(optarg, 0, INT_MAX, &errstr); in getargs() 410 if (errstr) { in getargs() 411 warnx("gutter width %s", errstr); in getargs() [all …]
|
| /openbsd-src/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-src/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() 92 threadunblock = strtonum(optarg, 0, INT_MAX, &errstr); in main() 93 if (errstr != NULL) in main() 95 errstr, optarg); in main() [all …]
|
| /openbsd-src/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-src/regress/sys/netinet/bindconnect/ |
| H A D | bindconnect.c | 293 const char *errstr, *addr_net = NULL; in main() local 304 bind_num = strtonum(optarg, 0, UINT_MAX, &errstr); in main() 305 if (errstr != NULL) in main() 306 errx(1, "bind is %s: %s", errstr, optarg); in main() 309 connect_num = strtonum(optarg, 0, UINT_MAX, &errstr); in main() 310 if (errstr != NULL) in main() 311 errx(1, "connect is %s: %s", errstr, optarg); in main() 314 delroute_num = strtonum(optarg, 0, UINT_MAX, &errstr); in main() 315 if (errstr != NULL) in main() 316 errx(1, "delroute is %s: %s", errstr, optarg); in main() [all …]
|
| /openbsd-src/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-src/usr.sbin/radiusctl/ |
| H A D | parser.c | 221 const char *errstr; in match_token() 275 num = strtonum(word, 1, UINT16_MAX, &errstr); in match_token() 276 if (errstr != NULL) { in match_token() 279 word, errstr); in match_token() 307 num = strtonum(word, 0, 65535, &errstr); in match_token() 308 if (errstr != NULL) { in match_token() 311 "\"nas-port\"\n", word, errstr); in match_token() 323 TEST_TRIES_MIN, TEST_TRIES_MAX, &errstr); in match_token() 324 if (errstr != NULL) { in match_token() 326 " for \"tries\"\n", word, errstr); in match_token() 210 const char *errstr; match_token() local [all...] |
| /openbsd-src/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-src/usr.bin/skey/ |
| H A D | skey.c | 44 const char *errstr; in main() local 64 &errstr); in main() 65 if (errstr) in main() 106 n = strtonum(argv[i], 0, SKEY_MAX_SEQ, &errstr); in main() 107 if (errstr) { in main() 108 warnx("%s: %s", argv[i], errstr); in main() 112 n = strtonum(argv[i], 0, SKEY_MAX_SEQ, &errstr); in main() 113 if (errstr) { in main() 114 warnx("%s: %s", argv[i], errstr); in main()
|
| /openbsd-src/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-src/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-src/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-src/usr.bin/nl/ |
| H A D | nl.c | 117 const char *errstr; in main() local 160 incr = strtonum(optarg, INT_MIN, INT_MAX, &errstr); in main() 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() 187 startnum = strtonum(optarg, INT_MIN, INT_MAX, &errstr); in main() 188 if (errstr) in main() 191 errstr, optarg); in main() [all …]
|
| /openbsd-src/regress/usr.bin/ssh/unittests/authopt/ |
| H A D | tests.c | 134 const char *errstr; in test_authkeys_parse() local 139 opts = sshauthopt_parse(keywords, &errstr); \ in test_authkeys_parse() 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() 162 opts = sshauthopt_parse(" ", &errstr); in test_authkeys_parse() 168 opts = sshauthopt_parse("restrict", &errstr); in test_authkeys_parse() 183 opts = sshauthopt_parse("tunnel=\"1\"", &errstr); in test_authkeys_parse() 190 opts = sshauthopt_parse("tunnel=\"any\"", &errstr); in test_authkeys_parse() [all …]
|
| /openbsd-src/sbin/newfs/ |
| H A D | newfs.c | 191 const char *errstr; in main() local 214 Oflag = strtonum(optarg, 1, 2, &errstr); in main() 215 if (errstr) in main() 228 bsize = strtonum(optarg, MINBSIZE, MAXBSIZE, &errstr); in main() 229 if (errstr) in main() 230 fatal("block size is %s: %s", errstr, optarg); in main() 233 maxfrgspercg = strtonum(optarg, 1, INT_MAX, &errstr); in main() 234 if (errstr) in main() 236 errstr, optarg); in main() 239 maxbpg = strtonum(optarg, 1, INT_MAX, &errstr); in main() [all …]
|