mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
tree-wide: sort includes
Sort the includes accoding to the new coding style.
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "acl-util.h"
|
||||
#include "alloc-util.h"
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#include "user-util.h"
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "acpi-fpdt.h"
|
||||
#include "alloc-util.h"
|
||||
#include "fd-util.h"
|
||||
#include "fileio.h"
|
||||
#include "time-util.h"
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#include "architecture.h"
|
||||
#include "string-table.h"
|
||||
#include "string-util.h"
|
||||
#include "architecture.h"
|
||||
|
||||
int uname_architecture(void) {
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "boot-timestamps.h"
|
||||
#include "acpi-fpdt.h"
|
||||
#include "boot-timestamps.h"
|
||||
#include "efivars.h"
|
||||
|
||||
int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_timestamp *loader) {
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "clean-ipc.h"
|
||||
#include "dirent-util.h"
|
||||
#include "fd-util.h"
|
||||
#include "fileio.h"
|
||||
#include "formats-util.h"
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#include "util.h"
|
||||
#include "dirent-util.h"
|
||||
|
||||
static int clean_sysvipc_shm(uid_t delete_uid) {
|
||||
_cleanup_fclose_ FILE *f = NULL;
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "dirent-util.h"
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if.h>
|
||||
#include <sys/types.h>
|
||||
#include <linux/netfilter_ipv4/ip_tables.h>
|
||||
#include <linux/netfilter/nf_nat.h>
|
||||
#include <linux/netfilter/xt_addrtype.h>
|
||||
|
||||
@@ -19,18 +19,18 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "util.h"
|
||||
#include "strv.h"
|
||||
#include "path-util.h"
|
||||
#include "install.h"
|
||||
#include "string-util.h"
|
||||
#include "path-lookup.h"
|
||||
#include "path-util.h"
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#include "util.h"
|
||||
|
||||
int user_config_home(char **config_home) {
|
||||
const char *e;
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <limits.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <limits.h>
|
||||
#include <termios.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
#include <seccomp.h>
|
||||
|
||||
#include "seccomp-util.h"
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
#include "seccomp-util.h"
|
||||
|
||||
const char* seccomp_arch_to_string(uint32_t c) {
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
|
||||
#include "log.h"
|
||||
#include "process-util.h"
|
||||
#include "util.h"
|
||||
#include "spawn-ask-password-agent.h"
|
||||
#include "util.h"
|
||||
|
||||
static pid_t agent_pid = 0;
|
||||
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <poll.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "fd-util.h"
|
||||
#include "io-util.h"
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
#include "fileio.h"
|
||||
#include "log.h"
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
#include "sysctl-util.h"
|
||||
#include "util.h"
|
||||
|
||||
char *sysctl_normalize(char *s) {
|
||||
char *n;
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#include "watchdog.h"
|
||||
#include "log.h"
|
||||
#include "fd-util.h"
|
||||
#include "log.h"
|
||||
#include "watchdog.h"
|
||||
|
||||
static int watchdog_fd = -1;
|
||||
static usec_t watchdog_timeout = USEC_INFINITY;
|
||||
|
||||
Reference in New Issue
Block a user