Lines Matching defs:state
62 char **state;
65 STRV_FOREACH(state, states) {
68 k = write_string_stream(*f, *state, true);
71 log_debug_errno(k, "Failed to write '%s' to /sys/power/state: %m",
72 *state);
77 *f = fopen("/sys/power/state", "we");
79 return log_error_errno(errno, "Failed to open /sys/power/state: %m");
99 * we can abort before modifying any state. */
100 f = fopen("/sys/power/state", "we");
102 return log_error_errno(errno, "Failed to open /sys/power/state: %m");