--- projects/libstatgrab/src/libstatgrab/memory_stats.c 2004/02/16 14:55:32 1.23 +++ projects/libstatgrab/src/libstatgrab/memory_stats.c 2004/04/05 15:40:15 1.24 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: memory_stats.c,v 1.23 2004/02/16 14:55:32 tdb Exp $ + * $Id: memory_stats.c,v 1.24 2004/04/05 15:40:15 ats Exp $ */ #ifdef HAVE_CONFIG_H @@ -46,9 +46,9 @@ #include #endif -mem_stat_t *get_memory_stats(){ +sg_mem_stats *sg_get_mem_stats(){ - static mem_stat_t mem_stat; + static sg_mem_stats mem_stat; #ifdef SOLARIS kstat_ctl_t *kc; @@ -108,7 +108,7 @@ mem_stat_t *get_memory_stats(){ return NULL; } - while ((line_ptr = f_read_line(f, "")) != NULL) { + while ((line_ptr = sg_f_read_line(f, "")) != NULL) { if (sscanf(line_ptr, "%*s %llu kB", &value) != 1) { continue; } @@ -171,7 +171,7 @@ mem_stat_t *get_memory_stats(){ #endif #if defined(NETBSD) || defined(OPENBSD) - if ((uvm = get_uvmexp()) == NULL) { + if ((uvm = sg_get_uvmexp()) == NULL) { return NULL; }