1utmpx.h(3HEAD)                      Headers                     utmpx.h(3HEAD)
2
3
4

NAME

6       utmpx.h, utmpx - user accounting database definitions
7

SYNOPSIS

9       #include <utmpx.h>
10
11

DESCRIPTION

13       The  <utmpx.h>  header  defines the utmpx structure, which includes the
14       following members:
15
16         char                  ut_user[];  /* user login name */
17         char                  ut_id[];    /* unspecified initialization */
18                                           /* process identifier */
19         char                  ut_line[];  /* device name */
20         pid_t                 ut_pid;     /* process ID */
21         short                 ut_type;    /* type of entry */
22
23
24
25       for X/Open compilation environments:
26
27         struct ut_exit_status ut_exit; /* process termination/exit status*/
28
29
30
31       for all other compilation environments:
32
33         struct exit_status    ut_exit;    /* process termination/exit status*/
34
35
36         struct timeval        ut_tv;      /* time entry was made */
37         int                   ut_session; /* session ID, used for windowing */
38         short                 ut_syslen;  /* significant length of ut_host */
39                                           /* including terminating null */
40         char                  ut_host[];  /* remote host name */
41
42
43
44       The  pid_t  type  is  defined   through   typedef   as   described   in
45       <sys/types.h>.
46
47
48       The timeval structure is defined as described in <sys/time.h>.
49
50
51       Inclusion  of  the  <utmpx.h>  header can also make visible all symbols
52       from <sys/time.h>.
53
54
55       The following symbolic constants are defined as possible values for the
56       ut_type member of the utmpx structure:
57
58       EMPTY            No valid user accounting information.
59
60
61       BOOT_TIME        Identifies time of system boot.
62
63
64       OLD_TIME         Identifies time when system clock changed.
65
66
67       NEW_TIME         Identifies time after system clock changed.
68
69
70       USER_PROCESS     Identifies a process.
71
72
73       INIT_PROCESS     Identifies a process spawned by the init process.
74
75
76       LOGIN_PROCESS    Identifies the session leader of a logged-in user.
77
78
79       DEAD_PROCESS     Identifies a session leader who has exited.
80
81

ATTRIBUTES

83       See attributes(5) for descriptions of the following attributes:
84
85
86
87
88       ┌─────────────────────────────┬─────────────────────────────┐
89       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
90       ├─────────────────────────────┼─────────────────────────────┤
91       │Interface Stability          │Standard                     │
92       └─────────────────────────────┴─────────────────────────────┘
93

SEE ALSO

95       endutxent(3C),   time.h(3HEAD),  types.h(3HEAD),  attributes(5),  stan‐
96       dards(5)
97
98
99
100SunOS 5.11                        16 Apr 2007                   utmpx.h(3HEAD)
Impressum