Include -Wunreachable-code when building.
[sysvinit.git] / src / oldutmp.h
1 /*
2 * oldutmp.h Definition of the old libc5 utmp structure.
3 *
4 * Version: @(#)oldutmp.h 1.00 29-Mar-1998 miquels@cistron.nl
5 *
6 * Copyright (C) 1991-2000 Miquel van Smoorenburg.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 */
23 #ifndef OLD_UTMP_H
24 #define OLD_UTMP_H
25
26 #define OLD_LINESIZE 12
27 #define OLD_NAMESIZE 8
28 #define OLD_HOSTSIZE 16
29
30 struct oldutmp {
31 short ut_type;
32 int ut_pid;
33 char ut_line[OLD_LINESIZE];
34 char ut_id[4];
35 long ut_oldtime;
36 char ut_user[OLD_NAMESIZE];
37 char ut_host[OLD_HOSTSIZE];
38 long ut_oldaddr;
39 };
40
41 #endif