Searched refs:strtonum (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-11-stable/contrib/mdocml/
H A Dtest-strtonum.c1 /* $Id: test-strtonum.c,v 1.2 2015/10/06 18:32:20 schwarze Exp $ */
25 if (strtonum("1", 0, 2, &errstr) != 1)
29 if (strtonum("1x", 0, 2, &errstr) != 0)
33 if (strtonum("2", 0, 1, &errstr) != 0)
37 if (strtonum("0", 1, 2, &errstr) != 0)
H A Dcompat_strtonum.c10 /* $OpenBSD: strtonum.c,v 1.7 2013/04/17 18:40:58 tedu Exp $ */
38 strtonum(const char *numstr, long long minval, long long maxval, function
H A Dmanpath.c299 conf->indent = strtonum(cp, 0, 1000, &errstr);
309 conf->width = strtonum(cp, 1, 1000, &errstr);
H A Dmandocd.c168 clientfd = strtonum(argv[0], 3, INT_MAX, &errstr);
/freebsd-11-stable/crypto/openssh/openbsd-compat/regress/
H A Dstrtonumtest.c18 /* OPENBSD ORIGINAL: regress/lib/libc/strtonum/strtonumtest.c */
36 long long strtonum(const char *, long long, long long, const char **);
46 val = strtonum(p, lb, ub, &q);
/freebsd-11-stable/lib/libc/stdlib/
H A Dstrtonum.c17 * $OpenBSD: strtonum.c,v 1.7 2013/04/17 18:40:58 tedu Exp $
32 strtonum(const char *numstr, long long minval, long long maxval, function
H A DMakefile.inc18 strtol.c strtold.c strtoll.c strtoq.c strtoul.c strtonum.c strtoull.c \
41 strfmon.3 strtod.3 strtol.3 strtonum.3 strtoul.3 system.3 \
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dstrtonum.c1 /* $OpenBSD: strtonum.c,v 1.6 2004/08/03 19:38:01 millert Exp $ */
20 /* OPENBSD ORIGINAL: lib/libc/stdlib/strtonum.c */
34 strtonum(const char *numstr, long long minval, long long maxval, function
H A DMakefile.in19 OPENBSD=base64.o basename.o bcrypt_pbkdf.o bindresvport.o blowfish.o daemon.o dirname.o fmt_scaled.o getcwd.o getgrouplist.o getopt_long.o getrrsetbyname.o glob.o inet_aton.o inet_ntoa.o inet_ntop.o mktemp.o pwcache.o readpassphrase.o reallocarray.o realpath.o rresvport.o setenv.o setproctitle.o sha1.o sha2.o rmd160.o md5.o sigact.o strcasestr.o strlcat.o strlcpy.o strmode.o strnlen.o strptime.o strsep.o strtonum.o strtoll.o strtoul.o strtoull.o timingsafe_bcmp.o vis.o blowfish.o bcrypt_pbkdf.o explicit_bzero.o
H A Dopenbsd-compat.h225 long long strtonum(const char *, long long, long long, const char **);
/freebsd-11-stable/usr.bin/xargs/
H A Dxargs.c155 Lflag = strtonum(optarg, 0, INT_MAX, &errstr);
161 nargs = strtonum(optarg, 1, INT_MAX, &errstr);
169 maxprocs = strtonum(optarg, 0, INT_MAX, &errstr);
194 nline = strtonum(optarg, 0, INT_MAX, &errstr);
/freebsd-11-stable/usr.sbin/pw/
H A Dpw_utils.c48 fd = strtonum(nptr, 0, INT_MAX, &errstr);
/freebsd-11-stable/crypto/openssh/
H A Ddh.c70 n = strtonum(arg, 0, 5, &errstr);
79 n = strtonum(arg, 0, 0x1f, &errstr);
88 n = strtonum(arg, 0, 1<<30, &errstr);
95 (dhg->size = (int)strtonum(strsize, 0, 64*1024, &errstr)) == 0 ||
/freebsd-11-stable/tools/regression/sockets/unix_cmsg/
H A Dunix_cmsg.c372 uc_cfg.ipc_msg.msg_num = strtonum(optarg, 1,
379 uc_cfg.ipc_msg.buf_size = strtonum(optarg, 0,
395 zvalue = strtonum(optarg, 0, 3, &errstr);
412 testno = strtonum(argv[optind], 0, UINT_MAX, &errstr);
/freebsd-11-stable/usr.bin/m4/
H A Deval.c186 base = strtonum(argv[3], 2, 36, &errstr);
193 maxdigits = strtonum(argv[4], 0, INT_MAX, &errstr);
236 n = strtonum(argv[2], INT_MIN, INT_MAX-1, &errstr);
250 n = strtonum(argv[2], INT_MIN+1, INT_MAX, &errstr);
357 n = strtonum(argv[2], INT_MIN, INT_MAX, &errstr);
868 n = strtonum(argv[ind], 1, INT_MAX, &errstr);
/freebsd-11-stable/bin/stty/
H A Dstty.c134 speed = strtonum(*argv, 0, UINT_MAX, &errstr);
/freebsd-11-stable/contrib/netcat/
H A Dnetcat.c217 iflag = strtonum(optarg, 0, UINT_MAX, &errstr);
257 rtableid = (int)strtonum(optarg, 0,
266 timeout = strtonum(optarg, 0, INT_MAX / 1000, &errstr);
283 Iflag = strtonum(optarg, 1, 65536 << 14, &errstr);
289 Oflag = strtonum(optarg, 1, 65536 << 14, &errstr);
308 Tflag = (int)strtonum(optarg, 0, 255,
1120 hi = strtonum(n, 1, PORT_MAX, &errstr);
1123 lo = strtonum(p, 1, PORT_MAX, &errstr);
1155 hi = strtonum(p, 1, PORT_MAX, &errstr);
/freebsd-11-stable/usr.bin/truss/
H A Dmain.c120 trussinfo->strsize = strtonum(optarg, 0, INT_MAX, &errstr);
/freebsd-11-stable/usr.bin/sdiff/
H A Dsdiff.c293 wflag = strtonum(optarg, WIDTH_MIN,
710 file1start = strtonum(line, 0, INT_MAX, &errstr);
722 file1end = strtonum(q, 0, INT_MAX, &errstr);
741 file2start = strtonum(q, 0, INT_MAX, &errstr);
754 file2end = strtonum(p, 0, INT_MAX, &errstr);
/freebsd-11-stable/crypto/openssh/regress/
H A Dnetcat.c194 iflag = strtonum(optarg, 0, UINT_MAX, &errstr);
230 rtableid = (int)strtonum(optarg, 0,
240 timeout = strtonum(optarg, 0, INT_MAX / 1000, &errstr);
257 Iflag = strtonum(optarg, 1, 65536 << 14, &errstr);
263 Oflag = strtonum(optarg, 1, 65536 << 14, &errstr);
280 Tflag = (int)strtonum(optarg, 0, 255,
1099 hi = strtonum(n, 1, PORT_MAX, &errstr);
1102 lo = strtonum(p, 1, PORT_MAX, &errstr);
1134 hi = strtonum(p, 1, PORT_MAX, &errstr);
/freebsd-11-stable/secure/lib/libssh/
H A DMakefile34 glob.c openssl-compat.c port-tun.c realpath.c strtonum.c \
/freebsd-11-stable/usr.sbin/ypldap/
H A Dldapclient.c451 ir->ir_key.ik_uid = strtonum(
455 ir->ir_key.ik_gid = strtonum(
484 ir->ir_key.ik_uid = strtonum(
487 ir->ir_key.ik_uid = strtonum(
H A Dyp.c363 ukey.ue_uid = strtonum(key, 0, UID_MAX, &estr);
378 gkey.ge_gid = strtonum(key, 0, GID_MAX, &estr);
426 ukey.ue_uid = strtonum(cp, 0, UID_MAX, &estr);
/freebsd-11-stable/lib/libdpv/
H A Ddialog_util.c155 /* strtonum(3) doesn't like trailing junk */
162 maxsize->ws_row = (unsigned short)strtonum(
164 maxsize->ws_col = (unsigned short)strtonum(
/freebsd-11-stable/secure/lib/libcrypt/
H A Dcrypt-blowfish.c193 logr = strtonum(arounds, BCRYPT_MINLOGROUNDS, 31, NULL);

Completed in 156 milliseconds

123