Home
last modified time | relevance | path

Searched refs:getnum (Results 1 – 19 of 19) sorted by relevance

/freebsd-14.2/share/examples/perfmon/
H A Dperfmon.c45 static int getnum(const char *, int, int);
84 pmc.pmc_unit = getnum(optarg, 0, 256); in main()
87 pmc.pmc_mask = getnum(optarg, 0, 256); in main()
90 loops = getnum(optarg, 1, INT_MAX - 1); in main()
93 sleeptime = getnum(optarg, 0, INT_MAX - 1); in main()
106 pmc.pmc_event = getnum(argv[optind], 0, 255); in main()
165 getnum(const char *buf, int min, int max) in getnum() function
/freebsd-14.2/usr.sbin/fdread/
H A Dfdutil.c202 if (getnum(s1, &out->sectrac)) in parse_fmt()
208 if (getnum(s1, &j)) in parse_fmt()
220 if (getnum(s1, &j)) in parse_fmt()
229 if (getnum(s1, &out->gap)) in parse_fmt()
235 if (getnum(s1, &j)) in parse_fmt()
244 if (getnum(s1, &j)) in parse_fmt()
286 if (getnum(s1, &j)) in parse_fmt()
296 if (getnum(s1, &out->f_gap)) in parse_fmt()
302 if (getnum(s1, &out->f_inter)) in parse_fmt()
308 if (getnum(s1, &out->offset_side2)) in parse_fmt()
[all …]
H A Dfdutil.h35 int getnum(const char *, int *);
/freebsd-14.2/usr.sbin/smbmsg/
H A Dsmbmsg.c75 static int getnum(const char *s);
90 getnum(const char *s) in getnum() function
236 if ((cflag = getnum(optarg)) == -1) in main()
249 if ((iflag = getnum(optarg)) == -1) in main()
258 if ((oflag = getnum(optarg)) == -1) in main()
271 if ((slave = getnum(optarg)) == -1) in main()
304 if ((n = getnum(*argv)) == -1) in main()
314 if ((n = getnum(*argv)) == -1) in main()
/freebsd-14.2/usr.bin/renice/
H A Drenice.c59 static int getnum(const char *, const char *, int *);
104 if (getnum("priority", *argv, &prio)) in main()
112 else if (getnum("uid", *argv, &who)) { in main()
121 if (getnum("pid", *argv, &who)) { in main()
165 getnum(const char *com, const char *str, int *val) in getnum() function
/freebsd-14.2/contrib/lua/src/
H A Dltests.c1420 int narg = getnum; in runC()
1421 int nres = getnum; in runC()
1425 int narg = getnum; in runC()
1426 int nres = getnum; in runC()
1431 int sz = getnum; in runC()
1438 int sz = getnum; in runC()
1478 int a = getnum; int b = getnum; int c = getnum; in runC()
1548 int narg = getnum; in runC()
1562 int n = getnum; in runC()
1653 int n = getnum; in runC()
[all …]
H A Dlstrlib.c1459 static int getnum (const char **fmt, int df) { function
1477 int sz = getnum(fmt, df);
1522 *size = getnum(fmt, -1);
/freebsd-14.2/tools/regression/fsx/
H A Dfsx.c936 getnum(char *s, char **e) in getnum() function
1010 closeprob = getnum(optarg, &endp); in main()
1022 invlprob = getnum(optarg, &endp); in main()
1041 monitorend = getnum(endp, &endp); in main()
1051 maxoplen = getnum(optarg, &endp); in main()
1064 readbdy = getnum(optarg, &endp); in main()
1069 style = getnum(optarg, &endp); in main()
1074 truncbdy = getnum(optarg, &endp); in main()
1079 writebdy = getnum(optarg, &endp); in main()
1092 numops = getnum(optarg, &endp); in main()
[all …]
/freebsd-14.2/sys/netpfil/ipfw/test/
H A Dmain.c263 getnum(const char *s, char **next, const char *key) in getnum() function
344 w = getnum(strsep(&cur, ":"), &p, "weight"); in parse_flowsets()
347 w_h = p ? getnum(p+1, &p, "weight_max") : w; in parse_flowsets()
349 len = getnum(strsep(&cur, ":"), &p, "len"); in parse_flowsets()
352 len_h = p ? getnum(p+1, &p, "len_max") : len; in parse_flowsets()
453 c->loops = getnum(av[1], NULL, av[0]); in init()
479 c->lmin = getnum(av[1], NULL, av[0]); in init()
484 c->maxburst = getnum(av[1], NULL, av[0]); in init()
488 c->th_max = getnum(av[1], NULL, av[0]); in init()
491 c->th_min = getnum(av[1], NULL, av[0]); in init()
[all …]
/freebsd-14.2/usr.bin/rs/
H A Drs.cc82 static long getnum(const char *);
371 val = getnum(optarg); in getargs()
380 skip = getnum(optarg); in getargs()
388 gutter = getnum(optarg); in getargs()
391 propgutter = getnum(optarg); in getargs()
453 getnum(const char *p) in getnum() function
/freebsd-14.2/contrib/less/
H A Doption.c95 *(pendopt->ovar) = getnum(&s, printopt, (int*)NULL); in scan_option()
276 *(o->ovar) = getnum(&s, printopt, (int*)NULL); in scan_option()
414 num = getnum(&s, NULL, &err); in toggle_option()
621 public int getnum(char **sp, char *printopt, int *errp) in getnum() function
H A Doptfunc.c182 int sline = getnum(&s, "j", &err); in opt_j()
242 int hs = getnum(&s, "#", &err); in opt_shift()
973 n = getnum(&s, "header", &err); in opt_header()
984 n = getnum(&s, "header", &err); in opt_header()
H A Dtags.c324 taglinenum = getnum(&p, 0, &err); in findctag()
H A Dfuncs.h290 public int getnum(char **sp, char *printopt, int *errp);
/freebsd-14.2/usr.bin/printf/
H A Dprintf.c91 static int getnum(intmax_t *, uintmax_t *, int);
416 if (getnum(&val, &uval, signedconv)) in printf_doformat()
572 if (getnum(&val, &uval, 1)) in getint()
584 getnum(intmax_t *ip, uintmax_t *uip, int signedconv) in getnum() function
/freebsd-14.2/contrib/arm-optimized-routines/math/test/
H A Dulp.c623 getnum (const char *s, int singleprec) in getnum() function
662 b = a = getnum (argv[0], singleprec); in parsegen()
671 b = getnum (argv[1], singleprec); in parsegen()
678 b2 = a2 = getnum (argv[0], singleprec); in parsegen()
680 b2 = getnum (argv[1], singleprec); in parsegen()
/freebsd-14.2/usr.sbin/fdformat/
H A Dfdformat.c160 if (getnum(optarg, &fill)) { in main()
169 if (getnum(optarg, &format)) { in main()
/freebsd-14.2/contrib/tzcode/
H A Dlocaltime.c856 getnum(register const char *strp, int *const nump, const int min, const int max) in getnum() function
896 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); in getsecs()
902 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in getsecs()
909 strp = getnum(strp, &num, 0, SECSPERMIN); in getsecs()
960 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); in getrule()
967 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); in getrule()
972 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule()
977 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); in getrule()
983 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1); in getrule()
/freebsd-14.2/usr.sbin/fdcontrol/
H A Dfdcontrol.c92 } else if (getnum(optarg, &format)) { in main()