Searched refs:getnum (Results 1 - 22 of 22) sorted by relevance

/netbsd-6-1-5-RELEASE/libexec/getty/
H A Dextern.h43 long getnum(char *);
/netbsd-6-1-5-RELEASE/usr.bin/renice/
H A Drenice.c54 static int getnum(const char *, const char *, int *);
79 if (getnum("priority", *argv, &prio))
106 if (getnum("pid", *argv, &twho)) {
123 getnum(const char *com, const char *str, int *val) function
/netbsd-6-1-5-RELEASE/lib/libcrypt/
H A Dpw_gensalt.c71 getnum(const char *str, size_t *num) function
118 if (getnum(option, &nrounds) == -1)
157 if (getnum(option, &nrounds) == -1)
/netbsd-6-1-5-RELEASE/usr.sbin/chroot/
H A Dchroot.c62 getnum(const char *str, uintmax_t *num) function
90 if (getnum(group, &num) == -1)
105 if (getnum(user, &num) == -1)
/netbsd-6-1-5-RELEASE/games/monop/
H A Dexecute.c73 static int getnum(const char *what, char *txt, int min, int max, int *ret);
469 return getnum("format version", txt+21,
534 if (getnum("numplayers", txt, 2, MAX_PL, &num_play) < 0) {
546 if (getnum("currentplayer", txt, 0, num_play-1, &player) < 0) {
555 if (getnum("doubles", txt, 0, 2, &num_doub) < 0) {
609 if (getnum(attribute, txt, 0, INT_MAX, &pp->money) < 0) {
614 if (getnum(attribute, txt, 0, N_SQRS, &tmp) < 0) {
619 if (getnum(attribute, txt, 0, 2, &tmp) < 0) {
624 if (getnum(attribute, txt, 0, 3, &tmp) < 0) {
649 if (getnum(attribut
724 getnum(const char *what, char *txt, int min, int max, int *ret) function
[all...]
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Ddisklabel.c139 #define getnum(field, dname) \ macro
143 getnum(dp->d_ntracks, "nt");
144 getnum(dp->d_nsectors, "ns");
145 getnum(dp->d_ncylinders, "nc");
177 getnum(pp->p_offset, poffset);
/netbsd-6-1-5-RELEASE/usr.bin/fmt/
H A Dfmt.c80 static int getnum(const char *, const char *, size_t *, int);
122 (void)getnum(optarg, "goal", &goal_length, 1);
126 (void)getnum(optarg, "max", &max_length, 1);
142 if (compat && argc > 0 && getnum(*argv, "goal", &goal_length, 0)) {
145 if (argc > 0 && getnum(*argv, "max", &max_length, 0)) {
185 getnum(const char *str, const char *what, size_t *res, int badnum) function
/netbsd-6-1-5-RELEASE/usr.bin/rs/
H A Drs.c101 static char *getnum(int *, char *, int);
423 p = getnum(&owidth, p, 0);
430 p = getnum(&skip, p, 0);
438 p = getnum(&gutter, p, 0);
441 p = getnum(&propgutter, p, 0);
531 getnum(int *num, char *p, int strict) /* num = number p points to; if (strict) complain */ function
/netbsd-6-1-5-RELEASE/external/bsd/less/dist/
H A Doptfunc.c163 int sline = getnum(&s, "j", &err);
228 int hs = getnum(&s, "#", &err);
509 fg = getnum(&s, "D", &err);
520 bg = getnum(&s, "D", &err);
H A Doption.c104 *(pendopt->ovar) = getnum(&s, printopt, (int*)NULL);
274 *(o->ovar) = getnum(&s, printopt, (int*)NULL);
415 num = getnum(&s, NULL, &err);
629 getnum(sp, printopt, errp) function
H A Dfuncs.h223 public int getnum ();
H A Dtags.c341 taglinenum = getnum(&p, 0, &err);
/netbsd-6-1-5-RELEASE/gnu/usr.bin/rcs/lib/
H A Drcssyn.c223 register struct hshentry *delta = getnum();
253 if ((delta = getnum()))
287 if (!(delta=getnum())) {
H A Drcsgen.c243 if (!(nextdelta=getnum())) {
H A Drcsbase.h593 struct hshentry *getnum P((void));
H A Drcslex.c8 * getid, getnum, readstring, printstring, savestring,
516 struct hshentry * getnum() function
/netbsd-6-1-5-RELEASE/bin/rcp/
H A Drcp.c539 #define getnum(t) (t) = 0; while (isdigit((unsigned char)*cp)) (t) = (t) * 10 + (*cp++ - '0'); macro
544 getnum(mtime.tv_sec);
547 getnum(mtime.tv_usec);
550 getnum(atime.tv_sec);
553 getnum(atime.tv_usec);
/netbsd-6-1-5-RELEASE/usr.bin/cal/
H A Dcal.c204 static int getnum(const char *);
233 after = getnum(optarg);
238 before = getnum(optarg);
243 dow = getnum(optarg);
864 getnum(const char *p) function
/netbsd-6-1-5-RELEASE/sbin/disklabel/
H A Dinteract.c70 static intmax_t getnum(struct disklabel *, char *, intmax_t);
507 if ((im = getnum(lp, line, 0)) == -1 || im < 0) {
527 if ((im = getnum(lp, line, lp->d_secperunit - p->p_offset))
714 getnum(struct disklabel *lp, char *buf, intmax_t defaultval) function
/netbsd-6-1-5-RELEASE/lib/libc/time/
H A Dlocaltime.c160 static const char * getnum(const char * strp, int * nump, int min,
700 getnum(strp, nump, min, max) function
749 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
755 strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
762 strp = getnum(strp, &num, 0, SECSPERMIN);
812 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
819 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
824 strp = getnum(strp, &rulep->r_week, 1, 5);
829 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
835 strp = getnum(str
[all...]
/netbsd-6-1-5-RELEASE/gnu/usr.bin/rcs/rcs/
H A Drcs.c924 if (!(nextdelta=getnum()))
/netbsd-6-1-5-RELEASE/gnu/usr.bin/rcs/rlog/
H A Drlog.c645 if (!(Delta = getnum()))

Completed in 247 milliseconds