remove unused includes

This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use.
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2015-02-14 09:44:31 +01:00
parent 4aab5d0cbd
commit 2eec67acbb
479 changed files with 11 additions and 1286 deletions

View File

@ -20,7 +20,6 @@
***/
#include <unistd.h>
#include <fcntl.h>
#include <sys/epoll.h>
#include <sys/prctl.h>
#include <sys/socket.h>

View File

@ -20,13 +20,11 @@
***/
#include <stdlib.h>
#include <getopt.h>
#include "manager.h"
#include "bus-util.h"
#include "log.h"
#include "strv.h"
#include "build.h"
#include "pager.h"
#include "analyze-verify.h"

View File

@ -24,17 +24,14 @@
#include <stdlib.h>
#include <getopt.h>
#include <locale.h>
#include <sys/utsname.h>
#include "sd-bus.h"
#include "bus-util.h"
#include "bus-error.h"
#include "install.h"
#include "log.h"
#include "build.h"
#include "util.h"
#include "strxcpyx.h"
#include "fileio.h"
#include "strv.h"
#include "unit-name.h"
#include "special.h"

View File

@ -19,25 +19,13 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/socket.h>
#include <poll.h>
#include <sys/types.h>
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/signalfd.h>
#include <getopt.h>
#include <termios.h>
#include <limits.h>
#include <stddef.h>
#include "log.h"
#include "macro.h"
#include "util.h"
#include "strv.h"
#include "ask-password-api.h"
#include "def.h"

View File

@ -25,11 +25,9 @@
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include <stdarg.h>
#include <getopt.h>
#include "log.h"
#include "hashmap.h"
#include "strv.h"
#include "util.h"
#include "conf-files.h"

View File

