Back to index

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

Go to the source code of this file.

Classes

struct  utmp
struct  utmp::exit_status

Defines

#define UT_LINESIZE   12
#define UT_NAMESIZE   8
#define UT_HOSTSIZE   16
#define ut_name   ut_user
#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 OLD_TIME   3 /* Time when system clock changed. */
#define NEW_TIME   4 /* Time after 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 _HAVE_UT_TYPE   1
#define _HAVE_UT_PID   1
#define _HAVE_UT_ID   1
#define _HAVE_UT_HOST   1

Class Documentation

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
struct utmp::exit_status

Definition at line 42 of file utmp.h.

Class Members
short int e_exit
short int e_termination

Define Documentation

#define _HAVE_UT_HOST   1

Definition at line 73 of file utmp.h.

#define _HAVE_UT_ID   1

Definition at line 72 of file utmp.h.

#define _HAVE_UT_PID   1

Definition at line 71 of file utmp.h.

#define _HAVE_UT_TYPE   1

Definition at line 70 of file utmp.h.

#define ACCOUNTING   9

Definition at line 65 of file utmp.h.

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

Definition at line 56 of file utmp.h.

#define DEAD_PROCESS   8 /* Terminated process. */

Definition at line 63 of file utmp.h.

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

Definition at line 53 of file utmp.h.

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

Definition at line 60 of file utmp.h.

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

Definition at line 61 of file utmp.h.

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

Definition at line 58 of file utmp.h.

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

Definition at line 57 of file utmp.h.

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

Definition at line 55 of file utmp.h.

#define USER_PROCESS   7 /* Normal process. */

Definition at line 62 of file utmp.h.

#define UT_HOSTSIZE   16

Definition at line 31 of file utmp.h.

#define UT_LINESIZE   12

Definition at line 29 of file utmp.h.

#define ut_name   ut_user

Definition at line 36 of file utmp.h.

#define UT_NAMESIZE   8

Definition at line 30 of file utmp.h.