| /freebsd-14.2/share/examples/perfmon/ |
| H A D | perfmon.c | 45 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 D | fdutil.c | 202 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 D | fdutil.h | 35 int getnum(const char *, int *);
|
| /freebsd-14.2/usr.sbin/smbmsg/ |
| H A D | smbmsg.c | 75 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 D | renice.c | 59 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 D | ltests.c | 1420 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 D | lstrlib.c | 1459 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 D | fsx.c | 936 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 D | main.c | 263 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 D | rs.cc | 82 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 D | option.c | 95 *(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 D | optfunc.c | 182 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 D | tags.c | 324 taglinenum = getnum(&p, 0, &err); in findctag()
|
| H A D | funcs.h | 290 public int getnum(char **sp, char *printopt, int *errp);
|
| /freebsd-14.2/usr.bin/printf/ |
| H A D | printf.c | 91 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 D | ulp.c | 623 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 D | fdformat.c | 160 if (getnum(optarg, &fill)) { in main() 169 if (getnum(optarg, &format)) { in main()
|
| /freebsd-14.2/contrib/tzcode/ |
| H A D | localtime.c | 856 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 D | fdcontrol.c | 92 } else if (getnum(optarg, &format)) { in main()
|