Searched refs:parse_size (Results 1 - 11 of 11) sorted by relevance

/systemd/src/test/
H A Dtest-parse-util.c101 assert_se(parse_size("111", 1024, &bytes) == 0);
104 assert_se(parse_size("111.4", 1024, &bytes) == 0);
107 assert_se(parse_size(" 112 B", 1024, &bytes) == 0);
110 assert_se(parse_size(" 112.6 B", 1024, &bytes) == 0);
113 assert_se(parse_size("3.5 K", 1024, &bytes) == 0);
116 assert_se(parse_size("3. K", 1024, &bytes) == 0);
119 assert_se(parse_size("3.0 K", 1024, &bytes) == 0);
122 assert_se(parse_size("3. 0 K", 1024, &bytes) == -EINVAL);
124 assert_se(parse_size(" 4 M 11.5K", 1024, &bytes) == 0);
127 assert_se(parse_size("
[all...]
/systemd/src/basic/
H A Dparse-util.h37 int parse_size(const char *t, uint64_t base, uint64_t *size);
H A Drlimit-util.c93 r = parse_size(val, 1024, &u);
H A Dparse-util.c106 int parse_size(const char *t, uint64_t base, uint64_t *size) { function
/systemd/src/shared/
H A Dconf-parser.c486 r = parse_size(rvalue, 1024, &v);
516 r = parse_size(rvalue, 1000, &v);
545 r = parse_size(rvalue, 1024, bytes);
H A Dbus-util.c1510 r = parse_size(eq, 1024, &bytes);
1633 r = parse_size(bandwidth, 1000, &bytes);
/systemd/src/login/
H A Dlogind-user.c882 r = parse_size(rvalue, 1024, &k);
/systemd/src/journal/
H A Djournalctl.c635 r = parse_size(optarg, 1024, &arg_vacuum_size);
/systemd/src/libsystemd/sd-bus/
H A Dbusctl.c1840 r = parse_size(optarg, 1024, &sz);
/systemd/src/core/
H A Dload-fragment.c2892 r = parse_size(rvalue, 1024, &bytes);
3145 r = parse_size(bandwidth, 1000, &bytes);
/systemd/src/machine/
H A Dmachinectl.c2315 r = parse_size(argv[argc-1], 1024, &limit);

Completed in 7899 milliseconds