summaryrefslogtreecommitdiff
path: root/src/basic/reboot-util.h
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: unify how we define bit mak enumsLennart Poettering2018-06-121-3/+3
| | | | | | Let's always write "1 << 0", "1 << 1" and so on, except where we need more than 31 flag bits, where we write "UINT64(1) << 0", and so on to force 64bit values.
* reboot-util: unify reboot with parameter in a single implementationLennart Poettering2018-02-221-0/+8
| | | | | | | | | So far, we had two implementations of reboot-with-parameter doing pretty much the same. Let's unify that in a generic implementation used by both. This is particulary nice as it unifies all /run/systemd/reboot-param handling in a single .c file.
* basic: split out update_reboot_parameter_and_warn() into its own .c/.h filesLennart Poettering2018-02-221-0/+4
This is primarily preparation for a follow-up commit that adds a common implementation of the other side of the reboot parameter file, i.e. the code that reads the file and issues reboot() for it.