Searched refs:parse_size (Results 1 - 11 of 11) sorted by relevance
/systemd/src/test/ |
H A D | test-parse-util.c | 101 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 D | parse-util.h | 37 int parse_size(const char *t, uint64_t base, uint64_t *size);
|
H A D | rlimit-util.c | 93 r = parse_size(val, 1024, &u);
|
H A D | parse-util.c | 106 int parse_size(const char *t, uint64_t base, uint64_t *size) { function
|
/systemd/src/shared/ |
H A D | conf-parser.c | 486 r = parse_size(rvalue, 1024, &v); 516 r = parse_size(rvalue, 1000, &v); 545 r = parse_size(rvalue, 1024, bytes);
|
H A D | bus-util.c | 1510 r = parse_size(eq, 1024, &bytes); 1633 r = parse_size(bandwidth, 1000, &bytes);
|
/systemd/src/login/ |
H A D | logind-user.c | 882 r = parse_size(rvalue, 1024, &k);
|
/systemd/src/journal/ |
H A D | journalctl.c | 635 r = parse_size(optarg, 1024, &arg_vacuum_size);
|
/systemd/src/libsystemd/sd-bus/ |
H A D | busctl.c | 1840 r = parse_size(optarg, 1024, &sz);
|
/systemd/src/core/ |
H A D | load-fragment.c | 2892 r = parse_size(rvalue, 1024, &bytes); 3145 r = parse_size(bandwidth, 1000, &bytes);
|
/systemd/src/machine/ |
H A D | machinectl.c | 2315 r = parse_size(argv[argc-1], 1024, &limit);
|
Completed in 7899 milliseconds