| /netbsd-src/games/monop/ |
| H A D | execute.c | 73 static int getnum(const char *what, char *txt, int min, int max, int *ret); 467 return getnum("format version", txt+21, in restore_parseline() 532 if (getnum("numplayers", txt, 2, MAX_PL, &num_play) < 0) { in restore_toplevel_attr() 544 if (getnum("currentplayer", txt, 0, num_play-1, &player) < 0) { in restore_toplevel_attr() 553 if (getnum("doubles", txt, 0, 2, &num_doub) < 0) { in restore_toplevel_attr() 607 if (getnum(attribute, txt, 0, INT_MAX, &pp->money) < 0) { in restore_player_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() 647 if (getnum(attribute, txt, dp->num_cards, dp->num_cards, in restore_deck_attr() [all …]
|
| /netbsd-src/sbin/mount_nfs/ |
| H A D | mount_nfs.c | 195 getnum(const char *s, int c) in getnum() function 242 nfsargsp->readahead = getnum(optarg, c); in mount_nfs_parseargs() 255 nfsargsp->deadthresh = getnum(optarg, c); in mount_nfs_parseargs() 262 num = getnum(optarg, c); in mount_nfs_parseargs() 268 nfsargsp->readdirsize = getnum(optarg, c); in mount_nfs_parseargs() 384 retrycnt = getnum(optarg, c); in mount_nfs_parseargs() 387 nfsargsp->rsize = getnum(optarg, c); in mount_nfs_parseargs() 397 nfsargsp->timeo = getnum(optarg, c); in mount_nfs_parseargs() 401 nfsargsp->wsize = getnum(optarg, c); in mount_nfs_parseargs() 405 nfsargsp->retrans = getnum(optar in mount_nfs_parseargs() [all...] |
| /netbsd-src/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
|
| /netbsd-src/lib/libcrypt/ |
| H A D | pw_gensalt.c | 111 if (getnum(option, &nrounds) == -1) in __gensalt_new() 150 if (getnum(option, &nrounds) == -1) in __gensalt_sha1() 192 if ((getnum(a, &tmp)) == -1) { in __gensalt_argon2_decode_option() 200 if ((getnum(a, &tmp)) == -1) { in __gensalt_argon2_decode_option() 208 if ((getnum(a, &tmp)) == -1) { in __gensalt_argon2_decode_option()
|
| H A D | crypt-argon2.c | 291 if ((getnum(a, &tmp))<0) { /* on error, default to current */ in decode_option() 315 if ((getnum(p, &tmp)) < 0) { in decode_option() 323 if ((getnum(p, &tmp)) < 0) { in decode_option() 331 if ((getnum(p, &tmp)) < 0) { in decode_option()
|
| H A D | crypt.h | 27 crypt_private int getnum(const char *, size_t *);
|
| H A D | util.c | 53 getnum(const char *str, size_t *num) in getnum() function
|
| H A D | namespace.h | 94 #define getnum __libcrypt_internal_getnum macro
|
| /netbsd-src/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()
|
| /netbsd-src/usr.bin/fmt/ |
| H A D | fmt.c | 81 static int getnum(const char *, const char *, size_t *, int); 123 (void)getnum(optarg, "goal", &goal_length, 1); in main() 128 (void)getnum(optarg, "max", &max_length, 1); in main() 144 if (compat && argc > 0 && getnum(*argv, "goal", &goal_length, 0)) { in main() 147 if (argc > 0 && getnum(*argv, "max", &max_length, 0)) { in main() 187 getnum(const char *str, const char *what, size_t *res, int badnum) in getnum() function
|
| /netbsd-src/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()
|
| /netbsd-src/usr.bin/rs/ |
| H A D | rs.c | 101 static char *getnum(int *, char *, int); 428 p = getnum(&owidth, p, 0); in getargs() 436 p = getnum(&skip, p, 0); in getargs() 444 p = getnum(&gutter, p, 0); in getargs() 447 p = getnum(&propgutter, p, 0); in getargs() 541 getnum(int *num, char *p, int strict) /* num = number p points to; if (strict) complain */ in getnum() function
|
| /netbsd-src/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
|
| /netbsd-src/external/bsd/less/dist/ |
| H A D | option.c | 97 *(pendopt->ovar) = getnum(&s, printopt, (int*)NULL); in scan_option() 278 *(o->ovar) = getnum(&s, printopt, (int*)NULL); in scan_option() 416 num = getnum(&s, NULL, &err); in toggle_option() 625 public int getnum(char **sp, char *printopt, int *errp) in getnum() function
|
| H A D | optfunc.c | 184 int sline = getnum(&s, "j", &err); in opt_j() 244 int hs = getnum(&s, "#", &err); in opt_shift() 975 n = getnum(&s, "header", &err); in opt_header() 986 n = getnum(&s, "header", &err); in opt_header()
|
| H A D | tags.c | 326 taglinenum = getnum(&p, 0, &err); in findctag()
|
| /netbsd-src/bin/rcp/ |
| H A D | rcp.c | 554 #define getnum(t) (t) = 0; while (isdigit((unsigned char)*cp)) (t) = (t) * 10 + (*cp++ - '0'); in sink() macro 559 getnum(mtime.tv_sec); in sink() 562 getnum(mtime.tv_usec); in sink() 565 getnum(atime.tv_sec); in sink() 568 getnum(atime.tv_usec); in sink()
|
| /netbsd-src/external/gpl2/rcs/dist/src/ |
| H A D | rcssyn.c | 221 register struct hshentry *delta = getnum(); in getdnum() 251 if ((delta = getnum())) in getadmin() 285 if (!(delta=getnum())) { in getadmin()
|
| H A D | rcsgen.c | 237 if (!(nextdelta=getnum())) {
|
| /netbsd-src/sbin/disklabel/ |
| H A D | interact.c | 75 static intmax_t getnum(struct disklabel *, char *, intmax_t); 532 if ((im = getnum(lp, line, 0)) == -1 || im < 0) { in cmd_part() 552 if ((im = getnum(lp, line, lp->d_secperunit - p->p_offset)) in cmd_part() 737 getnum(struct disklabel *lp, char *buf, intmax_t defaultval) in getnum() function
|
| /netbsd-src/libexec/getty/ |
| H A D | extern.h | 43 long getnum(char *);
|
| /netbsd-src/lib/libc/time/ |
| H A D | localtime.c | 1009 getnum(register const char *strp, int *const nump, const int min, const int max) in getrule() 1055 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); in transtime() 1061 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in transtime() 1068 strp = getnum(strp, &num, 0, SECSPERMIN); in transtime() 1119 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); in transtime() 1126 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); in transtime() 1131 strp = getnum(strp, &rulep->r_week, 1, 5); in transtime() 1136 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); in transtime() 1142 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1); 901 getnum(register const char *strp, int *const nump, const int min, const int max) getnum() function
|
| /netbsd-src/games/hunt/huntd/ |
| H A D | driver.c | 136 getnum(const char *s, unsigned long *ret) in getnum() function 222 if (getnum(optarg, &optargnum) < 0) { in main()
|
| /netbsd-src/sbin/fdisk/ |
| H A D | fdisk.c | 316 getnum(const char *str, int *num) 344 if (getnum(arg, &num) == -1) in parse_s() 355 if (getnum(arg, &num) == -1) in parse_s() 366 if (getnum(arg, &num) == -1) in parse_s() 317 getnum(const char *str, int *num) getnum() function
|
| /netbsd-src/external/mit/lua/dist/src/ |
| H A D | lstrlib.c | 1467 static int getnum (const char **fmt, int df) { in getnum() function 1485 int sz = getnum(fmt, df); in getnumlimit() 1534 *size = getnum(fmt, -1); in getoption()
|