tree-wide: Sort includes
This was done by running a locally built clang-format with https://github.com/llvm/llvm-project/pull/137617 and https://github.com/llvm/llvm-project/pull/137840 applied on all .c and .h files.
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-add-dependency.h"
|
||||
#include "systemctl-daemon-reload.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
int verb_add_dependency(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_strv_free_ char **names = NULL;
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "parse-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-cancel-job.h"
|
||||
#include "systemctl-trivial-method.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
int verb_cancel(int argc, char *argv[], void *userdata) {
|
||||
sd_bus *bus;
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "bus-wait-for-units.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-clean-or-freeze.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
int verb_clean_or_freeze(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_(bus_wait_for_units_freep) BusWaitForUnits *w = NULL;
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
#include "pretty-print.h"
|
||||
#include "process-util.h"
|
||||
#include "reboot-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-compat-halt.h"
|
||||
#include "systemctl-compat-telinit.h"
|
||||
#include "systemctl-logind.h"
|
||||
#include "systemctl-start-unit.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
#include "utmp-wtmp.h"
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "pretty-print.h"
|
||||
#include "systemctl-compat-runlevel.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-compat-runlevel.h"
|
||||
#include "terminal-util.h"
|
||||
#include "utmp-wtmp.h"
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
#include "alloc-util.h"
|
||||
#include "pretty-print.h"
|
||||
#include "reboot-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-compat-shutdown.h"
|
||||
#include "systemctl-logind.h"
|
||||
#include "systemctl-sysv-compat.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
static int shutdown_help(void) {
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
#include "alloc-util.h"
|
||||
#include "pretty-print.h"
|
||||
#include "rlimit-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-compat-telinit.h"
|
||||
#include "systemctl-daemon-reload.h"
|
||||
#include "systemctl-start-unit.h"
|
||||
#include "systemctl-sysv-compat.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
static int telinit_help(void) {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-daemon-reload.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
int daemon_reload(enum action action, bool graceful) {
|
||||
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
#include "path-util.h"
|
||||
#include "pretty-print.h"
|
||||
#include "selinux-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-daemon-reload.h"
|
||||
#include "systemctl-edit.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
int verb_cat(int argc, char *argv[], void *userdata) {
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "path-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-daemon-reload.h"
|
||||
#include "systemctl-enable.h"
|
||||
#include "systemctl-start-unit.h"
|
||||
#include "systemctl-sysv-compat.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "verbs.h"
|
||||
|
||||
static int normalize_link_paths(char **paths) {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
#include "bus-locator.h"
|
||||
#include "pretty-print.h"
|
||||
#include "syslog-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-is-active.h"
|
||||
#include "systemctl-sysv-compat.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
static int check_unit_generic(int code, const UnitActiveState good_states[], size_t nb_states, char **args) {
|
||||
_cleanup_strv_free_ char **names = NULL;
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-is-enabled.h"
|
||||
#include "systemctl-sysv-compat.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
static int show_installation_targets_client_side(const char *name) {
|
||||
InstallChange *changes = NULL;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include "sd-event.h"
|
||||
#include "sd-daemon.h"
|
||||
#include "sd-event.h"
|
||||
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl-is-system-running.h"
|
||||
#include "virt.h"
|
||||
#include "systemctl.h"
|
||||
#include "bus-util.h"
|
||||
#include "bus-locator.h"
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "bus-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-is-system-running.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "virt.h"
|
||||
|
||||
static int match_startup_finished(sd_bus_message *m, void *userdata, sd_bus_error *error) {
|
||||
char **state = ASSERT_PTR(userdata);
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "bus-wait-for-units.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-kill.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
int verb_kill(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_(bus_wait_for_units_freep) BusWaitForUnits *w = NULL;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#include "locale-util.h"
|
||||
#include "sort-util.h"
|
||||
#include "special.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-list-dependencies.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
static int list_dependencies_print(const char *name, UnitActiveState state, int level, unsigned branches, bool last) {
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "locale-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-list-jobs.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
static int output_waiting_jobs(sd_bus *bus, Table *table, uint32_t id, const char *method, const char *prefix) {
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
#include "locale-util.h"
|
||||
#include "memory-util.h"
|
||||
#include "sort-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-list-machines.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
const struct bus_properties_map machine_info_property_map[] = {
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "sort-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-list-unit-files.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
static int compare_unit_file_list(const UnitFileList *a, const UnitFileList *b) {
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
#include "path-util.h"
|
||||
#include "set.h"
|
||||
#include "sort-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-list-units.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
static int get_unit_list_recursive(
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#include "bus-locator.h"
|
||||
#include "pretty-print.h"
|
||||
#include "syslog-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-log-setting.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "verb-log-control.h"
|
||||
|
||||
static void give_log_control1_hint(const char *name) {
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
#include "login-util.h"
|
||||
#include "mountpoint-util.h"
|
||||
#include "process-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-logind.h"
|
||||
#include "systemctl-start-unit.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
#include "user-util.h"
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "dissect-image.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-mount.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
int verb_bind(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-daemon-reload.h"
|
||||
#include "systemctl-preset-all.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "verbs.h"
|
||||
|
||||
int verb_preset_all(int argc, char *argv[], void *userdata) {
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-reset-failed.h"
|
||||
#include "systemctl-trivial-method.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
int verb_reset_failed(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_strv_free_ char **names = NULL;
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "parse-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-service-watchdogs.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
int verb_service_watchdogs(int argc, char *argv[], void *userdata) {
|
||||
sd_bus *bus;
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "proc-cmdline.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-daemon-reload.h"
|
||||
#include "systemctl-set-default.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
static int parse_proc_cmdline_item(const char *key, const char *value, void *data) {
|
||||
char **ret = data;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#include "bus-locator.h"
|
||||
#include "env-util.h"
|
||||
#include "escape.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-set-environment.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
static int json_transform_message(sd_bus_message *m, sd_json_variant **ret) {
|
||||
_cleanup_(sd_json_variant_unrefp) sd_json_variant *v = NULL;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-set-property.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
static int set_property_one(sd_bus *bus, const char *name, char **properties) {
|
||||
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#include "fd-util.h"
|
||||
#include "format-util.h"
|
||||
#include "hexdecoct.h"
|
||||
#include "hostname-util.h"
|
||||
#include "hostname-setup.h"
|
||||
#include "hostname-util.h"
|
||||
#include "in-addr-util.h"
|
||||
#include "ip-protocol-list.h"
|
||||
#include "journal-file.h"
|
||||
@@ -34,12 +34,12 @@
|
||||
#include "sort-util.h"
|
||||
#include "special.h"
|
||||
#include "string-table.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-list-machines.h"
|
||||
#include "systemctl-list-units.h"
|
||||
#include "systemctl-show.h"
|
||||
#include "systemctl-sysv-compat.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
#include "utf8.h"
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
#include "reboot-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-logind.h"
|
||||
#include "systemctl-start-special.h"
|
||||
#include "systemctl-start-unit.h"
|
||||
#include "systemctl-trivial-method.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
static int load_kexec_kernel(void) {
|
||||
_cleanup_(boot_config_free) BootConfig config = BOOT_CONFIG_NULL;
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
#include "macro.h"
|
||||
#include "special.h"
|
||||
#include "string-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-start-unit.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
|
||||
static const struct {
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
#include "strv.h"
|
||||
#include "systemctl-sysv-compat.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-sysv-compat.h"
|
||||
|
||||
int talk_initctl(char rl) {
|
||||
#if HAVE_SYSV_COMPAT
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
#include "bus-error.h"
|
||||
#include "bus-locator.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-trivial-method.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
|
||||
/* A generic implementation for cases we just need to invoke a simple method call on the Manager object. */
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
#include "reboot-util.h"
|
||||
#include "set.h"
|
||||
#include "stat-util.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "terminal-util.h"
|
||||
#include "verbs.h"
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "signal-util.h"
|
||||
#include "stat-util.h"
|
||||
#include "string-table.h"
|
||||
#include "systemctl.h"
|
||||
#include "systemctl-add-dependency.h"
|
||||
#include "systemctl-cancel-job.h"
|
||||
#include "systemctl-clean-or-freeze.h"
|
||||
@@ -61,7 +62,6 @@
|
||||
#include "systemctl-trivial-method.h"
|
||||
#include "systemctl-util.h"
|
||||
#include "systemctl-whoami.h"
|
||||
#include "systemctl.h"
|
||||
#include "terminal-util.h"
|
||||
#include "time-util.h"
|
||||
#include "user-util.h"
|
||||
|
||||
Reference in New Issue
Block a user