/freebsd/contrib/mandoc/ |
H A D | test-strtonum.c | 25 if (strtonum("1", 0, 2, &errstr) != 1) in main() 29 if (strtonum("1x", 0, 2, &errstr) != 0) in main() 33 if (strtonum("2", 0, 1, &errstr) != 0) in main() 37 if (strtonum("0", 1, 2, &errstr) != 0) in main()
|
H A D | compat_strtonum.c | 31 strtonum(const char *numstr, long long minval, long long maxval, in strtonum() function
|
/freebsd/tests/sys/kern/tty/ |
H A D | readsz.c | 50 reps = strtonum(optarg, 0, SSIZE_MAX, &errstr); in main() 56 reps = strtonum(optarg, 1, SSIZE_MAX, &errstr); in main() 64 bufsz = strtonum(optarg, 1, SSIZE_MAX, &errstr); in main()
|
/freebsd/crypto/openssh/openbsd-compat/regress/ |
H A D | strtonumtest.c | 38 long long strtonum(const char *, long long, long long, const char **); 48 val = strtonum(p, lb, ub, &q); in test()
|
/freebsd/usr.bin/xargs/ |
H A D | xargs.c | 163 Lflag = (int)strtonum(optarg, 1, INT_MAX, &errstr); in main() 169 nargs = (int)strtonum(optarg, 1, INT_MAX, &errstr); in main() 177 maxprocs = (int)strtonum(optarg, 0, INT_MAX, &errstr); in main() 189 Rflag = (int)strtonum(optarg, INT_MIN, INT_MAX, &errstr); in main() 199 Sflag = (int)strtonum(optarg, 0, INT_MAX, &errstr); in main() 204 nline = (int)strtonum(optarg, 0, INT_MAX, &errstr); in main()
|
/freebsd/tools/regression/sockets/unix_cmsg/ |
H A D | unix_cmsg.c | 369 uc_cfg.ipc_msg.msg_num = strtonum(optarg, 1, in main() 376 uc_cfg.ipc_msg.buf_size = strtonum(optarg, 0, in main() 392 zvalue = strtonum(optarg, 0, 3, &errstr); in main() 409 testno = strtonum(argv[optind], 0, UINT_MAX, &errstr); in main()
|
/freebsd/crypto/openssh/ |
H A D | dh.c | 85 n = strtonum(arg, 0, 5, &errstr); in parse_prime() 94 n = strtonum(arg, 0, 0x1f, &errstr); in parse_prime() 103 n = strtonum(arg, 0, 1<<30, &errstr); in parse_prime() 110 (dhg->size = (int)strtonum(strsize, 0, 64*1024, &errstr)) == 0 || in parse_prime()
|
/freebsd/usr.bin/m4/ |
H A D | eval.c | 185 base = strtonum(argv[3], 2, 36, &errstr); in expand_builtin() 192 maxdigits = strtonum(argv[4], 0, INT_MAX, &errstr); in expand_builtin() 235 n = strtonum(argv[2], INT_MIN, INT_MAX-1, &errstr); in expand_builtin() 249 n = strtonum(argv[2], INT_MIN+1, INT_MAX, &errstr); in expand_builtin() 356 n = strtonum(argv[2], INT_MIN, INT_MAX, &errstr); in expand_builtin() 867 n = strtonum(argv[ind], 1, INT_MAX, &errstr); in doundiv()
|
/freebsd/usr.bin/split/ |
H A D | split.c | 102 sufflen = strtonum(optarg, 0, INT_MAX, &errstr); in main() 129 numlines = strtonum(optarg, 1, LONG_MAX, &errstr); in main() 136 chunks = strtonum(optarg, 1, LONG_MAX, &errstr); in main()
|
/freebsd/usr.bin/sdiff/ |
H A D | sdiff.c | 293 wval = strtonum(optarg, WIDTH_MIN, in main() 304 tabsize = strtonum(optarg, 1, INT_MAX, &errstr); in main() 730 file1start = strtonum(line, 0, INT_MAX, &errstr); in parsecmd() 742 file1end = strtonum(q, 0, INT_MAX, &errstr); in parsecmd() 761 file2start = strtonum(q, 0, INT_MAX, &errstr); in parsecmd() 774 file2end = strtonum(p, 0, INT_MAX, &errstr); in parsecmd()
|
/freebsd/contrib/netcat/ |
H A D | netcat.c | 235 iflag = strtonum(optarg, 0, UINT_MAX, &errstr); in main() 282 rtableid = (int)strtonum(optarg, 0, in main() 291 timeout = strtonum(optarg, 0, INT_MAX / 1000, &errstr); in main() 308 Iflag = strtonum(optarg, 1, 65536 << 14, &errstr); in main() 314 Oflag = strtonum(optarg, 1, 65536 << 14, &errstr); in main() 333 Tflag = (int)strtonum(optarg, 0, 255, in main() 1211 hi = strtonum(n, 1, PORT_MAX, &errstr); in build_ports() 1214 lo = strtonum(p, 1, PORT_MAX, &errstr); in build_ports() 1246 hi = strtonum(p, 1, PORT_MAX, &errstr); in build_ports()
|
/freebsd/crypto/openssh/regress/ |
H A D | netcat.c | 203 iflag = strtonum(optarg, 0, UINT_MAX, &errstr); in main() 239 rtableid = (int)strtonum(optarg, 0, in main() 249 timeout = strtonum(optarg, 0, INT_MAX / 1000, &errstr); in main() 266 Iflag = strtonum(optarg, 1, 65536 << 14, &errstr); in main() 272 Oflag = strtonum(optarg, 1, 65536 << 14, &errstr); in main() 289 Tflag = (int)strtonum(optarg, 0, 255, in main() 1113 hi = strtonum(n, 1, PORT_MAX, &errstr); in build_ports() 1116 lo = strtonum(p, 1, PORT_MAX, &errstr); in build_ports() 1148 hi = strtonum(p, 1, PORT_MAX, &errstr); in build_ports()
|
/freebsd/tools/build/cross-build/include/mac/ |
H A D | stdlib.h | 44 long long strtonum(const char *numstr, long long minval, long long maxval,
|
/freebsd/lib/libc/stdlib/ |
H A D | Makefile.inc | 15 strtol.c strtold.c strtoll.c strtoq.c strtoul.c strtonum.c strtoull.c \ 42 strfmon.3 strtod.3 strtol.3 strtonum.3 strtoul.3 system.3 \
|
H A D | strtonum.c | 29 strtonum(const char *numstr, long long minval, long long maxval, in strtonum() function
|
/freebsd/sbin/ping/ |
H A D | ping.c | 287 ltmp = strtonum(optarg, -1, 7, &errstr); in ping() 293 ltmp = strtonum(optarg, 1, LONG_MAX, &errstr); in ping() 317 ltmp = strtonum(optarg, 1, INT_MAX, &errstr); in ping() 331 ltmp = strtonum(optarg, 1, INT_MAX, &errstr); in ping() 348 ltmp = strtonum(optarg, 1, INT_MAX, &errstr); in ping() 385 ltmp = strtonum(optarg, 0, INT_MAX, &errstr); in ping() 411 ltmp = strtonum(optarg, 0, MAXTTL, &errstr); in ping() 456 ltmp = strtonum(optarg, 0, INT_MAX, &errstr); in ping() 469 ltmp = strtonum(optarg, 0, MAXTTL, &errstr); in ping()
|
/freebsd/tools/build/cross-build/include/linux/ |
H A D | stdlib.h | 67 long long strtonum(const char *, long long, long long, const char **);
|
/freebsd/tools/test/buf_ring/ |
H A D | buf_ring_test.c | 232 size = strtonum(optarg, 1, UINT_MAX, &errstr); in main() 257 prod_count = strtonum(optarg, 1, UINT_MAX, &errstr); in main()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | strtonum.c | 34 strtonum(const char *numstr, long long minval, long long maxval, in strtonum() function
|
/freebsd/share/examples/libifconfig/ |
H A D | ifcreatevlan.c | 54 vlantag = strtonum(argv[2], 0, USHRT_MAX, &errstr); in main()
|
H A D | ifchangevlan.c | 56 vlantag = strtonum(argv[3], 0, USHRT_MAX, &errstr); in main()
|
/freebsd/usr.sbin/ypldap/ |
H A D | ldapclient.c | 450 ir->ir_key.ik_uid = strtonum( in client_build_req() 454 ir->ir_key.ik_gid = strtonum( in client_build_req() 483 ir->ir_key.ik_uid = strtonum( in client_build_req() 486 ir->ir_key.ik_uid = strtonum( in client_build_req()
|
/freebsd/usr.sbin/pw/ |
H A D | pw_utils.c | 46 fd = strtonum(nptr, 0, INT_MAX, &errstr); in pw_checkfd()
|
/freebsd/usr.bin/mdo/ |
H A D | mdo.c | 51 uid_t uid = strtonum(username, 0, UID_MAX, &errp); in main()
|
/freebsd/bin/nproc/ |
H A D | nproc.c | 91 ignore = strtonum(optarg, 0, INT_MAX, &errstr); in main()
|