1 /* 2 * Copyright (c) 1988 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)utmp.h 5.10 (Berkeley) 06/01/90 8 */ 9 10 #define _PATH_UTMP "/var/run/utmp" 11 #define _PATH_WTMP "/var/log/wtmp" 12 #define _PATH_LASTLOG "/var/log/lastlog" 13 14 #define UT_NAMESIZE 8 15 #define UT_LINESIZE 8 16 #define UT_HOSTSIZE 16 17 18 struct lastlog { 19 time_t ll_time; 20 char ll_line[UT_LINESIZE]; 21 char ll_host[UT_HOSTSIZE]; 22 }; 23 24 struct utmp { 25 char ut_line[UT_LINESIZE]; 26 char ut_name[UT_NAMESIZE]; 27 char ut_host[UT_HOSTSIZE]; 28 long ut_time; 29 }; 30