Home
last modified time | relevance | path

Searched refs:parse_permyriad (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/test/
Dtest-percent-util.c86 TEST(parse_permyriad) { in TEST() argument
87 assert_se(parse_permyriad("") == -EINVAL); in TEST()
88 assert_se(parse_permyriad("foo") == -EINVAL); in TEST()
89 assert_se(parse_permyriad("0") == -EINVAL); in TEST()
90 assert_se(parse_permyriad("50") == -EINVAL); in TEST()
91 assert_se(parse_permyriad("100") == -EINVAL); in TEST()
92 assert_se(parse_permyriad("-1") == -EINVAL); in TEST()
94 assert_se(parse_permyriad("0‱") == 0); in TEST()
95 assert_se(parse_permyriad("555‱") == 555); in TEST()
96 assert_se(parse_permyriad("1000‱") == 1000); in TEST()
[all …]
/systemd-251/src/basic/
Dpercent-util.h16 int parse_permyriad(const char *p);
Dpercent-util.c149 int parse_permyriad(const char *p) { in parse_permyriad() function
/systemd-251/src/network/tc/
Dtc-util.c67 r = parse_permyriad(s); in parse_tc_percent()
/systemd-251/src/login/
Dlogind-user.c905 r = parse_permyriad(rvalue); in config_parse_tmpfs_size()
Dpam_systemd.c352 r = parse_permyriad(limit); in append_session_memory_max()
/systemd-251/src/shared/
Dbus-unit-util.c448 r = parse_permyriad(eq); in bus_append_cgroup_property()
546 r = parse_permyriad(eq); in bus_append_cgroup_property()
Dcondition.c1075 r = parse_permyriad(value); in condition_test_psi()
Dconf-parser.c1873 DEFINE_CONFIG_PARSE(config_parse_permyriad, parse_permyriad, "Failed to parse permyriad value");
/systemd-251/src/home/
Dhomectl.c1809 (argc > 2 && parse_permyriad(argv[2]) >= 0)) in resize_home()
2969 r = parse_permyriad(optarg); in parse_argv()
/systemd-251/src/core/
Dload-fragment.c3880 r = parse_permyriad(rvalue); in config_parse_memory_limit()
3950 r = parse_permyriad(rvalue); in config_parse_tasks_max()
4110 r = parse_permyriad(rvalue); in config_parse_managed_oom_mem_pressure_limit()