2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / bits / utmp.h
blobb5353b662877d0d4a0f4aeeedcf831661b559e32
1 /* The `struct utmp' type, describing entries in the utmp file. System V.
2 Copyright (C) 1996, 1997 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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. */
20 #ifndef _UTMP_H
21 # error "Never include <bits/utmp.h> directly; use <utmp.h> instead."
22 #endif
25 #include <time.h>
27 #define _PATH_UTMP "/var/adm/utmp"
28 #define _PATH_WTMP "/var/adm/wtmp"
29 #define _PATH_LASTLOG "/var/adm/lastlog"
32 struct utmp
34 #define ut_name ut_user
35 char ut_user[8];
36 char ut_id[4];
37 char ut_line[12];
38 short int ut_pid;
39 short int ut_type;
40 struct exit_status
42 short int e_termination;
43 short int e_exit;
44 } ut_exit;
45 __time_t ut_time;
49 /* Tell the user that we have a modern system with UT_HOST, UT_TYPE, UT_ID
50 and UT_TV fields. */
51 #define _HAVE_UT_TYPE 1
52 #define _HAVE_UT_ID 1
53 #define _HAVE_UT_TV 1
54 #define _HAVE_UT_HOST 1