Home
last modified time | relevance | path

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

12

/freebsd/lib/libutil/tests/
H A Dexpand_number_test.c42 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 Dparse.y114 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 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/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/lib/libutil/
H A DMakefile12 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 Dexpand_number.c38 expand_number(const char *buf, uint64_t *num) in expand_number() function
H A Dlibutil.h92 int expand_number(const char *_buf, uint64_t *_num);
/freebsd/tools/build/cross-build/include/common/
H A Dlibutil.h42 int expand_number(const char *_buf, uint64_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, uint64_t *_num);
/freebsd/usr.bin/mkimg/
H A Dmkimg.c194 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 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/usr.bin/tail/
H A Dtail.c100 if (expand_number(optarg, &off)) \ in main()
/freebsd/usr.bin/tcopy/
H A Dtcopy.c89 if (expand_number(optarg, &tmp)) { 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.c496 rval = expand_number(buf, &num64); in expand_number_int()
/freebsd/usr.bin/du/
H A Ddu.c189 if (expand_number(optarg, &threshold) != 0 || in main()
/freebsd/usr.bin/rctl/
H A Drctl.c148 if (expand_number(amount, &num)) { in expand_amount()
/freebsd/tools/build/
H A DMakefile235 SRCS+= expand_number.c
/freebsd/usr.sbin/camdd/
H A Dcamdd.c3482 retval = expand_number(value, &io_opts->blocksize);
3510 retval = expand_number(value, &io_opts->offset);
3584 error = expand_number(optarg, &max_io);

12