1 /* Structures and defenitions for the user accounting database. AIX.
2 Copyright (C) 1997, 1998, 1999 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/utmpx.h> directly; use <utmpx.h> instead."
24 #include <bits/types.h>
30 # define _PATH_UTMPX _PATH_UTMP
31 # define _PATH_WTMPX _PATH_WTMP
35 #define __UT_LINESIZE 12
36 #define __UT_NAMESIZE 8
37 #define __UT_HOSTSIZE 16
40 /* The structure describing an entry in the user accounting database. */
43 char ut_user
[__UT_NAMESIZE
]; /* Username. */
44 char ut_id
[14]; /* Inittab ID. */
45 char ut_line
[__UT_LINESIZE
]; /* Devicename. */
46 short int ut_type
; /* Type of login. */
47 __pid_t ut_pid
; /* Process ID of login process. */
48 struct timeval ut_tv
; /* Time entry was made. */
49 char ut_host
[__UT_HOSTSIZE
]; /* Hostname for remote login. */
53 /* Values for the `ut_type' field of a `struct utmpx'. */
54 #define EMPTY 0 /* No valid user accounting information. */
56 #define RUN_LVL 1 /* The system's runlevel. */
57 #define BOOT_TIME 2 /* Time of system boot. */
58 #define NEW_TIME 3 /* Time after system clock changed. */
59 #define OLD_TIME 4 /* Time when system clock changed. */
61 #define INIT_PROCESS 5 /* Process spawned by the init process. */
62 #define LOGIN_PROCESS 6 /* Session leader of a logged in user. */
63 #define USER_PROCESS 7 /* Normal process. */
64 #define DEAD_PROCESS 8 /* Terminated process. */
67 # define ACCOUNTING 9 /* System accounting. */
70 #define _HAVE_UT_TYPE 1
71 #define _HAVE_UT_PID 1
74 #define _HAVE_UT_HOST 1