/freebsd/lib/libutil/tests/ |
H A D | expand_number_test.c | 42 ATF_CHECK_ERRNO(0, (retval = expand_number((string), &num)) == 0); \ in ATF_TC_BODY() 71 ATF_CHECK_ERRNO(EINVAL, expand_number("", &num)); in ATF_TC_BODY() 72 ATF_CHECK_ERRNO(EINVAL, expand_number("x", &num)); in ATF_TC_BODY() 73 ATF_CHECK_ERRNO(EINVAL, expand_number("1bb", &num)); in ATF_TC_BODY() 74 ATF_CHECK_ERRNO(EINVAL, expand_number("1x", &num)); in ATF_TC_BODY() 75 ATF_CHECK_ERRNO(EINVAL, expand_number("1kx", &num)); in ATF_TC_BODY() 76 ATF_CHECK_ERRNO(ERANGE, expand_number("16E", &num)); in ATF_TC_BODY()
|
/freebsd/usr.sbin/ctld/ |
H A D | parse.y | 114 if (expand_number($2, &tmp) != 0) { 128 if (expand_number($2, &tmp) != 0) { 142 if (expand_number($2, &tmp) != 0) { 178 if (expand_number($2, &tmp) != 0) { 192 if (expand_number($2, &tmp) != 0) { 461 if (expand_number($2, &tmp) != 0) { 478 } else if (expand_number($2, &tmp) != 0) { 518 if (expand_number($2, &tmp) != 0) { 866 if (expand_number($1, &tmp) != 0) { 893 if (expand_number($2, &tmp) != 0) { [all …]
|
/freebsd/usr.bin/cmp/ |
H A D | cmp.c | 85 if (expand_number(spec, skip1) < 0) in parse_iskipspec() 89 return (expand_number(colon, skip2) == 0); in parse_iskipspec() 127 if (expand_number(optarg, &limit) < 0 || limit < 0) { in main() 188 if (argc > 2 && expand_number(argv[2], &skip1) < 0) { in main() 193 if (argc == 4 && expand_number(argv[3], &skip2) < 0) { in main()
|
/freebsd/usr.sbin/fifolog/fifolog_create/ |
H A D | fifolog_create.c | 64 if (expand_number(optarg, &recsize)) in main() 68 if (expand_number(optarg, &reccnt)) in main() 72 if (expand_number(optarg, &size)) in main()
|
/freebsd/usr.bin/truncate/ |
H A D | truncate.c | 94 if (expand_number(do_relative || do_round ? in main() 105 if (expand_number(optarg, &usz) == -1 || in main() 113 if (expand_number(optarg, &usz) == -1 || in main()
|
/freebsd/usr.bin/iscsictl/ |
H A D | parse.y | 315 } else if (expand_number($3, &tmp) != 0) { 358 if (expand_number($3, &tmp) != 0) { 379 if (expand_number($3, &tmp) != 0) { 395 if (expand_number($3, &tmp) != 0) {
|
/freebsd/usr.bin/head/ |
H A D | head.c | 92 if (expand_number(optarg, &bytecnt) || bytecnt <= 0) in main() 96 if (expand_number(optarg, &linecnt) || linecnt <= 0) in main()
|
/freebsd/lib/libutil/ |
H A D | Makefile | 12 SRCS= _secure_path.c auth.c cpuset.c expand_number.c flopen.c fparseln.c \ 31 MAN+= cpuset.3 expand_number.3 flopen.3 fparseln.3 ftime.3 getlocalbase.3 \
|
H A D | expand_number.c | 38 expand_number(const char *buf, uint64_t *num) in expand_number() function
|
H A D | libutil.h | 92 int expand_number(const char *_buf, uint64_t *_num);
|
/freebsd/tools/build/cross-build/include/common/ |
H A D | libutil.h | 42 int expand_number(const char *_buf, uint64_t *_num);
|
/freebsd/tools/build/cross-build/mkimg/ |
H A D | Makefile | 14 SRCS+= expand_number.c
|
/freebsd/tools/build/cross-build/include/linux/ |
H A D | libutil.h | 49 int expand_number(const char *_buf, uint64_t *_num);
|
/freebsd/usr.bin/mkimg/ |
H A D | mkimg.c | 194 if (expand_number(arg, &val) == -1) in parse_uint32() 207 if (expand_number(arg, &val) == -1) in parse_uint64() 465 expand_number(size, &bytesize) == -1) in mkimg() 472 if (expand_number(offset, &byteoffset) == -1) in mkimg()
|
/freebsd/usr.bin/posixshmcontrol/ |
H A D | posixshmcontrol.c | 107 if (expand_number(optarg, &pgsz) == -1) in create_shm() 527 if (expand_number(optarg, &newsize) == -1) in truncate_shm()
|
/freebsd/usr.sbin/trim/ |
H A D | trim.c | 79 if (expand_number(optarg, &usz) == -1 || in main()
|
/freebsd/usr.bin/tail/ |
H A D | tail.c | 100 if (expand_number(optarg, &off)) \ in main()
|
/freebsd/usr.bin/tcopy/ |
H A D | tcopy.c | 89 if (expand_number(optarg, &tmp)) { in main()
|
/freebsd/usr.bin/split/ |
H A D | split.c | 115 if (expand_number(optarg, &bytecnt) != 0) { in main()
|
/freebsd/sbin/nvmecontrol/ |
H A D | comnd.c | 254 if (expand_number(optarg, &v) < 0) in arg_parse()
|
/freebsd/sbin/newfs/ |
H A D | newfs.c | 496 rval = expand_number(buf, &num64); in expand_number_int()
|
/freebsd/usr.bin/du/ |
H A D | du.c | 189 if (expand_number(optarg, &threshold) != 0 || in main()
|
/freebsd/usr.bin/rctl/ |
H A D | rctl.c | 148 if (expand_number(amount, &num)) { in expand_amount()
|
/freebsd/tools/build/ |
H A D | Makefile | 235 SRCS+= expand_number.c
|
/freebsd/usr.sbin/camdd/ |
H A D | camdd.c | 3482 retval = expand_number(value, &io_opts->blocksize); 3510 retval = expand_number(value, &io_opts->offset); 3584 error = expand_number(optarg, &max_io);
|