librc: missing includes from IWYU

This commit is contained in:
Sam James 2023-01-29 04:15:25 +00:00 committed by William Hubbs
parent 01bcdb43b6
commit 5af3944440
6 changed files with 58 additions and 2 deletions

View File

@ -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__)

View File

@ -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"

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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>