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.10 by pajs, Mon Oct 20 15:25:47 2003 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines