37 |
|
#include <stdio.h> |
38 |
|
#include <string.h> |
39 |
|
#endif |
40 |
< |
#ifdef FREEBSD |
40 |
> |
#if defined(FREEBSD) || defined(DFBSD) |
41 |
|
#include <sys/types.h> |
42 |
|
#include <sys/sysctl.h> |
43 |
|
#endif |
59 |
|
FILE *f; |
60 |
|
char *line_ptr; |
61 |
|
#endif |
62 |
< |
#ifdef FREEBSD |
62 |
> |
#if defined(FREEBSD) || defined(DFBSD) |
63 |
|
size_t size; |
64 |
|
#endif |
65 |
|
#if defined(NETBSD) || defined(OPENBSD) |
119 |
|
return NULL; |
120 |
|
} |
121 |
|
#endif |
122 |
< |
#ifdef FREEBSD |
122 |
> |
#if defined(FREEBSD) || defined(DFBSD) |
123 |
|
size = sizeof page_stats.pages_pagein; |
124 |
|
if (sysctlbyname("vm.stats.vm.v_swappgsin", &page_stats.pages_pagein, &size, NULL, 0) < 0){ |
125 |
|
return NULL; |