Home
last modified time | relevance | path

Searched refs:strtonum (Results 1 – 25 of 80) sorted by relevance

1234

/freebsd/contrib/mandoc/
H A Dtest-strtonum.c25 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 Dcompat_strtonum.c31 strtonum(const char *numstr, long long minval, long long maxval, in strtonum() function
/freebsd/tests/sys/kern/tty/
H A Dreadsz.c50 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 Dstrtonumtest.c38 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 Dxargs.c163 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 Dunix_cmsg.c369 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 Ddh.c85 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 Deval.c185 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 Dsplit.c102 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 Dsdiff.c293 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 Dnetcat.c235 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 Dnetcat.c203 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 Dstdlib.h44 long long strtonum(const char *numstr, long long minval, long long maxval,
/freebsd/lib/libc/stdlib/
H A DMakefile.inc15 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 Dstrtonum.c29 strtonum(const char *numstr, long long minval, long long maxval, in strtonum() function
/freebsd/sbin/ping/
H A Dping.c287 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 Dstdlib.h67 long long strtonum(const char *, long long, long long, const char **);
/freebsd/tools/test/buf_ring/
H A Dbuf_ring_test.c232 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 Dstrtonum.c34 strtonum(const char *numstr, long long minval, long long maxval, in strtonum() function
/freebsd/share/examples/libifconfig/
H A Difcreatevlan.c54 vlantag = strtonum(argv[2], 0, USHRT_MAX, &errstr); in main()
H A Difchangevlan.c56 vlantag = strtonum(argv[3], 0, USHRT_MAX, &errstr); in main()
/freebsd/usr.sbin/ypldap/
H A Dldapclient.c450 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 Dpw_utils.c46 fd = strtonum(nptr, 0, INT_MAX, &errstr); in pw_checkfd()
/freebsd/usr.bin/mdo/
H A Dmdo.c51 uid_t uid = strtonum(username, 0, UID_MAX, &errp); in main()
/freebsd/bin/nproc/
H A Dnproc.c91 ignore = strtonum(optarg, 0, INT_MAX, &errstr); in main()

1234