1 /* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. 9 * 10 * %sccs.include.redist.c% 11 * 12 * @(#)utmp.h 8.2 (Berkeley) 01/21/94 13 */ 14 15 #ifndef _UTMP_H_ 16 #define _UTMP_H_ 17 18 #define _PATH_UTMP "/var/run/utmp" 19 #define _PATH_WTMP "/var/log/wtmp" 20 #define _PATH_LASTLOG "/var/log/lastlog" 21 22 #define UT_NAMESIZE 8 23 #define UT_LINESIZE 8 24 #define UT_HOSTSIZE 16 25 26 struct lastlog { 27 time_t ll_time; 28 char ll_line[UT_LINESIZE]; 29 char ll_host[UT_HOSTSIZE]; 30 }; 31 32 struct utmp { 33 char ut_line[UT_LINESIZE]; 34 char ut_name[UT_NAMESIZE]; 35 char ut_host[UT_HOSTSIZE]; 36 long ut_time; 37 }; 38 39 #endif /* !_UTMP_H_ */ 40