]>
Commit | Line | Data |
---|---|---|
6cf885d7 CW |
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 | * | |
bd695173 CW |
6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation in version 2 of the License. | |
9 | * | |
10 | * This program 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 | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License | |
16 | * along with this program; if not, write to the Free Software | |
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
6cf885d7 CW |
18 | */ |
19 | #ifndef OLD_UTMP_H | |
20 | #define OLD_UTMP_H | |
21 | ||
22 | #define OLD_LINESIZE 12 | |
23 | #define OLD_NAMESIZE 8 | |
24 | #define OLD_HOSTSIZE 16 | |
25 | ||
26 | struct oldutmp { | |
27 | short ut_type; | |
28 | int ut_pid; | |
29 | char ut_line[OLD_LINESIZE]; | |
30 | char ut_id[4]; | |
31 | long ut_oldtime; | |
32 | char ut_user[OLD_NAMESIZE]; | |
33 | char ut_host[OLD_HOSTSIZE]; | |
34 | long ut_oldaddr; | |
35 | }; | |
36 | ||
37 | #endif |