/freebsd/lib/libutil/tests/ |
H A D | expand_number_test.c | 39 ATF_REQUIRE_MSG(expand_number(str, &val) == 0, in require_success() 51 ATF_REQUIRE_MSG(expand_number(str, &val) == -1, in require_error() 233 ret = expand_number(tc->str, &num); in ATF_TC_BODY() 259 ATF_REQUIRE_EQ(0, expand_number("18446744073709551615", &uint64)); in ATF_TC_BODY() 261 ATF_REQUIRE_EQ(-1, expand_number("-1", &uint64)); in ATF_TC_BODY() 264 ATF_REQUIRE_EQ(0, expand_number("9223372036854775807", &int64)); in ATF_TC_BODY() 266 ATF_REQUIRE_EQ(-1, expand_number("9223372036854775808", &int64)); in ATF_TC_BODY() 268 ATF_REQUIRE_EQ(0, expand_number("-9223372036854775808", &int64)); in ATF_TC_BODY() 272 ATF_REQUIRE_EQ(0, expand_number("18446744073709551615", &size)); in ATF_TC_BODY() 274 ATF_REQUIRE_EQ(-1, expand_number("-1", &size)); in ATF_TC_BODY() [all …]
|
/freebsd/usr.sbin/ctld/ |
H A D | parse.y | 116 if (expand_number($2, &tmp) != 0) { 131 if (expand_number($2, &tmp) != 0) { 146 if (expand_number($2, &tmp) != 0) { 183 if (expand_number($2, &tmp) != 0) { 198 if (expand_number($2, &tmp) != 0) { 469 if (expand_number($2, &tmp) != 0) { 487 } else if (expand_number($2, &tmp) != 0) { 525 if (expand_number($2, &tmp) != 0) { 806 if (expand_number($1, &tmp) != 0) { 823 if (expand_number($2, &tmp) != 0) { [all …]
|
H A D | nvmf.cc | 138 if (expand_number(value, &val) == 0 && val >= 0 && in parse_number()
|
/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/lib/libutil/ |
H A D | libutil.h | 91 int expand_number(const char *_buf, int64_t *_num); 95 #define expand_number(_buf, _num) \ macro 98 default: expand_number)((_buf), (_num))
|
H A D | Makefile | 12 SRCS= _secure_path.c cpuset.c expand_number.c flopen.c fparseln.c \ 38 MAN+= expand_number.3
|
H A D | expand_number.c | 134 (expand_number)(const char *buf, int64_t *num)
|
H A D | Symbol.map | 15 expand_number;
|
/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/tools/build/cross-build/include/common/ |
H A D | libutil.h | 42 int expand_number(const char *_buf, int64_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, int64_t *_num);
|
/freebsd/usr.bin/mkimg/ |
H A D | mkimg.c | 197 if (expand_number(arg, &val) == -1) in parse_uint32() 210 if (expand_number(arg, &val) == -1) in parse_uint64() 468 expand_number(size, &bytesize) == -1) in mkimg() 475 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/tools/tools/nvmf/nvmfd/ |
H A D | nvmfd.c | 183 if (expand_number(optarg, &value) != 0) in main()
|
H A D | devices.c | 60 if (expand_number(config, &num)) in init_ramdisk()
|
/freebsd/usr.bin/tail/ |
H A D | tail.c | 101 if (expand_number(optarg, &num)) \ 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 | 498 rval = expand_number(buf, &num64); in expand_number_int()
|
/freebsd/usr.bin/du/ |
H A D | du.c | 192 if (expand_number(optarg, &threshold) != 0 || in main()
|