]> git.ipfire.org Git - thirdparty/systemd.git/commit
sleep-config: minor cleanup for can_sleep_{state,disk}
authorMike Yuan <me@yhndnzj.com>
Wed, 27 Sep 2023 22:43:06 +0000 (06:43 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 20 Oct 2023 15:22:28 +0000 (23:22 +0800)
commit23577f44623c108e4958d435cf95cf93199503ba
tree5456a3fd633b13b220ab8ddbc4d0f8bf0984a107
parentd12babb5746fdb20bcf3d6370041fef295b1373b
sleep-config: minor cleanup for can_sleep_{state,disk}

* Rename to sleep_{state,mode}_supported
* Treat unreadable/unwriable sysfs files as error
src/shared/sleep-config.c
src/shared/sleep-config.h
src/test/test-sleep-config.c