(ELF_MACHINE_NO_RELA): Define unconditionally to defined RTLD_BOOTSTRAP.
[glibc-ports.git] / sysdeps / unix / sysv / aix / bits / utmpx.h
blob438b5f3a51be2220dd039aba55bd416bf629bba7
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
18 02111-1307 USA. */
20 #ifndef _UTMPX_H
21 # error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."
22 #endif
24 #include <bits/types.h>
25 #include <sys/time.h>
28 #ifdef __USE_GNU
29 # include <paths.h>
30 # define _PATH_UTMPX _PATH_UTMP
31 # define _PATH_WTMPX _PATH_WTMP
32 #endif
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. */
41 struct utmpx
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. */
66 #ifdef __USE_GNU
67 # define ACCOUNTING 9 /* System accounting. */
68 #endif
70 #define _HAVE_UT_TYPE 1
71 #define _HAVE_UT_PID 1
72 #define _HAVE_UT_ID 1
73 #define _HAVE_UT_TV 1
74 #define _HAVE_UT_HOST 1