Home
last modified time | relevance | path

Searched refs:parse_emergency_action (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/test/
Dtest-emergency-action.c6 TEST(parse_emergency_action) { in TEST() argument
9 assert_se(parse_emergency_action("none", false, &x) == 0); in TEST()
11 assert_se(parse_emergency_action("reboot", false, &x) == -EOPNOTSUPP); in TEST()
12 assert_se(parse_emergency_action("reboot-force", false, &x) == -EOPNOTSUPP); in TEST()
13 assert_se(parse_emergency_action("reboot-immediate", false, &x) == -EOPNOTSUPP); in TEST()
14 assert_se(parse_emergency_action("poweroff", false, &x) == -EOPNOTSUPP); in TEST()
15 assert_se(parse_emergency_action("poweroff-force", false, &x) == -EOPNOTSUPP); in TEST()
16 assert_se(parse_emergency_action("poweroff-immediate", false, &x) == -EOPNOTSUPP); in TEST()
18 assert_se(parse_emergency_action("exit", false, &x) == 0); in TEST()
20 assert_se(parse_emergency_action("exit-force", false, &x) == 0); in TEST()
[all …]
/systemd-251/src/core/
Demergency-action.h36 int parse_emergency_action(const char *value, bool system, EmergencyAction *ret);
Demergency-action.c155 int parse_emergency_action( in parse_emergency_action() function
Ddbus-unit.c2002 r = parse_emergency_action(s, system, &v); in bus_set_transient_emergency_action()
Dload-fragment.c5641 r = parse_emergency_action(rvalue, MANAGER_IS_SYSTEM(m), x); in config_parse_emergency_action()