46 |
|
#include <uvm/uvm.h> |
47 |
|
#endif |
48 |
|
|
49 |
< |
mem_stat_t *get_memory_stats(){ |
49 |
> |
sg_mem_stats *sg_get_mem_stats(){ |
50 |
|
|
51 |
< |
static mem_stat_t mem_stat; |
51 |
> |
static sg_mem_stats mem_stat; |
52 |
|
|
53 |
|
#ifdef SOLARIS |
54 |
|
kstat_ctl_t *kc; |
108 |
|
return NULL; |
109 |
|
} |
110 |
|
|
111 |
< |
while ((line_ptr = f_read_line(f, "")) != NULL) { |
111 |
> |
while ((line_ptr = sg_f_read_line(f, "")) != NULL) { |
112 |
|
if (sscanf(line_ptr, "%*s %llu kB", &value) != 1) { |
113 |
|
continue; |
114 |
|
} |
171 |
|
#endif |
172 |
|
|
173 |
|
#if defined(NETBSD) || defined(OPENBSD) |
174 |
< |
if ((uvm = get_uvmexp()) == NULL) { |
174 |
> |
if ((uvm = sg_get_uvmexp()) == NULL) { |
175 |
|
return NULL; |
176 |
|
} |
177 |
|
|