I have been trying to run https://github.com/include-what-you-use/include-what-you-use on the systemd repository to hopefully get a handle on the rampant numbers of includes we have in every file with no idea if any of the symbols coming from that file are used or not. While I haven't got it fully working yet, these changes still make sense IMO and can be merged already. Except the last commit, all other changes are about removing circular dependencies between headers which trips up include-what-you-use. Regardless of the tool, circular dependencies between headers are a code smell and I think we should get rid of them regardless of whether we end up using the tool or not.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS
