35 |
|
#include <stdio.h> |
36 |
|
#include <string.h> |
37 |
|
#endif |
38 |
< |
#ifdef FREEBSD |
38 |
> |
#if defined(FREEBSD) || defined(DFBSD) |
39 |
|
#include <sys/types.h> |
40 |
|
#include <sys/sysctl.h> |
41 |
|
#include <unistd.h> |
62 |
|
unsigned long long value; |
63 |
|
FILE *f; |
64 |
|
#endif |
65 |
< |
#ifdef FREEBSD |
65 |
> |
#if defined(FREEBSD) || defined(DFBSD) |
66 |
|
int mib[2]; |
67 |
|
u_long physmem; |
68 |
|
size_t size; |
127 |
|
mem_stat.used = mem_stat.total - mem_stat.free; |
128 |
|
#endif |
129 |
|
|
130 |
< |
#ifdef FREEBSD |
130 |
> |
#if defined(FREEBSD) || defined(DFBSD) |
131 |
|
/* Returns bytes */ |
132 |
|
mib[0] = CTL_HW; |
133 |
|
mib[1] = HW_PHYSMEM; |