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

Comparing projects/libstatgrab/src/libstatgrab/page_stats.c (file contents):
Revision 1.16 by tdb, Fri Feb 13 16:46:21 2004 UTC vs.
Revision 1.17 by tdb, Mon Feb 16 14:55:32 2004 UTC

# Line 37 | Line 37
37   #include <stdio.h>
38   #include <string.h>
39   #endif
40 < #ifdef FREEBSD
40 > #if defined(FREEBSD) || defined(DFBSD)
41   #include <sys/types.h>
42   #include <sys/sysctl.h>
43   #endif
# Line 59 | Line 59 | page_stat_t *get_page_stats(){
59          FILE *f;
60          char *line_ptr;
61   #endif
62 < #ifdef FREEBSD
62 > #if defined(FREEBSD) || defined(DFBSD)
63          size_t size;
64   #endif
65   #if defined(NETBSD) || defined(OPENBSD)
# Line 119 | Line 119 | page_stat_t *get_page_stats(){
119                  return NULL;
120          }
121   #endif
122 < #ifdef FREEBSD
122 > #if defined(FREEBSD) || defined(DFBSD)
123          size = sizeof page_stats.pages_pagein;
124          if (sysctlbyname("vm.stats.vm.v_swappgsin", &page_stats.pages_pagein, &size, NULL, 0) < 0){
125                  return NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines