expand_number
(expand_number)(const char *buf, int64_t *num)
int expand_number(const char *_buf, int64_t *_num);
default: expand_number)((_buf), (_num))
ret = expand_number(tc->str, &num);
ATF_REQUIRE_EQ(0, expand_number("18446744073709551615", &uint64));
ATF_REQUIRE_EQ(-1, expand_number("-1", &uint64));
ATF_REQUIRE_EQ(0, expand_number("9223372036854775807", &int64));
ATF_REQUIRE_EQ(-1, expand_number("9223372036854775808", &int64));
ATF_REQUIRE_EQ(0, expand_number("-9223372036854775808", &int64));
ATF_REQUIRE_EQ(0, expand_number("18446744073709551615", &size));
ATF_REQUIRE_EQ(-1, expand_number("-1", &size));
ATF_REQUIRE_EQ(0, expand_number("9223372036854775807", &off));
ATF_REQUIRE_EQ(-1, expand_number("9223372036854775808", &off));
ATF_REQUIRE_EQ(0, expand_number("-9223372036854775808", &off));
ATF_REQUIRE_MSG(expand_number(str, &val) == 0,
ATF_REQUIRE_MSG(expand_number(str, &val) == -1,
error = expand_number(opt, ret_memsize);
if (expand_number(val, &number) == -1) {
if (expand_number(optarg, &extentsize) == -1)
if (expand_number(optarg, &keepdirty) == -1)
if (expand_number(optarg, &mediasize) == -1)
if (expand_number(av[0], &p->burst) < 0)
rval = expand_number(buf, &num64);
if (expand_number(optarg, &v) < 0)
int expand_number(const char *_buf, int64_t *_num);
int expand_number(const char *_buf, int64_t *_num);
if (expand_number(config, &num))
if (expand_number(optarg, &value) != 0)
if (expand_number(optarg, &limit) < 0 || limit < 0) {
if (argc > 2 && expand_number(argv[2], &skip1) < 0) {
if (argc == 4 && expand_number(argv[3], &skip2) < 0) {
if (expand_number(spec, skip1) < 0)
return (expand_number(colon, skip2) == 0);
if (expand_number(optarg, &threshold) != 0 ||
if (expand_number(optarg, &bytecnt) || bytecnt <= 0)
if (expand_number(optarg, &linecnt) || linecnt <= 0)
} else if (expand_number($3, &tmp) != 0) {
if (expand_number($3, &tmp) != 0) {
if (expand_number($3, &tmp) != 0) {
if (expand_number($3, &tmp) != 0) {
if (expand_number(arg, &val) == -1)
if (expand_number(arg, &val) == -1)
expand_number(size, &bytesize) == -1)
if (expand_number(offset, &byteoffset) == -1)
if (expand_number(optarg, &pgsz) == -1)
if (expand_number(optarg, &newsize) == -1)
if (expand_number(amount, &num)) {
if (expand_number(optarg, &bytecnt) != 0) {
if (expand_number(optarg, &num)) \
if (expand_number(optarg, &tmp)) {
if (expand_number(optarg, &usz) == -1 ||
if (expand_number(optarg, &usz) == -1 ||
if (expand_number(do_relative || do_round ?
if (expand_number(items[1].value, &bytes) != 0) {
retval = expand_number(value, &io_opts->blocksize);
retval = expand_number(value, &io_opts->offset);
error = expand_number(optarg, &max_io);
retval = expand_number(optarg, &lun_size);
retval = expand_number(optarg, &lun_size);
if (expand_number(value, &val) == 0 && val >= 0 &&
if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
} else if (expand_number($2, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($1, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number($1, &tmp) != 0) {
if (expand_number($2, &tmp) != 0) {
if (expand_number(optarg, &recsize))
if (expand_number(optarg, &reccnt))
if (expand_number(optarg, &size))
if (expand_number(q, &trsize) == 0)
if (expand_number(optarg, &usz) == -1 ||