ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/memory_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/memory_stats.c (file contents):
Revision 1.23 by tdb, Mon Feb 16 14:55:32 2004 UTC vs.
Revision 1.24 by ats, Mon Apr 5 15:40:15 2004 UTC

# Line 46 | Line 46
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;
# Line 108 | Line 108 | mem_stat_t *get_memory_stats(){
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                  }
# Line 171 | Line 171 | mem_stat_t *get_memory_stats(){
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines