mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
tree-wide: sort includes
Sort the includes accoding to the new coding style.
This commit is contained in:
@@ -19,16 +19,16 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "af-list.h"
|
||||
#include "util.h"
|
||||
|
||||
static const struct af_name* lookup_af(register const char *str, register unsigned int len);
|
||||
|
||||
#include "af-to-name.h"
|
||||
#include "af-from-name.h"
|
||||
#include "af-to-name.h"
|
||||
|
||||
const char *af_to_name(int id) {
|
||||
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
#include <net/if_arp.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "arphrd-list.h"
|
||||
#include "util.h"
|
||||
|
||||
static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
|
||||
|
||||
#include "arphrd-to-name.h"
|
||||
#include "arphrd-from-name.h"
|
||||
#include "arphrd-to-name.h"
|
||||
|
||||
const char *arphrd_to_name(int id) {
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "string-util.h"
|
||||
#include "calendarspec.h"
|
||||
#include "fileio.h"
|
||||
#include "string-util.h"
|
||||
|
||||
#define BITS_WEEKDAYS 127
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
|
||||
static const struct capability_name* lookup_capability(register const char *str, register unsigned int len);
|
||||
|
||||
#include "cap-to-name.h"
|
||||
#include "cap-from-name.h"
|
||||
#include "cap-to-name.h"
|
||||
|
||||
const char *capability_to_name(int id) {
|
||||
|
||||
|
||||
@@ -21,14 +21,14 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "errno-list.h"
|
||||
#include "util.h"
|
||||
|
||||
static const struct errno_name* lookup_errno(register const char *str,
|
||||
register unsigned int len);
|
||||
|
||||
#include "errno-to-name.h"
|
||||
#include "errno-from-name.h"
|
||||
#include "errno-to-name.h"
|
||||
|
||||
const char *errno_to_name(int id) {
|
||||
|
||||
|
||||
@@ -19,12 +19,12 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "exit-status.h"
|
||||
#include "set.h"
|
||||
#include "macro.h"
|
||||
#include "set.h"
|
||||
|
||||
const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) {
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <errno.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "sd-daemon.h"
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "util.h"
|
||||
#include "selinux-util.h"
|
||||
#include "fileio-label.h"
|
||||
#include "selinux-util.h"
|
||||
#include "util.h"
|
||||
|
||||
int write_string_file_atomic_label(const char *fn, const char *line) {
|
||||
int r;
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "hexdecoct.h"
|
||||
#include "json.h"
|
||||
#include "macro.h"
|
||||
#include "hexdecoct.h"
|
||||
#include "string-util.h"
|
||||
#include "utf8.h"
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "label.h"
|
||||
#include "selinux-util.h"
|
||||
#include "smack-util.h"
|
||||
#include "util.h"
|
||||
#include "label.h"
|
||||
|
||||
int label_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
|
||||
int r, q;
|
||||
|
||||
@@ -19,12 +19,12 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
***/
|
||||
|
||||
#include "def.h"
|
||||
#include "string-util.h"
|
||||
#include "login-util.h"
|
||||
#include "string-util.h"
|
||||
|
||||
bool session_id_valid(const char *id) {
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "mempool.h"
|
||||
#include "macro.h"
|
||||
#include "mempool.h"
|
||||
#include "util.h"
|
||||
|
||||
struct pool {
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "label.h"
|
||||
#include "mkdir.h"
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "fs-util.h"
|
||||
#include "mkdir.h"
|
||||
|
||||
@@ -24,15 +24,15 @@
|
||||
#include <sys/un.h>
|
||||
|
||||
#ifdef HAVE_SELINUX
|
||||
#include <selinux/selinux.h>
|
||||
#include <selinux/label.h>
|
||||
#include <selinux/context.h>
|
||||
#include <selinux/label.h>
|
||||
#include <selinux/selinux.h>
|
||||
#endif
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "strv.h"
|
||||
#include "path-util.h"
|
||||
#include "selinux-util.h"
|
||||
#include "strv.h"
|
||||
|
||||
#ifdef HAVE_SELINUX
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(security_context_t, freecon);
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "macro.h"
|
||||
#include "util.h"
|
||||
#include "sigbus.h"
|
||||
#include "util.h"
|
||||
|
||||
#define SIGBUS_QUEUE_MAX 64
|
||||
|
||||
|
||||
@@ -17,9 +17,8 @@
|
||||
coding style)
|
||||
*/
|
||||
|
||||
#include "sparse-endian.h"
|
||||
|
||||
#include "siphash24.h"
|
||||
#include "sparse-endian.h"
|
||||
#include "unaligned.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
#include "alloc-util.h"
|
||||
#include "escape.h"
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
#include "strv.h"
|
||||
#include "util.h"
|
||||
|
||||
char *strv_find(char **l, const char *name) {
|
||||
char **i;
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "strxcpyx.h"
|
||||
|
||||
size_t strpcpy(char **dest, size_t size, const char *src) {
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "fd-util.h"
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "hexdecoct.h"
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
#include "build.h"
|
||||
#include "def.h"
|
||||
#include "device-nodes.h"
|
||||
#include "dirent-util.h"
|
||||
#include "env-util.h"
|
||||
#include "escape.h"
|
||||
#include "exit-status.h"
|
||||
@@ -81,19 +82,20 @@
|
||||
#include "formats-util.h"
|
||||
#include "gunicode.h"
|
||||
#include "hashmap.h"
|
||||
#include "hexdecoct.h"
|
||||
#include "hostname-util.h"
|
||||
#include "ioprio.h"
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#include "missing.h"
|
||||
#include "mkdir.h"
|
||||
#include "hexdecoct.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
#include "random-util.h"
|
||||
#include "signal-util.h"
|
||||
#include "sparse-endian.h"
|
||||
#include "stat-util.h"
|
||||
#include "string-table.h"
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
@@ -102,8 +104,6 @@
|
||||
#include "utf8.h"
|
||||
#include "util.h"
|
||||
#include "virt.h"
|
||||
#include "dirent-util.h"
|
||||
#include "stat-util.h"
|
||||
|
||||
/* Put this test here for a lack of better place */
|
||||
assert_cc(EAGAIN == EWOULDBLOCK);
|
||||
|
||||
Reference in New Issue
Block a user