/src/lib/libcrypt/ |
util.c | 53 getnum(const char *str, size_t *num) function in typeref:typename:crypt_private int
|
namespace.h | 94 #define getnum __libcrypt_internal_getnum macro
|
/src/usr.bin/renice/ |
renice.c | 54 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 in typeref:typename:int
|
/src/usr.sbin/chroot/ |
chroot.c | 62 getnum(const char *str, uintmax_t *num) function in typeref:typename:int 90 if (getnum(group, &num) == -1) 105 if (getnum(user, &num) == -1)
|
/src/lib/libc/gen/ |
disklabel.c | 137 #define getnum(field, dname) \ macro 141 getnum(dp->d_ntracks, "nt"); 142 getnum(dp->d_nsectors, "ns"); 143 getnum(dp->d_ncylinders, "nc"); 175 getnum(pp->p_offset, poffset);
|
/src/games/hunt/huntd/ |
driver.c | 136 getnum(const char *s, unsigned long *ret) function in typeref:typename:int 222 if (getnum(optarg, &optargnum) < 0) {
|
/src/games/monop/ |
execute.c | 73 static int getnum(const char *what, char *txt, int min, int max, int *ret); 467 return getnum("format version", txt+21, 532 if (getnum("numplayers", txt, 2, MAX_PL, &num_play) < 0) { 544 if (getnum("currentplayer", txt, 0, num_play-1, &player) < 0) { 553 if (getnum("doubles", txt, 0, 2, &num_doub) < 0) { 607 if (getnum(attribute, txt, 0, INT_MAX, &pp->money) < 0) { 612 if (getnum(attribute, txt, 0, N_SQRS, &tmp) < 0) { 617 if (getnum(attribute, txt, 0, 2, &tmp) < 0) { 622 if (getnum(attribute, txt, 0, 3, &tmp) < 0) { 647 if (getnum(attribute, txt, dp->num_cards, dp->num_cards 722 getnum(const char *what, char *txt, int min, int max, int *ret) function in typeref:typename:int [all...] |
/src/sbin/disklabel/ |
interact.c | 75 static intmax_t getnum(struct disklabel *, char *, intmax_t); 532 if ((im = getnum(lp, line, 0)) == -1 || im < 0) { 552 if ((im = getnum(lp, line, lp->d_secperunit - p->p_offset)) 737 getnum(struct disklabel *lp, char *buf, intmax_t defaultval) function in typeref:typename:intmax_t
|
/src/usr.bin/fmt/ |
fmt.c | 81 static int getnum(const char *, const char *, size_t *, int); 123 (void)getnum(optarg, "goal", &goal_length, 1); 128 (void)getnum(optarg, "max", &max_length, 1); 144 if (compat && argc > 0 && getnum(*argv, "goal", &goal_length, 0)) { 147 if (argc > 0 && getnum(*argv, "max", &max_length, 0)) { 187 getnum(const char *str, const char *what, size_t *res, int badnum) function in typeref:typename:int
|
/src/sbin/mount_nfs/ |
mount_nfs.c | 195 getnum(const char *s, int c) function in typeref:typename:int 242 nfsargsp->readahead = getnum(optarg, c); 255 nfsargsp->deadthresh = getnum(optarg, c); 262 num = getnum(optarg, c); 268 nfsargsp->readdirsize = getnum(optarg, c); 384 retrycnt = getnum(optarg, c); 387 nfsargsp->rsize = getnum(optarg, c); 397 nfsargsp->timeo = getnum(optarg, c); 401 nfsargsp->wsize = getnum(optarg, c); 405 nfsargsp->retrans = getnum(optarg, c) [all...] |
/src/usr.bin/rs/ |
rs.c | 101 static char *getnum(int *, char *, int); 428 p = getnum(&owidth, p, 0); 436 p = getnum(&skip, p, 0); 444 p = getnum(&gutter, p, 0); 447 p = getnum(&propgutter, p, 0); 541 getnum(int *num, char *p, int strict) /* num = number p points to; if (strict) complain */ function in typeref:typename:char *
|
/src/usr.bin/cal/ |
cal.c | 204 static int getnum(const char *); 233 after = getnum(optarg); 238 before = getnum(optarg); 243 after = before = getnum(optarg); 248 dow = getnum(optarg); 869 getnum(const char *p) function in typeref:typename:int
|
/src/bin/rcp/ |
rcp.c | 554 #define getnum(t) (t) = 0; while (isdigit((unsigned char)*cp)) (t) = (t) * 10 + (*cp++ - '0'); macro 559 getnum(mtime.tv_sec); 562 getnum(mtime.tv_usec); 565 getnum(atime.tv_sec); 568 getnum(atime.tv_usec);
|
/src/sbin/fdisk/ |
fdisk.c | 316 getnum(const char *str, int *num) function in typeref:typename:int 344 if (getnum(arg, &num) == -1) 355 if (getnum(arg, &num) == -1) 366 if (getnum(arg, &num) == -1)
|
/src/lib/libc/time/ |
localtime.c | 1009 getnum(register const char *strp, int *const nump, const int min, const int max) function in typeref:typename:const char * 1055 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); 1061 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); 1068 strp = getnum(strp, &num, 0, SECSPERMIN); 1119 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); 1126 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); 1131 strp = getnum(strp, &rulep->r_week, 1, 5); 1136 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); 1142 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
|