xref: /original-bsd/include/utmp.h (revision c3e32dec)
1 /*
2  * Copyright (c) 1988, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)utmp.h	8.1 (Berkeley) 06/02/93
8  */
9 
10 #ifndef	_UTMP_H_
11 #define	_UTMP_H_
12 
13 #define	_PATH_UTMP	"/var/run/utmp"
14 #define	_PATH_WTMP	"/var/log/wtmp"
15 #define	_PATH_LASTLOG	"/var/log/lastlog"
16 
17 #define	UT_NAMESIZE	8
18 #define	UT_LINESIZE	8
19 #define	UT_HOSTSIZE	16
20 
21 struct lastlog {
22 	time_t	ll_time;
23 	char	ll_line[UT_LINESIZE];
24 	char	ll_host[UT_HOSTSIZE];
25 };
26 
27 struct utmp {
28 	char	ut_line[UT_LINESIZE];
29 	char	ut_name[UT_NAMESIZE];
30 	char	ut_host[UT_HOSTSIZE];
31 	long	ut_time;
32 };
33 
34 #endif /* !_UTMP_H_ */
35