Home
last modified time | relevance | path

Searched refs:parse_nice (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/test/
Dtest-parse-util.c788 TEST(parse_nice) { in TEST() argument
791 assert_se(parse_nice("0", &n) >= 0 && n == 0); in TEST()
792 assert_se(parse_nice("+0", &n) >= 0 && n == 0); in TEST()
793 assert_se(parse_nice("-1", &n) >= 0 && n == -1); in TEST()
794 assert_se(parse_nice("-2", &n) >= 0 && n == -2); in TEST()
795 assert_se(parse_nice("1", &n) >= 0 && n == 1); in TEST()
796 assert_se(parse_nice("2", &n) >= 0 && n == 2); in TEST()
797 assert_se(parse_nice("+1", &n) >= 0 && n == 1); in TEST()
798 assert_se(parse_nice("+2", &n) >= 0 && n == 2); in TEST()
799 assert_se(parse_nice("-20", &n) >= 0 && n == -20); in TEST()
[all …]
/systemd-251/src/basic/
Dparse-util.h128 int parse_nice(const char *p, int *ret);
Dparse-util.c629 int parse_nice(const char *p, int *ret) { in parse_nice() function
/systemd-251/src/run/
Drun.c317 r = parse_nice(optarg, &arg_nice); in parse_argv()
/systemd-251/src/shared/
Dbus-unit-util.c127 DEFINE_BUS_APPEND_PARSE_PTR("i", int32_t, int, parse_nice);
/systemd-251/src/home/
Dhomectl.c2676 r = parse_nice(optarg, &nc); in parse_argv()
/systemd-251/src/core/
Dload-fragment.c693 r = parse_nice(rvalue, &priority); in config_parse_exec_nice()