Make all required includes explicit

Information as seen by IWYU 0.12 + clang 9 on Linux
This commit is contained in:
Benny Baumann
2020-09-19 13:55:23 +02:00
parent 29346d0561
commit 0f5262917f
97 changed files with 666 additions and 397 deletions

View File

@ -7,6 +7,14 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include <stdbool.h>
#include "Object.h"
#include "Process.h"
#include "RichString.h"
#include "Settings.h"
typedef enum FreeBSDProcessFields_ {
// Add platform-specific fields here, with ids >= 100
JID = 100,

View File

@ -5,24 +5,27 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include "Macros.h"
#include "ProcessList.h"
#include "FreeBSDProcessList.h"
#include "FreeBSDProcess.h"
#include "zfs/ZfsArcStats.h"
#include "zfs/openzfs_sysctl.h"
#include "Macros.h"
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/user.h>
#include <assert.h>
#include <err.h>
#include <fcntl.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/user.h>
#include "FreeBSDProcess.h"
#include "Macros.h"
#include "ProcessList.h"
#include "zfs/ZfsArcStats.h"
#include "zfs/openzfs_sysctl.h"
#include "XUtils.h"
char jail_errmsg[JAIL_ERRMSGLEN];

View File

@ -7,14 +7,20 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include "zfs/ZfsArcStats.h"
#include <kvm.h>
#include <sys/param.h>
#include <sys/jail.h>
#include <sys/uio.h>
#include <sys/resource.h>
#include "FreeBSDProcess.h"
#include "Hashtable.h"
#include "Process.h"
#include "ProcessList.h"
#include "UsersTable.h"
#include "zfs/ZfsArcStats.h"
#define JAIL_ERRMSGLEN 1024
extern char jail_errmsg[JAIL_ERRMSGLEN];