/minix/games/monop/ |
H A D | execute.c | 467 return getnum("format version", txt+21, in restore_parseline() 553 if (getnum("doubles", txt, 0, 2, &num_doub) < 0) { in restore_toplevel_attr() 612 if (getnum(attribute, txt, 0, N_SQRS, &tmp) < 0) { in restore_player_attr() 617 if (getnum(attribute, txt, 0, 2, &tmp) < 0) { in restore_player_attr() 622 if (getnum(attribute, txt, 0, 3, &tmp) < 0) { in restore_player_attr() 652 if (getnum(attribute, txt, 0, dp->num_cards, in restore_deck_attr() 657 if (getnum(attribute, txt, 0, 1, &tmp) < 0) { in restore_deck_attr() 690 if (getnum(attribute, txt, -1, num_play-1, &tmp) < 0) { in restore_square_attr() 701 if (getnum(attribute, txt, 0, 1, &tmp) < 0) { in restore_square_attr() 710 if (getnum(attribute, txt, 0, 5, &tmp) < 0) { in restore_square_attr() [all …]
|
/minix/usr.bin/renice/ |
H A D | renice.c | 54 static int getnum(const char *, const char *, int *); 79 if (getnum("priority", *argv, &prio)) in main() 106 if (getnum("pid", *argv, &twho)) { in main() 123 getnum(const char *com, const char *str, int *val) in getnum() function
|
/minix/lib/libc/gen/ |
H A D | disklabel.c | 137 #define getnum(field, dname) \ in getdiskbyname() macro 141 getnum(dp->d_ntracks, "nt"); in getdiskbyname() 142 getnum(dp->d_nsectors, "ns"); in getdiskbyname() 143 getnum(dp->d_ncylinders, "nc"); in getdiskbyname() 175 getnum(pp->p_offset, poffset); in getdiskbyname()
|
/minix/lib/libcrypt/ |
H A D | pw_gensalt.c | 71 getnum(const char *str, size_t *num) in getnum() function 118 if (getnum(option, &nrounds) == -1) in __gensalt_new() 157 if (getnum(option, &nrounds) == -1) in __gensalt_sha1()
|
/minix/usr.sbin/chroot/ |
H A D | chroot.c | 62 getnum(const char *str, uintmax_t *num) in getnum() function 90 if (getnum(group, &num) == -1) in getgroup() 105 if (getnum(user, &num) == -1) in getuser()
|
/minix/usr.bin/fmt/ |
H A D | fmt.c | 80 static int getnum(const char *, const char *, size_t *, int); 122 (void)getnum(optarg, "goal", &goal_length, 1); in main() 127 (void)getnum(optarg, "max", &max_length, 1); in main() 143 if (compat && argc > 0 && getnum(*argv, "goal", &goal_length, 0)) { in main() 146 if (argc > 0 && getnum(*argv, "max", &max_length, 0)) { in main() 186 getnum(const char *str, const char *what, size_t *res, int badnum) in getnum() function
|
/minix/libexec/getty/ |
H A D | extern.h | 43 long getnum(char *);
|
/minix/external/bsd/less/dist/ |
H A D | optfunc.c | 162 int sline = getnum(&s, "j", &err); 227 int hs = getnum(&s, "#", &err); 531 fg = getnum(&s, "D", &err); 542 bg = getnum(&s, "D", &err);
|
H A D | option.c | 104 *(pendopt->ovar) = getnum(&s, printopt, (int*)NULL); 279 *(o->ovar) = getnum(&s, printopt, (int*)NULL); 422 num = getnum(&s, NULL, &err); 632 getnum(sp, printopt, errp) in getnum() function
|
H A D | funcs.h | 224 public int getnum ();
|
H A D | tags.c | 340 taglinenum = getnum(&p, 0, &err);
|
/minix/usr.bin/cal/ |
H A D | cal.c | 204 static int getnum(const char *); 233 after = getnum(optarg); in main() 238 before = getnum(optarg); in main() 243 after = before = getnum(optarg); in main() 248 dow = getnum(optarg); in main() 869 getnum(const char *p) in getnum() function
|
/minix/external/bsd/blacklist/bin/ |
H A D | conf.c | 90 getnum(const char *f, size_t l, bool local, void *rp, const char *name, in getnum() function 129 return getnum(f, l, local, &c->c_nfail, "nfail", p); in getnfail() 207 return getnum(f, l, local, r, "service", p); in getport() 226 return getnum(f, l, local, mask, "mask", d); in getmask() 331 return getnum(f, l, local, &c->c_proto, "protocol", p); in getproto() 342 return getnum(f, l, local, &c->c_family, "family", p); in getfamily() 356 return getnum(f, l, local, &c->c_uid, "user", p); in getuid()
|
/minix/bin/rcp/ |
H A D | rcp.c | 539 #define getnum(t) (t) = 0; while (isdigit((unsigned char)*cp)) (t) = (t) * 10 + (*cp++ - '0'); in sink() macro 544 getnum(mtime.tv_sec); in sink() 547 getnum(mtime.tv_usec); in sink() 550 getnum(atime.tv_sec); in sink() 553 getnum(atime.tv_usec); in sink()
|
/minix/lib/libc/time/ |
H A D | localtime.c | 790 getnum(const char *strp, int *const nump, const int min, const int max) in getnum() function 835 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); in getsecs() 841 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in getsecs() 848 strp = getnum(strp, &num, 0, SECSPERMIN); in getsecs() 898 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); in getrule() 905 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); in getrule() 910 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule() 915 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); in getrule() 921 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1); in getrule()
|
/minix/external/mit/lua/dist/src/ |
H A D | lstrlib.c | 1132 static int getnum (const char **fmt, int df) { in getnum() function 1150 int sz = getnum(fmt, df); in getnumlimit() 1195 *size = getnum(fmt, -1); in getoption()
|