| /freebsd-12-stable/share/examples/perfmon/ |
| D | perfmon.c | 47 static int getnum(const char *, int, int); 86 pmc.pmc_unit = getnum(optarg, 0, 256); in main() 89 pmc.pmc_mask = getnum(optarg, 0, 256); in main() 92 loops = getnum(optarg, 1, INT_MAX - 1); in main() 95 sleeptime = getnum(optarg, 0, INT_MAX - 1); in main() 108 pmc.pmc_event = getnum(argv[optind], 0, 255); in main() 167 getnum(const char *buf, int min, int max) in getnum() function
|
| /freebsd-12-stable/usr.sbin/fdread/ |
| D | fdutil.c | 204 if (getnum(s1, &out->sectrac)) in parse_fmt() 210 if (getnum(s1, &j)) in parse_fmt() 222 if (getnum(s1, &j)) in parse_fmt() 231 if (getnum(s1, &out->gap)) in parse_fmt() 237 if (getnum(s1, &j)) in parse_fmt() 246 if (getnum(s1, &j)) in parse_fmt() 288 if (getnum(s1, &j)) in parse_fmt() 298 if (getnum(s1, &out->f_gap)) in parse_fmt() 304 if (getnum(s1, &out->f_inter)) in parse_fmt() 310 if (getnum(s1, &out->offset_side2)) in parse_fmt() [all …]
|
| D | fdutil.h | 37 int getnum(const char *, int *);
|
| /freebsd-12-stable/usr.sbin/smbmsg/ |
| D | smbmsg.c | 77 static int getnum(const char *s); 92 getnum(const char *s) in getnum() function 238 if ((cflag = getnum(optarg)) == -1) in main() 251 if ((iflag = getnum(optarg)) == -1) in main() 260 if ((oflag = getnum(optarg)) == -1) in main() 273 if ((slave = getnum(optarg)) == -1) in main() 306 if ((n = getnum(*argv)) == -1) in main() 316 if ((n = getnum(*argv)) == -1) in main()
|
| /freebsd-12-stable/usr.bin/renice/ |
| D | renice.c | 60 static int getnum(const char *, const char *, int *); 87 if (getnum("priority", *argv, &prio)) in main() 106 else if (getnum("uid", *argv, &who)) { in main() 115 if (getnum("pid", *argv, &who)) { in main() 157 getnum(const char *com, const char *str, int *val) in getnum() function
|
| /freebsd-12-stable/tools/regression/fsx/ |
| D | fsx.c | 938 getnum(char *s, char **e) in getnum() function 992 simulatedopcount = getnum(optarg, &endp); in main() 1001 closeprob = getnum(optarg, &endp); in main() 1013 invlprob = getnum(optarg, &endp); in main() 1022 maxfilelen = getnum(optarg, &endp); in main() 1027 monitorstart = getnum(optarg, &endp); in main() 1032 monitorend = getnum(endp, &endp); in main() 1042 maxoplen = getnum(optarg, &endp); in main() 1047 progressinterval = getnum(optarg, &endp); in main() 1055 readbdy = getnum(optarg, &endp); in main() [all …]
|
| /freebsd-12-stable/sys/netpfil/ipfw/test/ |
| D | main.c | 266 getnum(const char *s, char **next, const char *key) in getnum() function 347 w = getnum(strsep(&cur, ":"), &p, "weight"); in parse_flowsets() 350 w_h = p ? getnum(p+1, &p, "weight_max") : w; in parse_flowsets() 351 w_steps = p ? getnum(p+1, &p, "w_steps") : (w_h == w ?1:2); in parse_flowsets() 352 len = getnum(strsep(&cur, ":"), &p, "len"); in parse_flowsets() 355 len_h = p ? getnum(p+1, &p, "len_max") : len; in parse_flowsets() 356 l_steps = p ? getnum(p+1, &p, "l_steps") : (len_h == len ? 1 : 2); in parse_flowsets() 357 flows = getnum(strsep(&cur, ":"), NULL, "flows"); in parse_flowsets() 456 c->loops = getnum(av[1], NULL, av[0]); in init() 482 c->lmin = getnum(av[1], NULL, av[0]); in init() [all …]
|
| /freebsd-12-stable/usr.bin/rs/ |
| D | rs.c | 100 static char *getnum(int *, char *, int); 425 p = getnum(&owidth, p, 0); in getargs() 432 p = getnum(&skip, p, 0); in getargs() 440 p = getnum(&gutter, p, 0); in getargs() 443 p = getnum(&propgutter, p, 0); in getargs() 540 getnum(int *num, char *p, int strict) in getnum() function
|
| /freebsd-12-stable/contrib/less/ |
| D | option.c | 101 *(pendopt->ovar) = getnum(&s, printopt, (int*)NULL); 282 *(o->ovar) = getnum(&s, printopt, (int*)NULL); 425 num = getnum(&s, NULL, &err); 651 getnum(sp, printopt, errp) in getnum() function
|
| D | optfunc.c | 184 int sline = getnum(&s, "j", &err); 249 int hs = getnum(&s, "#", &err);
|
| D | tags.c | 342 taglinenum = getnum(&p, 0, &err);
|
| D | funcs.h | 265 public int getnum LESSPARAMS ((char **sp, char *printopt, int *errp));
|
| /freebsd-12-stable/usr.bin/printf/ |
| D | printf.c | 93 static int getnum(intmax_t *, uintmax_t *, int); 418 if (getnum(&val, &uval, signedconv)) in printf_doformat() 574 if (getnum(&val, &uval, 1)) in getint() 586 getnum(intmax_t *ip, uintmax_t *uip, int signedconv) in getnum() function
|
| /freebsd-12-stable/contrib/blacklist/bin/ |
| D | conf.c | 93 getnum(const char *f, size_t l, bool local, void *rp, const char *name, in getnum() function 132 return getnum(f, l, local, &c->c_nfail, "nfail", p); in getnfail() 210 return getnum(f, l, local, r, "service", p); in getport() 229 return getnum(f, l, local, mask, "mask", d); in getmask() 334 return getnum(f, l, local, &c->c_proto, "protocol", p); in getproto() 345 return getnum(f, l, local, &c->c_family, "family", p); in getfamily() 359 return getnum(f, l, local, &c->c_uid, "user", p); in getuid()
|
| /freebsd-12-stable/contrib/tzcode/stdtime/ |
| D | localtime.c | 179 static const char * getnum(const char * strp, int * nump, int min, 730 getnum(strp, nump, min, max) in getnum() function 775 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); 781 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); 788 strp = getnum(strp, &num, 0, SECSPERMIN); 842 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); 849 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); 854 strp = getnum(strp, &rulep->r_week, 1, 5); 859 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); 865 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
|
| /freebsd-12-stable/usr.sbin/fdformat/ |
| D | fdformat.c | 162 if (getnum(optarg, &fill)) { in main() 171 if (getnum(optarg, &format)) { in main()
|
| /freebsd-12-stable/usr.sbin/fdcontrol/ |
| D | fdcontrol.c | 94 } else if (getnum(optarg, &format)) { in main()
|
| /freebsd-12-stable/contrib/lua/src/ |
| D | lstrlib.c | 1193 static int getnum (const char **fmt, int df) { function 1211 int sz = getnum(fmt, df); 1254 *size = getnum(fmt, -1);
|