1 /* The `struct utmp' type, describing entries in the utmp file. AIX.
2 Copyright (C) 1996, 1997, 1999, 2000 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
21 # error "Never include <bits/utmp.h> directly; use <utmp.h> instead."
26 #include <sys/types.h>
29 #define UT_LINESIZE 12
31 #define UT_HOSTSIZE 16
36 #define ut_name ut_user
37 char ut_user
[UT_NAMESIZE
];
39 char ut_line
[UT_LINESIZE
];
44 short int e_termination
;
48 char ut_host
[UT_HOSTSIZE
];
52 /* Values for the `ut_type' field of a `struct utmp'. */
53 #define EMPTY 0 /* No valid user accounting information. */
55 #define RUN_LVL 1 /* The system's runlevel. */
56 #define BOOT_TIME 2 /* Time of system boot. */
57 #define OLD_TIME 3 /* Time when system clock changed. */
58 #define NEW_TIME 4 /* Time after system clock changed. */
60 #define INIT_PROCESS 5 /* Process spawned by the init process. */
61 #define LOGIN_PROCESS 6 /* Session leader of a logged in user. */
62 #define USER_PROCESS 7 /* Normal process. */
63 #define DEAD_PROCESS 8 /* Terminated process. */
68 /* Tell the user that we have a modern system with UT_HOST, UT_TYPE, and
70 #define _HAVE_UT_TYPE 1
71 #define _HAVE_UT_PID 1
73 #define _HAVE_UT_HOST 1