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

Comparing projects/libstatgrab/src/libstatgrab/tools.c (file contents):
Revision 1.9 by ats, Sun Oct 19 02:03:02 2003 UTC vs.
Revision 1.11 by pajs, Mon Oct 20 16:20:06 2003 UTC

# Line 114 | Line 114 | struct uvmexp *get_uvmexp() {
114   }
115   #endif
116  
117 + int statgrab_init(){
118 + #ifdef ALLBSD
119 +        {
120 +                kvm_t *kvmd = get_kvm();
121 +                if (kvmd == NULL) return 1;
122 +        }
123 + #endif
124 + #ifdef NETBSD
125 +        {
126 +                struct uvmexp *uvm = get_uvmexp();
127 +                if (uvm == NULL) return 1;
128 +        }
129 + #endif
130 +        return 0;
131 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines