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 <unistd.h>
#include <fcntl.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#include <sys/prctl.h> #include <sys/prctl.h>
#include <sys/socket.h> #include <sys/socket.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -21,36 +21,22 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>. 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 <unistd.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <poll.h>
#include <stddef.h> #include <stddef.h>
#include <getopt.h> #include <getopt.h>
#include "log.h" #include "log.h"
#include "util.h" #include "util.h"
#include "socket-util.h"
#include "sd-daemon.h" #include "sd-daemon.h"
#include "sd-bus.h" #include "sd-bus.h"
#include "bus-internal.h" #include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h" #include "bus-util.h"
#include "build.h" #include "build.h"
#include "strv.h" #include "strv.h"
#include "def.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 "proxy.h"
#include "synthesize.h"
static char *arg_address = NULL; static char *arg_address = NULL;
static char *arg_command_line_buffer = 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/>. 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 <stddef.h>
#include "log.h"
#include "util.h" #include "util.h"
#include "sd-bus.h" #include "sd-bus.h"
#include "bus-internal.h" #include "bus-internal.h"
#include "bus-message.h" #include "bus-message.h"
#include "bus-util.h" #include "bus-util.h"
#include "strv.h"
#include "def.h"
#include "bus-control.h"
#include "synthesize.h" #include "synthesize.h"
static int synthetic_driver_send(sd_bus *b, sd_bus_message *m) { 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/>. 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 <unistd.h>
#include <string.h>
#include <errno.h> #include <errno.h>
#include <poll.h>
#include <stddef.h> #include <stddef.h>
#include <getopt.h>
#include "log.h" #include "log.h"
#include "util.h" #include "util.h"
#include "sd-bus.h" #include "sd-bus.h"
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
#include "build.h"
#include "strv.h" #include "strv.h"
#include "def.h"
#include "capability.h"
#include "bus-xml-policy.h" #include "bus-xml-policy.h"
static int test_policy_load(Policy *p, const char *name) { 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/>. along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/ ***/
#include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -21,10 +21,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>. 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 "grdev.h"
#include "idev.h" #include "idev.h"
#include "list.h" #include "list.h"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -21,7 +21,5 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>. 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[]; extern const sd_bus_vtable bus_busname_vtable[];

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -23,7 +23,6 @@
#include "unit.h" #include "unit.h"
#include "dbus.h" #include "dbus.h"
#include "snapshot.h" #include "snapshot.h"
#include "dbus-unit.h"
#include "dbus-snapshot.h" #include "dbus-snapshot.h"
int bus_snapshot_method_remove(sd_bus *bus, sd_bus_message *message, void *userdata, sd_bus_error *error) { 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 "unit.h"
#include "socket.h" #include "socket.h"
#include "dbus-unit.h"
#include "dbus-execute.h" #include "dbus-execute.h"
#include "dbus-kill.h"
#include "dbus-cgroup.h" #include "dbus-cgroup.h"
#include "dbus-socket.h" #include "dbus-socket.h"
#include "bus-util.h" #include "bus-util.h"

View file

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

View file

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

View file

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

View file

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

View file

@ -24,11 +24,8 @@
#include "selinux-access.h" #include "selinux-access.h"
#include "cgroup-util.h" #include "cgroup-util.h"
#include "strv.h" #include "strv.h"
#include "path-util.h"
#include "fileio.h"
#include "bus-common-errors.h" #include "bus-common-errors.h"
#include "dbus.h" #include "dbus.h"
#include "dbus-manager.h"
#include "dbus-unit.h" #include "dbus-unit.h"
static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_load_state, unit_load_state, UnitLoadState); 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/epoll.h>
#include <sys/timerfd.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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