Home
last modified time | relevance | path

Searched refs:expand_number (Results 1 – 25 of 35) sorted by relevance

12

/freebsd/lib/libutil/tests/
H A Dexpand_number_test.c39 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 Dparse.y116 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 Dnvmf.cc138 if (expand_number(value, &val) == 0 && val >= 0 && in parse_number()
/freebsd/usr.bin/cmp/
H A Dcmp.c85 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 Dfifolog_create.c64 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 Dtruncate.c94 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 Dlibutil.h91 int expand_number(const char *_buf, int64_t *_num);
95 #define expand_number(_buf, _num) \ macro
98 default: expand_number)((_buf), (_num))
H A DMakefile12 SRCS= _secure_path.c cpuset.c expand_number.c flopen.c fparseln.c \
38 MAN+= expand_number.3
H A Dexpand_number.c134 (expand_number)(const char *buf, int64_t *num)
H A DSymbol.map15 expand_number;
/freebsd/usr.bin/iscsictl/
H A Dparse.y315 } 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 Dhead.c92 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 Dlibutil.h42 int expand_number(const char *_buf, int64_t *_num);
/freebsd/tools/build/cross-build/mkimg/
H A DMakefile14 SRCS+= expand_number.c
/freebsd/tools/build/cross-build/include/linux/
H A Dlibutil.h49 int expand_number(const char *_buf, int64_t *_num);
/freebsd/usr.bin/mkimg/
H A Dmkimg.c197 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 Dposixshmcontrol.c107 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 Dtrim.c79 if (expand_number(optarg, &usz) == -1 || in main()
/freebsd/tools/tools/nvmf/nvmfd/
H A Dnvmfd.c183 if (expand_number(optarg, &value) != 0) in main()
H A Ddevices.c60 if (expand_number(config, &num)) in init_ramdisk()
/freebsd/usr.bin/tail/
H A Dtail.c101 if (expand_number(optarg, &num)) \ in main()
/freebsd/usr.bin/split/
H A Dsplit.c115 if (expand_number(optarg, &bytecnt) != 0) { in main()
/freebsd/sbin/nvmecontrol/
H A Dcomnd.c254 if (expand_number(optarg, &v) < 0) in arg_parse()
/freebsd/sbin/newfs/
H A Dnewfs.c498 rval = expand_number(buf, &num64); in expand_number_int()
/freebsd/usr.bin/du/
H A Ddu.c192 if (expand_number(optarg, &threshold) != 0 || in main()

12