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.28 by ats, Fri Feb 13 15:22:49 2004 UTC vs.
Revision 1.29 by tdb, Sat Feb 14 12:38:18 2004 UTC

# Line 33 | Line 33
33   #include <regex.h>
34   #ifdef ALLBSD
35   #include <fcntl.h>
36 + #endif
37 + #ifdef FREEBSD
38   #include <kvm.h>
39   #endif
40   #if defined(NETBSD) || defined(OPENBSD)
# Line 418 | Line 420 | long long get_ll_match(char *line, regmatch_t *match){
420          return num;
421   }
422  
423 < #ifdef ALLBSD
423 > #ifdef FREEBSD
424   kvm_t *get_kvm() {
425          static kvm_t *kvmd = NULL;
426  
# Line 458 | Line 460 | struct uvmexp *get_uvmexp() {
460   #endif
461  
462   int statgrab_init(){
463 < #ifdef ALLBSD
463 > #ifdef FREEBSD
464          {
465                  kvm_t *kvmd = get_kvm();
466                  if (kvmd == NULL) return 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines