diff options
author | Sam James <sam@gentoo.org> | 2023-01-29 04:15:25 +0000 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2023-01-29 11:32:22 -0600 |
commit | 5af39444404ad71541d95fcd66abd5c032e4bf07 (patch) | |
tree | 351bd665653f3dfc056c44cc4381ad47f0044db9 | |
parent | 01bcdb43b69cae8e5570042819c4157a264a074d (diff) |
librc: missing includes from IWYU
-rw-r--r-- | src/librc/librc-daemon.c | 11 | ||||
-rw-r--r-- | src/librc/librc-depend.c | 13 | ||||
-rw-r--r-- | src/librc/librc-misc.c | 10 | ||||
-rw-r--r-- | src/librc/librc-stringlist.c | 6 | ||||
-rw-r--r-- | src/librc/librc.c | 19 | ||||
-rw-r--r-- | src/librc/librc.h | 1 |
6 files changed, 58 insertions, 2 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index ec02e8b7..50245129 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -15,10 +15,21 @@ * except according to the terms contained in the LICENSE file. */ +#include <errno.h> +#include <dirent.h> +#include <fcntl.h> +#include <limits.h> #include <signal.h> +#include <stdbool.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/stat.h> +#include <unistd.h> #include "queue.h" #include "librc.h" +#include "helpers.h" #if defined(__linux__) || (defined (__FreeBSD_kernel__) && defined(__GLIBC__)) \ || defined(__GNU__) diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index 03149a52..d584af2c 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -16,9 +16,22 @@ */ #include <sys/utsname.h> +#include <ctype.h> +#include <dirent.h> +#include <errno.h> +#include <limits.h> +#include <stdbool.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/stat.h> +#include <time.h> +#include <unistd.h> #include "queue.h" #include "librc.h" +#include "helpers.h" +#include "misc.h" #define GENDEP RC_LIBEXECDIR "/sh/gendepends.sh" diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c index 9dfbaec0..575bcfce 100644 --- a/src/librc/librc-misc.c +++ b/src/librc/librc-misc.c @@ -16,11 +16,21 @@ */ #include <fnmatch.h> +#include <ctype.h> +#include <dirent.h> +#include <errno.h> +#include <limits.h> +#include <stdbool.h> #include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <strings.h> +#include <sys/stat.h> #include "queue.h" #include "librc.h" #include "helpers.h" +#include "misc.h" bool rc_yesno(const char *value) diff --git a/src/librc/librc-stringlist.c b/src/librc/librc-stringlist.c index ee352c5f..7fa7bd4d 100644 --- a/src/librc/librc-stringlist.c +++ b/src/librc/librc-stringlist.c @@ -15,8 +15,14 @@ * except according to the terms contained in the LICENSE file. */ +#include <errno.h> +#include <stdbool.h> +#include <stdlib.h> +#include <string.h> + #include "queue.h" #include "librc.h" +#include "helpers.h" RC_STRINGLIST * rc_stringlist_new(void) diff --git a/src/librc/librc.c b/src/librc/librc.c index 34598529..da2ed4d0 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -15,9 +15,26 @@ * except according to the terms contained in the LICENSE file. */ +#include <helpers.h> +#include <ctype.h> +#include <dirent.h> +#include <errno.h> +#include <fcntl.h> +#include <libgen.h> +#include <limits.h> +#include <regex.h> +#include <stdbool.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/param.h> +#include <sys/stat.h> +#include <unistd.h> + #include "queue.h" #include "librc.h" -#include <helpers.h> +#include "misc.h" +#include "rc.h" #ifdef __FreeBSD__ # include <sys/sysctl.h> #endif diff --git a/src/librc/librc.h b/src/librc/librc.h index 09ab9276..260720ee 100644 --- a/src/librc/librc.h +++ b/src/librc/librc.h @@ -25,7 +25,6 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/wait.h> - #include <ctype.h> #include <dirent.h> #include <errno.h> |