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

Comparing projects/cms/source/ihost/libstatgrab/user_stats.c (file contents):
Revision 1.4 by pajs, Sun May 19 15:07:51 2002 UTC vs.
Revision 1.5 by pajs, Sun May 19 17:58:58 2002 UTC

# Line 40 | Line 40 | char *get_user_stats(){
40   #endif
41  
42   #if defined(LINUX) || defined(SOLARIS)
43 +        setutent();
44          while((entry=getutent()) != NULL) {
45                  if(entry->ut_type==USER_PROCESS) {
46                          user_tmp=user_list;
# Line 52 | Line 53 | char *get_user_stats(){
53                          nousers++;
54                  }
55          }
56 +        endutent();
57   #endif
58  
59   #ifdef FREEBSD

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines