1<utmpx.h>(0P) POSIX Programmer's Manual <utmpx.h>(0P)
2
3
4
6 utmpx.h - user accounting database definitions
7
9 #include <utmpx.h>
10
12 The <utmpx.h> header shall define the utmpx structure that shall
13 include at least the following members:
14
15
16 char ut_user[] User login name.
17 char ut_id[] Unspecified initialization process identifier.
18 char ut_line[] Device name.
19 pid_t ut_pid Process ID.
20 short ut_type Type of entry.
21 struct timeval ut_tv Time entry was made.
22
23 The pid_t type shall be defined through typedef as described in
24 <sys/types.h> .
25
26 The timeval structure shall be defined as described in <sys/time.h> .
27
28 Inclusion of the <utmpx.h> header may also make visible all symbols
29 from <sys/time.h>.
30
31 The following symbolic constants shall be defined as possible values
32 for the ut_type member of the utmpx structure:
33
34 EMPTY No valid user accounting information.
35
36 BOOT_TIME
37 Identifies time of system boot.
38
39 OLD_TIME
40 Identifies time when system clock changed.
41
42 NEW_TIME
43 Identifies time after system clock changed.
44
45 USER_PROCESS
46 Identifies a process.
47
48 INIT_PROCESS
49 Identifies a process spawned by the init process.
50
51 LOGIN_PROCESS
52 Identifies the session leader of a logged-in user.
53
54 DEAD_PROCESS
55 Identifies a session leader who has exited.
56
57
58 The following shall be declared as functions and may also be defined as
59 macros. Function prototypes shall be provided.
60
61
62 void endutxent(void);
63 struct utmpx *getutxent(void);
64 struct utmpx *getutxid(const struct utmpx *);
65 struct utmpx *getutxline(const struct utmpx *);
66 struct utmpx *pututxline(const struct utmpx *);
67 void setutxent(void);
68
69 The following sections are informative.
70
72 None.
73
75 None.
76
78 None.
79
81 <sys/time.h>, <sys/types.h>, the System Interfaces volume of
82 IEEE Std 1003.1-2001, endutxent()
83
85 Portions of this text are reprinted and reproduced in electronic form
86 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
87 -- Portable Operating System Interface (POSIX), The Open Group Base
88 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
89 Electrical and Electronics Engineers, Inc and The Open Group. In the
90 event of any discrepancy between this version and the original IEEE and
91 The Open Group Standard, the original IEEE and The Open Group Standard
92 is the referee document. The original Standard can be obtained online
93 at http://www.opengroup.org/unix/online.html .
94
95
96
97IEEE/The Open Group 2003 <utmpx.h>(0P)