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

Comparing projects/libstatgrab/src/libstatgrab/swap_stats.c (file contents):
Revision 1.15 by tdb, Sat Feb 14 19:03:35 2004 UTC vs.
Revision 1.16 by tdb, Mon Feb 16 14:55:32 2004 UTC

# Line 36 | Line 36
36   #include <stdio.h>
37   #include <string.h>
38   #endif
39 < #ifdef FREEBSD
39 > #if defined(FREEBSD) || defined(DFBSD)
40   #ifdef FREEBSD5
41   #include <sys/param.h>
42   #include <sys/sysctl.h>
# Line 66 | Line 66 | swap_stat_t *get_swap_stats(){
66          char *line_ptr;
67          unsigned long long value;
68   #endif
69 < #ifdef FREEBSD
69 > #if defined(FREEBSD) || defined(DFBSD)
70          int pagesize;
71   #ifdef FREEBSD5
72          struct xswdev xsw;
# Line 113 | Line 113 | swap_stat_t *get_swap_stats(){
113          fclose(f);
114          swap_stat.used = swap_stat.total - swap_stat.free;
115   #endif
116 < #ifdef FREEBSD
116 > #if defined(FREEBSD) || defined(DFBSD)
117          pagesize=getpagesize();
118  
119   #ifdef FREEBSD5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines