/*	@(#)utmp.h	13.1 (RC International) 91/02/01 	*/

#ifndef _UTMP_H
#define _UTMP_H

#define UTMP_FILE	"/etc/utmp"
#define WTMP_FILE	"/usr/adm/wtmp"

/*
 * Structure of utmp and wtmp files.
 */

#include <sys/types.h>

struct	utmp
{
	char	ut_name[9];		/* user login name */
	char	ut_id[4];		/* /etc/inittab id; usually line no */
	char	ut_line[14];		/* tty or device name */
	char	ut_termname[11];	/* physical terminal name (from lan) */
	long	ut_pid;			/* process id */
	short	ut_type;		/* type of entry */
	char	ut_host[32];		/* host name, if remote */
	short	ut_pu;			/* pu number of login */
	struct	exit_status
	   {
		short	e_termination;
		short	e_exit;
	   }
	ut_exit;			/* exit status of a dead process */
	time_t	ut_time;		/* time on */
};


#endif /* _UTMP_H */
