mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
IWYU update (FreeBSD)
This commit is contained in:

committed by
BenBE

parent
7cf5277594
commit
f5c3349bdb
@ -5,22 +5,6 @@ Released under the GNU GPLv2, see the COPYING file
|
||||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
/*{
|
||||
typedef struct ZfsArcStats_ {
|
||||
int enabled;
|
||||
int isCompressed;
|
||||
unsigned long long int max;
|
||||
unsigned long long int size;
|
||||
unsigned long long int MFU;
|
||||
unsigned long long int MRU;
|
||||
unsigned long long int anon;
|
||||
unsigned long long int header;
|
||||
unsigned long long int other;
|
||||
unsigned long long int compressed;
|
||||
unsigned long long int uncompressed;
|
||||
} ZfsArcStats;
|
||||
}*/
|
||||
|
||||
#include "Macros.h"
|
||||
|
||||
static int make_iso_compilers_happy ATTR_UNUSED;
|
||||
|
@ -6,12 +6,13 @@ in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include "zfs/openzfs_sysctl.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h> // IWYU pragma: keep
|
||||
#include <sys/sysctl.h> // needs <sys/types.h> for u_int with gcc
|
||||
|
||||
#include "zfs/ZfsArcStats.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
static int MIB_kstat_zfs_misc_arcstats_size[5];
|
||||
static int MIB_kstat_zfs_misc_arcstats_c_max[5];
|
||||
@ -23,10 +24,6 @@ static int MIB_kstat_zfs_misc_arcstats_other_size[5];
|
||||
static int MIB_kstat_zfs_misc_arcstats_compressed_size[5];
|
||||
static int MIB_kstat_zfs_misc_arcstats_uncompressed_size[5];
|
||||
|
||||
/*{
|
||||
#include "zfs/ZfsArcStats.h"
|
||||
}*/
|
||||
|
||||
void openzfs_sysctl_init(ZfsArcStats* stats) {
|
||||
size_t len;
|
||||
unsigned long long int arcSize;
|
||||
|
Reference in New Issue
Block a user