logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

utmpx.h.0p (3399B)


  1. '\" et
  2. .TH utmpx.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. utmpx.h
  12. \(em user accounting database definitions
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <utmpx.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <utmpx.h>
  21. header shall define the
  22. .BR utmpx
  23. structure that shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. char ut_user[] \fRUser login name.\fR
  28. char ut_id[] \fRUnspecified initialization process identifier.\fR
  29. char ut_line[] \fRDevice name.\fR
  30. pid_t ut_pid \fRProcess ID.\fR
  31. short ut_type \fRType of entry.\fR
  32. struct timeval ut_tv \fRTime entry was made.\fR
  33. .fi
  34. .P
  35. .RE
  36. .P
  37. The
  38. .IR <utmpx.h>
  39. header shall define the
  40. .BR pid_t
  41. type through
  42. .BR typedef ,
  43. as described in
  44. .IR <sys/types.h> .
  45. .P
  46. The
  47. .IR <utmpx.h>
  48. header shall define the
  49. .BR timeval
  50. structure as described in
  51. .IR <sys/time.h> .
  52. .P
  53. Inclusion of the
  54. .IR <utmpx.h>
  55. header may also make visible all symbols from
  56. .IR <sys/time.h> .
  57. .P
  58. The
  59. .IR <utmpx.h>
  60. header shall define the following symbolic constants as possible values
  61. for the
  62. .IR ut_type
  63. member of the
  64. .BR utmpx
  65. structure:
  66. .IP EMPTY 14
  67. No valid user accounting information.
  68. .IP BOOT_TIME 14
  69. Identifies time of system boot.
  70. .IP OLD_TIME 14
  71. Identifies time when system clock changed.
  72. .IP NEW_TIME 14
  73. Identifies time after system clock changed.
  74. .IP USER_PROCESS 14
  75. Identifies a process.
  76. .IP INIT_PROCESS 14
  77. Identifies a process spawned by the init process.
  78. .IP LOGIN_PROCESS 14
  79. Identifies the session leader of a logged-in user.
  80. .IP DEAD_PROCESS 14
  81. Identifies a session leader who has exited.
  82. .P
  83. The following shall be declared as functions and may also be defined
  84. as macros. Function prototypes shall be provided.
  85. .sp
  86. .RS 4
  87. .nf
  88. void endutxent(void);
  89. struct utmpx *getutxent(void);
  90. struct utmpx *getutxid(const struct utmpx *);
  91. struct utmpx *getutxline(const struct utmpx *);
  92. struct utmpx *pututxline(const struct utmpx *);
  93. void setutxent(void);
  94. .fi
  95. .P
  96. .RE
  97. .LP
  98. .IR "The following sections are informative."
  99. .SH "APPLICATION USAGE"
  100. None.
  101. .SH RATIONALE
  102. None.
  103. .SH "FUTURE DIRECTIONS"
  104. None.
  105. .SH "SEE ALSO"
  106. .IR "\fB<sys_time.h>\fP",
  107. .IR "\fB<sys_types.h>\fP"
  108. .P
  109. The System Interfaces volume of POSIX.1\(hy2017,
  110. .IR "\fIendutxent\fR\^(\|)"
  111. .\"
  112. .SH COPYRIGHT
  113. Portions of this text are reprinted and reproduced in electronic form
  114. from IEEE Std 1003.1-2017, Standard for Information Technology
  115. -- Portable Operating System Interface (POSIX), The Open Group Base
  116. Specifications Issue 7, 2018 Edition,
  117. Copyright (C) 2018 by the Institute of
  118. Electrical and Electronics Engineers, Inc and The Open Group.
  119. In the event of any discrepancy between this version and the original IEEE and
  120. The Open Group Standard, the original IEEE and The Open Group Standard
  121. is the referee document. The original Standard can be obtained online at
  122. http://www.opengroup.org/unix/online.html .
  123. .PP
  124. Any typographical or formatting errors that appear
  125. in this page are most likely
  126. to have been introduced during the conversion of the source files to
  127. man page format. To report such errors, see
  128. https://www.kernel.org/doc/man-pages/reporting_bugs.html .