mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
committed by
Yu Watanabe
parent
9b6bb9a43c
commit
f989d2853f
@@ -2,7 +2,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "libudev.h"
|
||||
#include "sd-device.h"
|
||||
|
||||
#include "forward.h"
|
||||
|
||||
struct udev_device;
|
||||
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <ctype.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <linux/sockios.h>
|
||||
#include <net/if.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libudev.h"
|
||||
#include "sd-device.h"
|
||||
|
||||
@@ -25,8 +9,6 @@
|
||||
#include "errno-util.h"
|
||||
#include "libudev-device-internal.h"
|
||||
#include "libudev-list-internal.h"
|
||||
#include "parse-util.h"
|
||||
#include "time-util.h"
|
||||
|
||||
/**
|
||||
* SECTION:libudev-device
|
||||
|
||||
@@ -1,21 +1,10 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fnmatch.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "libudev.h"
|
||||
#include "sd-device.h"
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "device-enumerator-private.h"
|
||||
#include "device-util.h"
|
||||
#include "errno-util.h"
|
||||
#include "libudev-device-internal.h"
|
||||
#include "libudev-list-internal.h"
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "sd-hwdb.h"
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "assert-util.h"
|
||||
#include "errno-util.h"
|
||||
#include "hwdb-util.h"
|
||||
#include "libudev-list-internal.h"
|
||||
#include "log.h"
|
||||
|
||||
/**
|
||||
* SECTION:libudev-hwdb
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "libudev.h"
|
||||
|
||||
#include "memory-util.h"
|
||||
#include "forward.h"
|
||||
|
||||
struct udev_list;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "hashmap.h"
|
||||
#include "libudev-list-internal.h"
|
||||
#include "list.h"
|
||||
#include "string-util.h"
|
||||
|
||||
/**
|
||||
* SECTION:libudev-list
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <errno.h>
|
||||
#include <poll.h>
|
||||
|
||||
#include "libudev.h"
|
||||
#include "sd-device.h"
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "device-monitor-private.h"
|
||||
#include "device-private.h"
|
||||
#include "device-util.h"
|
||||
#include "errno-util.h"
|
||||
#include "io-util.h"
|
||||
#include "libudev-device-internal.h"
|
||||
#include "string-util.h"
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
Copyright © 2009 Alan Jenkins <alan-jenkins@tuffmail.co.uk>
|
||||
***/
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/inotify.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include "libudev.h"
|
||||
|
||||
#include "forward.h"
|
||||
#include "device-nodes.h"
|
||||
#include "libudev-util.h"
|
||||
|
||||
/**
|
||||
* SECTION:libudev-util
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
|
||||
#include "libudev.h"
|
||||
|
||||
#include "macro.h"
|
||||
#include "memory-util.h"
|
||||
#include "forward.h"
|
||||
|
||||
/* Cleanup functions */
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref);
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "libudev.h"
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "errno-util.h"
|
||||
#include "fd-util.h"
|
||||
#include "log.h"
|
||||
#include "string-util.h"
|
||||
|
||||
/**
|
||||
* SECTION:libudev
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "devnum-util.h"
|
||||
#include "fd-util.h"
|
||||
#include "libudev-list-internal.h"
|
||||
#include "libudev-util.h"
|
||||
#include "log.h"
|
||||
#include "main-func.h"
|
||||
#include "stdio-util.h"
|
||||
#include "libudev-util.h"
|
||||
#include "string-util.h"
|
||||
#include "tests.h"
|
||||
#include "version.h"
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "libudev.h"
|
||||
|
||||
@@ -11,7 +9,7 @@
|
||||
|
||||
#define handle_error_errno(error, msg) \
|
||||
({ \
|
||||
errno = abs(error); \
|
||||
errno = ABS(error); \
|
||||
perror(msg); \
|
||||
EXIT_FAILURE; \
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user