version 1.3, 1999/04/21 15:15:39 |
version 1.4, 2001/01/31 17:42:25 |
|
|
#define _PATH_WTMP "/var/log/wtmp" |
#define _PATH_WTMP "/var/log/wtmp" |
#define _PATH_LASTLOG "/var/log/lastlog" |
#define _PATH_LASTLOG "/var/log/lastlog" |
|
|
#define UT_NAMESIZE 8 |
#define UT_NAMESIZE 32 |
#define UT_LINESIZE 8 |
#define UT_LINESIZE 8 |
#define UT_HOSTSIZE 16 |
#define UT_HOSTSIZE 256 |
|
|
/* |
/* |
* Note that these are *not* C strings and thus are not |
* Note that these are *not* C strings and thus are not |
|
|
char ut_line[UT_LINESIZE]; |
char ut_line[UT_LINESIZE]; |
char ut_name[UT_NAMESIZE]; |
char ut_name[UT_NAMESIZE]; |
char ut_host[UT_HOSTSIZE]; |
char ut_host[UT_HOSTSIZE]; |
|
time_t ut_time; |
|
}; |
|
|
|
/* |
|
* These should not be used for writing out new data, for reference only. |
|
*/ |
|
struct old_lastlog { |
|
time_t ll_time; |
|
char ll_line[8]; |
|
char ll_host[16]; |
|
}; |
|
|
|
struct old_utmp { |
|
char ut_line[8]; |
|
char ut_name[8]; |
|
char ut_host[16]; |
time_t ut_time; |
time_t ut_time; |
}; |
}; |
|
|