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.12 by ats, Mon Nov 10 23:25:45 2003 UTC vs.
Revision 1.13 by pajs, Tue Jan 6 22:28:41 2004 UTC

# Line 31 | Line 31
31   #endif
32   #include <utmp.h>
33  
34 + #ifdef SOLARIS
35 + #define MAX_LOGIN_NAME_SIZE 8
36 + #endif
37 + #if defined(LINUX) || defined(FREEBSD)
38 + #define MAX_LOGIN_NAME_SIZE UT_NAMESIZE
39 + #endif
40 + #ifdef NETBSD
41 + #define MAX_LOGIN_NAME_SIZE _POSIX_LOGIN_NAME_MAX
42 + #endif
43 + #if defined(CYGWIN)
44 + #define MAX_LOGIN_NAME_SIZE _SC_LOGIN_NAME_MAX
45 + #endif
46 +
47   #define START_VAL (5*(1+MAX_LOGIN_NAME_SIZE))
48  
49   user_stat_t *get_user_stats(){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines