Cover V02, I05
Article
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Listing 1
Listing 2
Listing 3
Listing 4

sep93.tar


Listing 1: /etc/wtmp file structure

struct utmp
{
char ut_user[8] ;               /* User login name */
char ut_id[4] ;                 /* /etc/lines id(usually line #) */
char ut_line[12] ;              /* device name (console, lnxx) */
short ut_pid ;                  /* process id */
short ut_type ;                 /* type of entry */
struct exit_status
{
short e_termination ;       /* Process termination status */
short e_exit ;              /* Process exit status */
}
ut_exit ;                       /* The exit status of a process
* marked as DEAD_PROCESS.
*/
time_t ut_time ;                /* time entry was made */
} ;