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

Comparing projects/libstatgrab/src/libstatgrab/user_stats.c (file contents):
Revision 1.9 by tdb, Sun Aug 24 20:24:09 2003 UTC vs.
Revision 1.11 by ats, Fri Oct 24 17:00:26 2003 UTC

# Line 26 | Line 26
26   #include <stdio.h>
27   #include <string.h>
28   #include "statgrab.h"
29 < #ifdef FREEBSD
29 > #ifdef ALLBSD
30   #include <sys/types.h>
31   #endif
32   #include <utmp.h>
# Line 42 | Line 42 | user_stat_t *get_user_stats(){
42   #if defined(SOLARIS) || defined(LINUX)  
43          struct utmp *entry;
44   #endif
45 < #ifdef FREEBSD
45 > #ifdef ALLBSD
46          struct utmp entry;
47          FILE *f;
48   #endif
# Line 80 | Line 80 | user_stat_t *get_user_stats(){
80          }
81          endutent();
82   #endif
83 < #ifdef FREEBSD
83 > #ifdef ALLBSD
84          if ((f=fopen(_PATH_UTMP, "r")) == NULL){
85                  return NULL;
86          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines