xref: /csrg-svn/include/utmp.h (revision 65762)
121315Sdist /*
261070Sbostic  * Copyright (c) 1988, 1993
361070Sbostic  *	The Regents of the University of California.  All rights reserved.
4*65762Sbostic  * (c) UNIX System Laboratories, Inc.
5*65762Sbostic  * All or some portions of this file are derived from material licensed
6*65762Sbostic  * to the University of California by American Telephone and Telegraph
7*65762Sbostic  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8*65762Sbostic  * the permission of UNIX System Laboratories, Inc.
921315Sdist  *
1042617Sbostic  * %sccs.include.redist.c%
1135600Sbostic  *
12*65762Sbostic  *	@(#)utmp.h	8.2 (Berkeley) 01/21/94
1321315Sdist  */
1412196Ssam 
1547787Sbostic #ifndef	_UTMP_H_
1647787Sbostic #define	_UTMP_H_
1747787Sbostic 
1837431Sbostic #define	_PATH_UTMP	"/var/run/utmp"
1937431Sbostic #define	_PATH_WTMP	"/var/log/wtmp"
2037819Sbostic #define	_PATH_LASTLOG	"/var/log/lastlog"
2137093Sbostic 
2235665Sbostic #define	UT_NAMESIZE	8
2335665Sbostic #define	UT_LINESIZE	8
2435665Sbostic #define	UT_HOSTSIZE	16
2537819Sbostic 
2637819Sbostic struct lastlog {
2737819Sbostic 	time_t	ll_time;
2837819Sbostic 	char	ll_line[UT_LINESIZE];
2937819Sbostic 	char	ll_host[UT_HOSTSIZE];
3037819Sbostic };
3137819Sbostic 
3212196Ssam struct utmp {
3338008Sbostic 	char	ut_line[UT_LINESIZE];
3438008Sbostic 	char	ut_name[UT_NAMESIZE];
3535665Sbostic 	char	ut_host[UT_HOSTSIZE];
3635767Smarc 	long	ut_time;
3712196Ssam };
3847787Sbostic 
3947787Sbostic #endif /* !_UTMP_H_ */
40