
1: /* The `struct utmp' type, describing entries in the utmp file. Generic/BSDish 2: Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc. 3: This file is part of the GNU C Library. 4: 5: The GNU C Library is free software; you can redistribute it and/or 6: modify it under the terms of the GNU Lesser General Public 7: License as published by the Free Software Foundation; either 8: version 2.1 of the License, or (at your option) any later version. 9: 10: The GNU C Library is distributed in the hope that it will be useful, 11: but WITHOUT ANY WARRANTY; without even the implied warranty of 12: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13: Lesser General Public License for more details. 14: 15: You should have received a copy of the GNU Lesser General Public 16: License along with the GNU C Library; if not, write to the Free 17: Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 18: 02111-1307 USA. */ 19: 20: #ifndef _UTMP_H 21: # error "Never include <bits/utmp.h> directly; use <utmp.h> instead." 22: #endif 23: 24: #include <paths.h> 25: #include <time.h> 26: 27: 28: #define UT_NAMESIZE 8 29: #define UT_LINESIZE 8 30: #define UT_HOSTSIZE 16 31: 32: 33: struct lastlog 34: { 35: time_t ll_time; 36: char ll_line[UT_LINESIZE]; 37: char ll_host[UT_HOSTSIZE]; 38: }; 39: 40: struct utmp 41: { 42: char ut_line[UT_LINESIZE]; 43: char ut_user[UT_NAMESIZE]; 44: #define ut_name ut_user 45: char ut_host[UT_HOSTSIZE]; 46: long int ut_time; 47: }; 48: 49: 50: #define _HAVE_UT_HOST 1 /* We have the ut_host field. */