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.11 by ats, Fri Oct 24 17:00:26 2003 UTC vs.
Revision 1.12 by ats, Mon Nov 10 23:25:45 2003 UTC

# Line 39 | Line 39 | user_stat_t *get_user_stats(){
39          static user_stat_t user_stats;
40          static int size_of_namelist=-1;
41          char *tmp;
42 < #if defined(SOLARIS) || defined(LINUX)  
42 > #if defined(SOLARIS) || defined(LINUX) || defined(CYGWIN)
43          struct utmp *entry;
44   #endif
45   #ifdef ALLBSD
# Line 59 | Line 59 | user_stat_t *get_user_stats(){
59          /* Essentially blank the list, or give it a inital starting string */
60          strcpy(user_stats.name_list, "");
61  
62 < #if defined(SOLARIS) || defined(LINUX)  
62 > #if defined(SOLARIS) || defined(LINUX) || defined(CYGWIN)
63          setutent();
64          while((entry=getutent()) != NULL) {
65                  if(entry->ut_type==USER_PROCESS) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines