Commit | Line | Data |
---|---|---|
bb0cfa24 | 1 | /* |
d6c17d94 KB |
2 | * Copyright (c) 1988, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
af8b0f8a KB |
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. | |
bb0cfa24 | 9 | * |
269a7923 | 10 | * %sccs.include.redist.c% |
7a7b7bcb | 11 | * |
af8b0f8a | 12 | * @(#)utmp.h 8.2 (Berkeley) %G% |
7a7b7bcb | 13 | */ |
1e1d4114 | 14 | |
b890cc7a KB |
15 | #ifndef _UTMP_H_ |
16 | #define _UTMP_H_ | |
17 | ||
3a93c164 KB |
18 | #define _PATH_UTMP "/var/run/utmp" |
19 | #define _PATH_WTMP "/var/log/wtmp" | |
c620d3d6 | 20 | #define _PATH_LASTLOG "/var/log/lastlog" |
2deafd40 | 21 | |
f4aa90d9 KB |
22 | #define UT_NAMESIZE 8 |
23 | #define UT_LINESIZE 8 | |
24 | #define UT_HOSTSIZE 16 | |
c620d3d6 KB |
25 | |
26 | struct lastlog { | |
27 | time_t ll_time; | |
28 | char ll_line[UT_LINESIZE]; | |
29 | char ll_host[UT_HOSTSIZE]; | |
30 | }; | |
31 | ||
7a7b7bcb | 32 | struct utmp { |
619513f7 KB |
33 | char ut_line[UT_LINESIZE]; |
34 | char ut_name[UT_NAMESIZE]; | |
f4aa90d9 | 35 | char ut_host[UT_HOSTSIZE]; |
daa9176e | 36 | long ut_time; |
7a7b7bcb | 37 | }; |
b890cc7a KB |
38 | |
39 | #endif /* !_UTMP_H_ */ |