@ -41,7 +41,6 @@
#include "efivars.h"
#include "build.h"
#include "util.h"
#include "utf8.h"
static int verify_esp(const char *p, uint32_t *part, uint64_t *pstart, uint64_t *psize, sd_id128_t *uuid) {
struct statfs sfs;

View File

@ -33,10 +33,7 @@
***/
#include <sys/time.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>

View File

@ -24,7 +24,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <dirent.h>
#include <stdbool.h>
#include "list.h"

View File

@ -25,8 +25,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
#include <dirent.h>

View File

@ -23,14 +23,11 @@
***/
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "util.h"

View File

@ -23,13 +23,9 @@
***/
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <poll.h>
#include <sys/prctl.h>
#include <stddef.h>
#include <getopt.h>
@ -37,24 +33,14 @@
#include "log.h"
#include "util.h"
#include "hashmap.h"
#include "socket-util.h"
#include "sd-daemon.h"
#include "sd-bus.h"
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
#include "build.h"
#include "strv.h"
#include "def.h"
#include "capability.h"
#include "bus-control.h"
#include "smack-util.h"
#include "set.h"
#include "bus-xml-policy.h"
#include "driver.h"
#include "proxy.h"
#include "synthesize.h"
static char *arg_address = NULL;
static char **arg_configuration = NULL;

View File

@ -25,7 +25,6 @@
#include "set.h"
#include "conf-files.h"
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-xml-policy.h"
#include "sd-login.h"

View File

@ -21,12 +21,10 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <inttypes.h>
#include <pthread.h>
#include "list.h"
#include "hashmap.h"
#include "set.h"
typedef enum PolicyItemType {
_POLICY_ITEM_TYPE_UNSET = 0,

View File

@ -21,23 +21,16 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stddef.h>
#include "log.h"
#include "util.h"
#include "sd-bus.h"
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
#include "build.h"
#include "strv.h"
#include "def.h"
#include "capability.h"
#include "bus-control.h"
#include "set.h"
#include "driver.h"
#include "synthesize.h"

View File

@ -23,30 +23,20 @@
***/
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <poll.h>
#include <stddef.h>
#include <getopt.h>
#include "log.h"
#include "util.h"
#include "socket-util.h"
#include "sd-daemon.h"
#include "sd-bus.h"
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
#include "build.h"
#include "strv.h"
#include "def.h"
#include "capability.h"
#include "bus-control.h"
#include "smack-util.h"
#include "set.h"
#include "bus-xml-policy.h"
#include "driver.h"

View File

@ -21,10 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdlib.h>
#include "sd-bus.h"
#include "bus-xml-policy.h"
#include "util.h"
typedef struct Proxy Proxy;

View File

@ -21,36 +21,22 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <poll.h>
#include <stddef.h>
#include <getopt.h>
#include "log.h"
#include "util.h"
#include "socket-util.h"
#include "sd-daemon.h"
#include "sd-bus.h"
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
#include "build.h"
#include "strv.h"
#include "def.h"
#include "capability.h"
#include "bus-control.h"
#include "smack-util.h"
#include "set.h"
#include "bus-xml-policy.h"
#include "driver.h"
#include "proxy.h"
#include "synthesize.h"
static char *arg_address = NULL;
static char *arg_command_line_buffer = NULL;

View File

@ -21,21 +21,13 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stddef.h>
#include "log.h"
#include "util.h"
#include "sd-bus.h"
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
#include "strv.h"
#include "def.h"
#include "bus-control.h"
#include "synthesize.h"
static int synthetic_driver_send(sd_bus *b, sd_bus_message *m) {

View File

@ -19,27 +19,14 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <poll.h>
#include <stddef.h>
#include <getopt.h>
#include "log.h"
#include "util.h"
#include "sd-bus.h"
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
#include "build.h"
#include "strv.h"
#include "def.h"
#include "capability.h"
#include "bus-xml-policy.h"
static int test_policy_load(Policy *p, const char *name) {

View File

@ -19,7 +19,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <limits.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>

View File

@ -20,7 +20,6 @@
***/
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include "consoled.h"
#include "grdev.h"

View File

@ -20,15 +20,12 @@
***/
#include <errno.h>
#include <libudev.h>
#include <stdlib.h>
#include <string.h>
#include "consoled.h"
#include "grdev.h"
#include "idev.h"
#include "log.h"
#include "sd-bus.h"
#include "sd-daemon.h"
#include "sd-event.h"
#include "sd-login.h"
#include "sysview.h"

View File

@ -20,16 +20,12 @@
***/
#include <errno.h>
#include <inttypes.h>
#include <libudev.h>
#include <stdlib.h>
#include "consoled.h"
#include "grdev.h"
#include "hashmap.h"
#include "idev.h"
#include "list.h"
#include "macro.h"
#include "sd-bus.h"
#include "sd-event.h"
#include "sysview.h"
#include "util.h"

View File

@ -20,7 +20,6 @@
***/
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include "consoled.h"
#include "list.h"

View File

@ -20,7 +20,6 @@
***/
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include "consoled.h"
#include "grdev.h"

View File

@ -21,11 +21,9 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "consoled.h"
#include "log.h"
#include "sd-daemon.h"
#include "util.h"
int main(int argc, char *argv[]) {
_cleanup_(manager_freep) Manager *m = NULL;

View File

@ -21,10 +21,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <errno.h>
#include <inttypes.h>
#include <libudev.h>
#include <stdlib.h>
#include "grdev.h"
#include "idev.h"
#include "list.h"

View File

@ -32,8 +32,6 @@
#include "unit.h"
#include "automount.h"
#include "mount.h"
#include "load-fragment.h"
#include "load-dropin.h"
#include "unit-name.h"
#include "special.h"
#include "label.h"

View File

@ -24,7 +24,6 @@
typedef struct BusName BusName;
typedef struct BusNamePolicy BusNamePolicy;
#include "unit.h"
typedef enum BusNameState {
BUSNAME_DEAD,

View File

@ -91,7 +91,6 @@ struct CGroupContext {
};
#include "unit.h"
#include "manager.h"
#include "cgroup-util.h"
void cgroup_context_init(CGroupContext *c);

View File

@ -19,9 +19,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "unit.h"
#include "automount.h"
#include "dbus-unit.h"
#include "dbus-automount.h"
#include "bus-util.h"

View File

@ -21,6 +21,5 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "sd-bus.h"
extern const sd_bus_vtable bus_automount_vtable[];

View File

@ -21,7 +21,6 @@
#include "unit.h"
#include "busname.h"
#include "dbus-unit.h"
#include "dbus-busname.h"
#include "bus-util.h"

View File

@ -21,7 +21,5 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_busname_vtable[];

View File

@ -21,7 +21,6 @@
#include "unit.h"
#include "device.h"
#include "dbus-unit.h"
#include "dbus-device.h"
const sd_bus_vtable bus_device_vtable[] = {

View File

@ -21,7 +21,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "sd-bus.h"
#include "unit.h"
extern const sd_bus_vtable bus_device_vtable[];

View File

@ -21,7 +21,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "sd-bus.h"
#include "manager.h"
extern const sd_bus_vtable bus_manager_vtable[];

View File

@ -21,7 +21,6 @@
#include "unit.h"
#include "mount.h"
#include "dbus-unit.h"
#include "dbus-execute.h"
#include "dbus-kill.h"
#include "dbus-cgroup.h"

View File

@ -21,7 +21,6 @@
#include "unit.h"
#include "path.h"
#include "dbus-unit.h"
#include "dbus-path.h"
#include "bus-util.h"

View File

@ -22,6 +22,5 @@
***/
#include "sd-bus.h"
extern const sd_bus_vtable bus_path_vtable[];

View File

@ -23,7 +23,6 @@
#include "path-util.h"
#include "unit.h"
#include "service.h"
#include "dbus-unit.h"
#include "dbus-execute.h"
#include "dbus-kill.h"
#include "dbus-cgroup.h"

View File

@ -21,7 +21,6 @@
#include "unit.h"
#include "slice.h"
#include "dbus-unit.h"
#include "dbus-cgroup.h"
#include "dbus-slice.h"

View File

@ -23,7 +23,6 @@
#include "unit.h"
#include "dbus.h"
#include "snapshot.h"
#include "dbus-unit.h"
#include "dbus-snapshot.h"
int bus_snapshot_method_remove(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) {

View File

@ -21,9 +21,7 @@
#include "unit.h"
#include "socket.h"
#include "dbus-unit.h"
#include "dbus-execute.h"
#include "dbus-kill.h"
#include "dbus-cgroup.h"
#include "dbus-socket.h"
#include "bus-util.h"

View File

@ -22,9 +22,7 @@
#include "unit.h"
#include "swap.h"
#include "dbus-unit.h"
#include "dbus-execute.h"
#include "dbus-kill.h"
#include "dbus-cgroup.h"
#include "dbus-swap.h"
#include "bus-util.h"

View File

@ -20,8 +20,6 @@
***/
#include "unit.h"
#include "target.h"
#include "dbus-unit.h"
#include "dbus-target.h"
const sd_bus_vtable bus_target_vtable[] = {

View File

@ -21,6 +21,5 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "sd-bus.h"
extern const sd_bus_vtable bus_target_vtable[];

View File

@ -21,10 +21,8 @@
#include "unit.h"
#include "timer.h"
#include "dbus-unit.h"
#include "dbus-timer.h"
#include "bus-util.h"
#include "errno-list.h"
#include "strv.h"
static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_result, timer_result, TimerResult);

View File

@ -24,11 +24,8 @@
#include "selinux-access.h"
#include "cgroup-util.h"
#include "strv.h"
#include "path-util.h"
#include "fileio.h"
#include "bus-common-errors.h"
#include "dbus.h"
#include "dbus-manager.h"
#include "dbus-unit.h"
static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_load_state, unit_load_state, UnitLoadState);

View File

@ -20,7 +20,6 @@
***/
#include <sys/epoll.h>
#include <sys/timerfd.h>
#include <errno.h>
#include <unistd.h>

View File

@ -23,11 +23,9 @@
#include <sys/epoll.h>
#include <libudev.h>
#include "strv.h"
#include "log.h"
#include "unit-name.h"
#include "dbus-device.h"
#include "def.h"
#include "path-util.h"
#include "udev-util.h"
#include "unit.h"

View File

@ -23,7 +23,6 @@
typedef struct Device Device;
#include "unit.h"
/* We simply watch devices, we cannot plug/unplug them. That
* simplifies the state engine greatly */

View File

@ -19,8 +19,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
@ -29,14 +27,8 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/prctl.h>
#include <linux/sched.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <grp.h>
#include <pwd.h>
#include <sys/mount.h>
#include <linux/fs.h>
#include <linux/oom.h>
#include <poll.h>
#include <glob.h>
#include <sys/personality.h>
@ -80,12 +72,14 @@
#include "errno-list.h"
#include "af-list.h"
#include "mkdir.h"
#include "apparmor-util.h"
#include "smack-util.h"
#include "bus-endpoint.h"
#include "label.h"
#include "cap-list.h"
#ifdef HAVE_APPARMOR
#include "apparmor-util.h"
#endif
#ifdef HAVE_SECCOMP
#include "seccomp-util.h"
#endif

View File

@ -27,17 +27,12 @@ typedef struct ExecContext ExecContext;
typedef struct ExecRuntime ExecRuntime;
typedef struct ExecParameters ExecParameters;
#include <linux/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/capability.h>
#include <stdbool.h>
#include <stdio.h>
#include <sched.h>
#include "list.h"
#include "util.h"
#include "set.h"
#include "fdset.h"
#include "missing.h"
#include "namespace.h"

View File

@ -22,7 +22,6 @@
#include <sys/reboot.h>
#include <linux/reboot.h>
#include <sys/syscall.h>
#include "bus-util.h"
#include "bus-error.h"

View File

@ -19,10 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include "hostname-setup.h"

View File

@ -22,10 +22,7 @@
***/
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "ima-setup.h"

View File

@ -19,10 +19,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <assert.h>
#include <errno.h>
#include <sys/timerfd.h>
#include <sys/epoll.h>
#include "sd-id128.h"
#include "sd-messages.h"
@ -30,8 +27,6 @@
#include "unit.h"
#include "macro.h"
#include "strv.h"
#include "load-fragment.h"
#include "load-dropin.h"
#include "log.h"
#include "dbus-job.h"
#include "special.h"

View File

@ -22,8 +22,6 @@
***/
#include <stdbool.h>
#include <inttypes.h>
#include <errno.h>
typedef struct Job Job;
typedef struct JobDependency JobDependency;
@ -108,9 +106,7 @@ enum JobResult {
};
#include "sd-event.h"
#include "manager.h"
#include "unit.h"
#include "hashmap.h"
#include "list.h"
struct JobDependency {

View File

@ -19,7 +19,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <string.h>
#include "kill.h"
#include "util.h"

View File

@ -25,7 +25,6 @@
#include <unistd.h>
#include "util.h"
#include "def.h"
#include "killall.h"
#include "set.h"

View File

@ -19,17 +19,14 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/wait.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#ifdef HAVE_KMOD
#include <libkmod.h>
#endif
#include "macro.h"
#include "execute.h"
#include "capability.h"
#include "kmod-setup.h"

View File

@ -19,8 +19,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <dirent.h>
#include <errno.h>
#include "unit.h"
#include "load-dropin.h"
@ -29,7 +27,6 @@
#include "unit-name.h"
#include "conf-parser.h"
#include "load-fragment.h"
#include "conf-files.h"
static int add_dependency_consumer(
UnitDependency dependency,

View File

@ -21,26 +21,18 @@
***/
#include <linux/oom.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sched.h>
#include <sys/prctl.h>
#include <sys/mount.h>
#include <linux/fs.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <grp.h>
#ifdef HAVE_SECCOMP
#include <seccomp.h>
#endif
#include "sd-messages.h"
#include "unit.h"
#include "strv.h"
#include "conf-parser.h"

View File

@ -19,13 +19,11 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include "locale-setup.h"
#include "util.h"
#include "macro.h"
#include "virt.h"
#include "fileio.h"
#include "strv.h"

View File

@ -19,18 +19,10 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/socket.h>
#include <net/if.h>
#include <asm/types.h>
#include <netinet/in.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "sd-rtnl.h"
#include "util.h"
#include "macro.h"
#include "socket-util.h"
#include "rtnl-util.h"
#include "missing.h"
#include "loopback-setup.h"

View File

@ -23,7 +23,6 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/mount.h>

View File

@ -23,11 +23,9 @@
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <getopt.h>
#include <signal.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <sys/prctl.h>
#include <sys/mount.h>
@ -40,14 +38,12 @@
#endif
#include "sd-daemon.h"
#include "sd-messages.h"
#include "sd-bus.h"
#include "log.h"
#include "fdset.h"
#include "special.h"
#include "conf-parser.h"
#include "missing.h"
#include "label.h"
#include "pager.h"
#include "build.h"
#include "strv.h"
@ -55,7 +51,6 @@
#include "virt.h"
#include "architecture.h"
#include "watchdog.h"
#include "path-util.h"
#include "switch-root.h"
#include "capability.h"
#include "killall.h"

View File

@ -19,7 +19,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
@ -27,14 +26,10 @@
#include <unistd.h>
#include <sys/inotify.h>
#include <sys/epoll.h>
#include <poll.h>
#include <sys/reboot.h>
#include <sys/ioctl.h>
#include <linux/kd.h>
#include <termios.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <sys/timerfd.h>
@ -43,7 +38,6 @@
#endif
#include "sd-daemon.h"
#include "sd-id128.h"
#include "sd-messages.h"
#include "manager.h"
@ -56,7 +50,6 @@
#include "mkdir.h"
#include "ratelimit.h"
#include "locale-setup.h"
#include "mount-setup.h"
#include "unit-name.h"
#include "missing.h"
#include "path-lookup.h"
@ -64,7 +57,6 @@
#include "exit-status.h"
#include "virt.h"
#include "watchdog.h"
#include "cgroup-util.h"
#include "path-util.h"
#include "audit-fd.h"
#include "boot-timestamps.h"

View File

@ -22,7 +22,6 @@
***/
#include <stdbool.h>
#include <inttypes.h>
#include <stdio.h>
#include "sd-bus.h"
@ -31,7 +30,6 @@
#include "cgroup-util.h"
#include "hashmap.h"
#include "list.h"
#include "set.h"
#include "ratelimit.h"
/* Enforce upper limit how many names we allow */
@ -70,14 +68,11 @@ typedef enum StatusType {
STATUS_TYPE_EMERGENCY,
} StatusType;
#include "unit.h"
#include "job.h"
#include "path-lookup.h"
#include "execute.h"
#include "unit-name.h"
#include "exit-status.h"
#include "show-status.h"
#include "failure-action.h"
struct Manager {
/* Note that the set of units we know of is allowed to be

View File

@ -21,10 +21,7 @@
#include <sys/mount.h>
#include <errno.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include <ftw.h>
@ -42,7 +39,6 @@
#include "virt.h"
#include "efivars.h"
#include "smack-util.h"
#include "def.h"
#include "cgroup-util.h"
typedef enum MountMode {

View File

@ -21,7 +21,6 @@
#include <errno.h>
#include <stdio.h>
#include <mntent.h>
#include <sys/epoll.h>
#include <signal.h>
#include <libmount.h>
@ -30,8 +29,6 @@
#include "manager.h"
#include "unit.h"
#include "mount.h"
#include "load-fragment.h"
#include "load-dropin.h"
#include "log.h"
#include "sd-messages.h"
#include "strv.h"
@ -41,9 +38,7 @@
#include "unit-name.h"
#include "dbus-mount.h"
#include "special.h"
#include "bus-common-errors.h"
#include "exit-status.h"
#include "def.h"
#include "fstab-util.h"
#define RETRY_UMOUNT_MAX 32

View File

@ -23,10 +23,8 @@
typedef struct Mount Mount;
#include "unit.h"
#include "kill.h"
#include "execute.h"
#include "cgroup.h"
typedef enum MountState {
MOUNT_DEAD,

View File

@ -25,23 +25,15 @@
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sched.h>
#include <sys/syscall.h>
#include <limits.h>
#include <linux/fs.h>
#include <sys/file.h>
#include "strv.h"
#include "util.h"
#include "path-util.h"
#include "missing.h"
#include "execute.h"
#include "loopback-setup.h"
#include "mkdir.h"
#include "dev-setup.h"
#include "def.h"
#include "label.h"
#include "selinux-util.h"
#include "namespace.h"

View File

@ -21,7 +21,6 @@
#include <sys/inotify.h>
#include <sys/epoll.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <unistd.h>
@ -31,7 +30,6 @@
#include "mkdir.h"
#include "dbus-path.h"
#include "special.h"
#include "path-util.h"
#include "macro.h"
#include "bus-util.h"
#include "bus-error.h"

View File

@ -25,7 +25,6 @@ typedef struct Path Path;
typedef struct PathSpec PathSpec;
#include "unit.h"
#include "mount.h"
typedef enum PathState {
PATH_DEAD,

View File

@ -20,12 +20,10 @@
***/
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include "unit.h"
#include "scope.h"
#include "load-fragment.h"
#include "log.h"
#include "dbus-scope.h"
#include "special.h"

View File

@ -23,7 +23,6 @@
typedef struct Scope Scope;
#include "unit.h"
#include "kill.h"
typedef enum ScopeState {

View File

@ -24,12 +24,9 @@
#ifdef HAVE_SELINUX
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <selinux/selinux.h>
#include <selinux/avc.h>
#include <sys/socket.h>
#ifdef HAVE_AUDIT
#include <libaudit.h>
#endif
@ -38,7 +35,6 @@
#include "bus-util.h"
#include "util.h"
#include "log.h"
#include "audit.h"
#include "selinux-util.h"
#include "audit-fd.h"
#include "strv.h"

View File

@ -22,7 +22,6 @@
***/
#include "sd-bus.h"
#include "bus-error.h"
#include "bus-util.h"
#include "manager.h"

View File

@ -22,8 +22,6 @@
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_SELINUX
#include <selinux/selinux.h>
@ -31,8 +29,6 @@
#include "selinux-setup.h"
#include "selinux-util.h"
#include "label.h"
#include "mount-setup.h"
#include "macro.h"
#include "util.h"
#include "log.h"

View File

@ -21,7 +21,6 @@
#include <errno.h>
#include <signal.h>
#include <dirent.h>
#include <unistd.h>
#include "async.h"

View File

@ -24,12 +24,10 @@
typedef struct Service Service;
typedef struct ServiceFDStore ServiceFDStore;
#include "unit.h"
#include "path.h"
#include "ratelimit.h"
#include "kill.h"
#include "exit-status.h"
#include "failure-action.h"
typedef enum ServiceState {
SERVICE_DEAD,

View File

@ -20,21 +20,15 @@
***/
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/reboot.h>
#include <linux/reboot.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <sys/syscall.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "missing.h"
@ -42,14 +36,12 @@
#include "fileio.h"
#include "umount.h"
#include "util.h"
#include "mkdir.h"
#include "virt.h"
#include "watchdog.h"
#include "killall.h"
#include "cgroup-util.h"
#include "def.h"
#include "switch-root.h"
#include "strv.h"
#define FINALIZE_ATTEMPTS 50

View File

@ -20,12 +20,9 @@
***/
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include "unit.h"
#include "slice.h"
#include "load-fragment.h"
#include "log.h"
#include "dbus-slice.h"
#include "special.h"

View File

@ -23,7 +23,6 @@
typedef struct Slice Slice;
#include "unit.h"
typedef enum SliceState {
SLICE_DEAD,

View File

@ -24,21 +24,15 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/vfs.h>
#include <fcntl.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/mount.h>
#include <stdint.h>
#include "macro.h"
#include "smack-setup.h"
#include "util.h"
#include "fileio.h"
#include "log.h"
#include "label.h"
#define SMACK_CONFIG "/etc/smack/accesses.d/"
#define CIPSO_CONFIG "/etc/smack/cipso.d/"

View File

@ -23,7 +23,6 @@
typedef struct Snapshot Snapshot;
#include "unit.h"
typedef enum SnapshotState {
SNAPSHOT_DEAD,

View File

@ -19,7 +19,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
@ -29,12 +28,9 @@
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <mqueue.h>
#include <sys/xattr.h>
#include "sd-event.h"
#include "log.h"
#include "load-dropin.h"
#include "load-fragment.h"
#include "strv.h"
#include "mkdir.h"
#include "path-util.h"

View File

@ -23,8 +23,6 @@
typedef struct Socket Socket;
#include "manager.h"
#include "unit.h"
#include "socket-util.h"
#include "mount.h"
#include "service.h"

View File

@ -20,24 +20,17 @@
***/
#include <errno.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/epoll.h>
#include <sys/stat.h>
#include <sys/swap.h>
#include <libudev.h>
#include "unit.h"
#include "swap.h"
#include "load-fragment.h"
#include "load-dropin.h"
#include "unit-name.h"
#include "dbus-swap.h"
#include "special.h"
#include "bus-common-errors.h"
#include "exit-status.h"
#include "def.h"
#include "path-util.h"
#include "virt.h"
#include "udev-util.h"

View File

@ -26,7 +26,6 @@
typedef struct Swap Swap;
#include "unit.h"
typedef enum SwapState {
SWAP_DEAD,

View File

@ -19,13 +19,9 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include "unit.h"
#include "target.h"
#include "load-fragment.h"
#include "log.h"
#include "dbus-target.h"
#include "special.h"

View File

@ -23,7 +23,6 @@
typedef struct Target Target;
#include "unit.h"
typedef enum TargetState {
TARGET_DEAD,

View File

@ -28,7 +28,6 @@
#include "special.h"
#include "bus-util.h"
#include "bus-error.h"
#include "mkdir.h"
static const UnitActiveState state_translation_table[_TIMER_STATE_MAX] = {
[TIMER_DEAD] = UNIT_INACTIVE,

View File

@ -23,7 +23,6 @@
typedef struct Timer Timer;
#include "unit.h"
#include "calendarspec.h"
typedef enum TimerState {

View File

@ -23,7 +23,6 @@
#include <fcntl.h>
#include "bus-common-errors.h"
#include "bus-util.h"
#include "bus-error.h"
#include "transaction.h"

View File

@ -24,7 +24,6 @@
#include <string.h>
#include <sys/mount.h>
#include <sys/swap.h>
#include <unistd.h>
#include <linux/loop.h>
#include <linux/dm-ioctl.h>

View File

@ -19,16 +19,13 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "sd-id128.h"
#include "unit.h"
#include "specifier.h"
#include "path-util.h"
#include "strv.h"
#include "unit-name.h"
#include "unit-printf.h"
#include "macro.h"
#include "cgroup-util.h"
#include "special.h"
static int specifier_prefix_and_instance(char specifier, void *data, void *userdata, char **ret) {
Unit *u = userdata;

View File

@ -19,12 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <sys/epoll.h>
#include <sys/timerfd.h>
#include <poll.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
@ -45,12 +41,10 @@
#include "cgroup-util.h"
#include "missing.h"
#include "mkdir.h"
#include "label.h"
#include "fileio-label.h"
#include "bus-common-errors.h"
#include "dbus.h"
#include "execute.h"
#include "virt.h"
#include "dropin.h"
const UnitVTable * const unit_vtable[_UNIT_TYPE_MAX] = {

Some files were not shown because too many files have changed in this diff Show More