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
11

NAME

13       utmpx.h — user accounting database definitions
14

SYNOPSIS

16       #include <utmpx.h>
17

DESCRIPTION

19       The <utmpx.h> header  shall  define  the  utmpx  structure  that  shall
20       include at least the following members:
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           void          endutxent(void);
61           struct utmpx *getutxent(void);
62           struct utmpx *getutxid(const struct utmpx *);
63           struct utmpx *getutxline(const struct utmpx *);
64           struct utmpx *pututxline(const struct utmpx *);
65           void          setutxent(void);
66
67       The following sections are informative.
68

APPLICATION USAGE

70       None.
71

RATIONALE

73       None.
74

FUTURE DIRECTIONS

76       None.
77

SEE ALSO

79       <sys_time.h>, <sys_types.h>
80
81       The System Interfaces volume of POSIX.1‐2008, endutxent()
82
84       Portions of this text are reprinted and reproduced in  electronic  form
85       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
86       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
87       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
88       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
89       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) 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.unix.org/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                  2013                          utmpx.h(0P)
Impressum