Back to index

glibc  2.9
Classes | Defines
utmp.h File Reference
#include <paths.h>
#include <sys/time.h>
#include <sys/types.h>
#include <bits/wordsize.h>

Go to the source code of this file.

Classes

struct  lastlog
struct  exit_status
struct  utmp

Defines

#define UT_LINESIZE   32
#define UT_NAMESIZE   32
#define UT_HOSTSIZE   256
#define ut_name   ut_user
#define ut_time   ut_tv.tv_sec
#define ut_xtime   ut_tv.tv_sec
#define ut_addr   ut_addr_v6[0]
#define EMPTY   0 /* No valid user accounting information. */
#define RUN_LVL   1 /* The system's runlevel. */
#define BOOT_TIME   2 /* Time of system boot. */
#define NEW_TIME   3 /* Time after system clock changed. */
#define OLD_TIME   4 /* Time when system clock changed. */
#define INIT_PROCESS   5 /* Process spawned by the init process. */
#define LOGIN_PROCESS   6 /* Session leader of a logged in user. */
#define USER_PROCESS   7 /* Normal process. */
#define DEAD_PROCESS   8 /* Terminated process. */
#define ACCOUNTING   9
#define UT_UNKNOWN   EMPTY
#define _HAVE_UT_TYPE   1
#define _HAVE_UT_PID   1
#define _HAVE_UT_ID   1
#define _HAVE_UT_TV   1
#define _HAVE_UT_HOST   1

Class Documentation

struct lastlog

Definition at line 33 of file utmp.h.

Class Members
char ll_host
char ll_line
time_t ll_time
__time_t ll_time
struct exit_status

Definition at line 52 of file utmp.h.

Class Members
short int e_exit
short int e_termination
struct utmp

Definition at line 40 of file utmp.h.

Collaboration diagram for utmp:
Class Members
char __unused
int32_t ut_addr_v6
struct exit_status ut_exit
char ut_host
char ut_id
char ut_line
short int ut_pid
pid_t ut_pid
long int ut_session
long int ut_time
__time_t ut_time
short int ut_type
char ut_user

Define Documentation

#define _HAVE_UT_HOST   1

Definition at line 125 of file utmp.h.

#define _HAVE_UT_ID   1

Definition at line 123 of file utmp.h.

#define _HAVE_UT_PID   1

Definition at line 122 of file utmp.h.

#define _HAVE_UT_TV   1

Definition at line 124 of file utmp.h.

#define _HAVE_UT_TYPE   1

Definition at line 121 of file utmp.h.

#define ACCOUNTING   9

Definition at line 113 of file utmp.h.

#define BOOT_TIME   2 /* Time of system boot. */

Definition at line 104 of file utmp.h.

#define DEAD_PROCESS   8 /* Terminated process. */

Definition at line 111 of file utmp.h.

#define EMPTY   0 /* No valid user accounting information. */

Definition at line 101 of file utmp.h.

#define INIT_PROCESS   5 /* Process spawned by the init process. */

Definition at line 108 of file utmp.h.

#define LOGIN_PROCESS   6 /* Session leader of a logged in user. */

Definition at line 109 of file utmp.h.

#define NEW_TIME   3 /* Time after system clock changed. */

Definition at line 105 of file utmp.h.

#define OLD_TIME   4 /* Time when system clock changed. */

Definition at line 106 of file utmp.h.

#define RUN_LVL   1 /* The system's runlevel. */

Definition at line 103 of file utmp.h.

#define USER_PROCESS   7 /* Normal process. */

Definition at line 110 of file utmp.h.

#define ut_addr   ut_addr_v6[0]

Definition at line 97 of file utmp.h.

#define UT_HOSTSIZE   256

Definition at line 33 of file utmp.h.

#define UT_LINESIZE   32

Definition at line 31 of file utmp.h.

#define ut_name   ut_user

Definition at line 90 of file utmp.h.

#define UT_NAMESIZE   32

Definition at line 32 of file utmp.h.

#define ut_time   ut_tv.tv_sec

Definition at line 94 of file utmp.h.

#define UT_UNKNOWN   EMPTY

Definition at line 116 of file utmp.h.

#define ut_xtime   ut_tv.tv_sec

Definition at line 96 of file utmp.h.