Searched refs:parse_emergency_action (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/test/ |
D | test-emergency-action.c | 6 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/ |
D | emergency-action.h | 36 int parse_emergency_action(const char *value, bool system, EmergencyAction *ret);
|
D | emergency-action.c | 155 int parse_emergency_action( in parse_emergency_action() function
|
D | dbus-unit.c | 2002 r = parse_emergency_action(s, system, &v); in bus_set_transient_emergency_action()
|
D | load-fragment.c | 5641 r = parse_emergency_action(rvalue, MANAGER_IS_SYSTEM(m), x); in config_parse_emergency_action()
|