1utmpx.h(0P)                POSIX Programmer's Manual               utmpx.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       utmpx.h — user accounting database definitions
13

SYNOPSIS

15       #include <utmpx.h>
16

DESCRIPTION

18       The <utmpx.h> header  shall  define  the  utmpx  structure  that  shall
19       include at least the following members:
20
21
22           char            ut_user[]  User login name.
23           char            ut_id[]    Unspecified initialization process identifier.
24           char            ut_line[]  Device name.
25           pid_t           ut_pid     Process ID.
26           short           ut_type    Type of entry.
27           struct timeval  ut_tv      Time entry was made.
28
29       The  <utmpx.h>  header  shall define the pid_t type through typedef, as
30       described in <sys/types.h>.
31
32       The <utmpx.h> header shall define the timeval structure as described in
33       <sys/time.h>.
34
35       Inclusion  of  the  <utmpx.h>  header may also make visible all symbols
36       from <sys/time.h>.
37
38       The <utmpx.h> header shall define the following symbolic  constants  as
39       possible values for the ut_type member of the utmpx structure:
40
41       EMPTY         No valid user accounting information.
42
43       BOOT_TIME     Identifies time of system boot.
44
45       OLD_TIME      Identifies time when system clock changed.
46
47       NEW_TIME      Identifies time after system clock changed.
48
49       USER_PROCESS  Identifies a process.
50
51       INIT_PROCESS  Identifies a process spawned by the init process.
52
53       LOGIN_PROCESS Identifies the session leader of a logged-in user.
54
55       DEAD_PROCESS  Identifies a session leader who has exited.
56
57       The following shall be declared as functions and may also be defined as
58       macros. Function prototypes shall be provided.
59
60
61           void          endutxent(void);
62           struct utmpx *getutxent(void);
63           struct utmpx *getutxid(const struct utmpx *);
64           struct utmpx *getutxline(const struct utmpx *);
65           struct utmpx *pututxline(const struct utmpx *);
66           void          setutxent(void);
67
68       The following sections are informative.
69

APPLICATION USAGE

71       None.
72

RATIONALE

74       None.
75

FUTURE DIRECTIONS

77       None.
78

SEE ALSO

80       <sys_time.h>, <sys_types.h>
81
82       The System Interfaces volume of POSIX.1‐2017, endutxent()
83
85       Portions of this text are reprinted and reproduced in  electronic  form
86       from  IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
87       table Operating System Interface (POSIX), The Open Group Base  Specifi‐
88       cations  Issue  7, 2018 Edition, Copyright (C) 2018 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       Any typographical or formatting errors that appear  in  this  page  are
96       most likely to have been introduced during the conversion of the source
97       files to man page format. To report such errors,  see  https://www.ker
98       nel.org/doc/man-pages/reporting_bugs.html .
99
100
101
102IEEE/The Open Group                  2017                          utmpx.h(0P)
Impressum