Searched refs:parse_uid_range (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/test/ |
D | test-user-util.c | 436 TEST(parse_uid_range) { in TEST() argument 439 assert_se(parse_uid_range("", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST() 440 assert_se(parse_uid_range(" ", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST() 441 assert_se(parse_uid_range("x", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST() 443 assert_se(parse_uid_range("0", &a, &b) >= 0 && a == 0 && b == 0); in TEST() 444 assert_se(parse_uid_range("1", &a, &b) >= 0 && a == 1 && b == 1); in TEST() 445 assert_se(parse_uid_range("2-2", &a, &b) >= 0 && a == 2 && b == 2); in TEST() 446 assert_se(parse_uid_range("3-3", &a, &b) >= 0 && a == 3 && b == 3); in TEST() 447 assert_se(parse_uid_range("4-5", &a, &b) >= 0 && a == 4 && b == 5); in TEST() 449 assert_se(parse_uid_range("7-6", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST() [all …]
|
/systemd-251/src/basic/ |
D | user-util.h | 30 int parse_uid_range(const char *s, uid_t *ret_lower, uid_t *ret_upper);
|
D | user-util.c | 76 int parse_uid_range(const char *s, uid_t *ret_lower, uid_t *ret_upper) { in parse_uid_range() function
|
/systemd-251/src/network/ |
D | networkd-routing-policy-rule.c | 1578 r = parse_uid_range(rvalue, &start, &end); in config_parse_routing_policy_rule_uid_range()
|