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

syslog.h.0p (4156B)


  1. '\" et
  2. .TH syslog.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. syslog.h
  12. \(em definitions for system error logging
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <syslog.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <syslog.h>
  21. header shall define the following symbolic constants, zero or more
  22. of which may be OR'ed together to form the
  23. .IR logopt
  24. option of
  25. \fIopenlog\fR():
  26. .IP LOG_PID 14
  27. Log the process ID with each message.
  28. .IP LOG_CONS 14
  29. Log to the system console on error.
  30. .IP LOG_NDELAY 14
  31. Connect to syslog daemon immediately.
  32. .IP LOG_ODELAY 14
  33. Delay open until
  34. \fIsyslog\fR()
  35. is called.
  36. .IP LOG_NOWAIT 14
  37. Do not wait for child processes.
  38. .P
  39. The
  40. .IR <syslog.h>
  41. header shall define the following symbolic constants for use as the
  42. .IR facility
  43. argument to
  44. \fIopenlog\fR():
  45. .IP LOG_KERN 14
  46. Reserved for message generated by the system.
  47. .IP LOG_USER 14
  48. Message generated by a process.
  49. .IP LOG_MAIL 14
  50. Reserved for message generated by mail system.
  51. .IP LOG_NEWS 14
  52. Reserved for message generated by news system.
  53. .IP LOG_UUCP 14
  54. Reserved for message generated by UUCP system.
  55. .IP LOG_DAEMON 14
  56. Reserved for message generated by system daemon.
  57. .IP LOG_AUTH 14
  58. Reserved for message generated by authorization daemon.
  59. .IP LOG_CRON 14
  60. Reserved for message generated by clock daemon.
  61. .IP LOG_LPR 14
  62. Reserved for message generated by printer system.
  63. .IP LOG_LOCAL0 14
  64. Reserved for local use.
  65. .IP LOG_LOCAL1 14
  66. Reserved for local use.
  67. .IP LOG_LOCAL2 14
  68. Reserved for local use.
  69. .IP LOG_LOCAL3 14
  70. Reserved for local use.
  71. .IP LOG_LOCAL4 14
  72. Reserved for local use.
  73. .IP LOG_LOCAL5 14
  74. Reserved for local use.
  75. .IP LOG_LOCAL6 14
  76. Reserved for local use.
  77. .IP LOG_LOCAL7 14
  78. Reserved for local use.
  79. .P
  80. The
  81. .IR <syslog.h>
  82. header shall define the following macros for constructing the
  83. .IR maskpri
  84. argument to
  85. \fIsetlogmask\fR().
  86. The following macros expand to an expression of type
  87. .BR int
  88. when the argument
  89. .IR pri
  90. is an expression of type
  91. .BR int :
  92. .IP "LOG_MASK(\fIpri\fR)" 14
  93. A mask for priority
  94. .IR pri .
  95. .P
  96. The
  97. .IR <syslog.h>
  98. header shall define the following symbolic constants for use as the
  99. .IR priority
  100. argument of
  101. \fIsyslog\fR():
  102. .IP LOG_EMERG 14
  103. A panic condition was reported to all processes.
  104. .IP LOG_ALERT 14
  105. A condition that should be corrected immediately.
  106. .IP LOG_CRIT 14
  107. A critical condition.
  108. .IP LOG_ERR 14
  109. An error message.
  110. .IP LOG_WARNING 14
  111. A warning message.
  112. .IP LOG_NOTICE 14
  113. A condition requiring special handling.
  114. .IP LOG_INFO 14
  115. A general information message.
  116. .IP LOG_DEBUG 14
  117. A message useful for debugging programs.
  118. .P
  119. The following shall be declared as functions and may also be defined
  120. as macros. Function prototypes shall be provided.
  121. .sp
  122. .RS 4
  123. .nf
  124. void closelog(void);
  125. void openlog(const char *, int, int);
  126. int setlogmask(int);
  127. void syslog(int, const char *, ...);
  128. .fi
  129. .P
  130. .RE
  131. .LP
  132. .IR "The following sections are informative."
  133. .SH "APPLICATION USAGE"
  134. None.
  135. .SH RATIONALE
  136. None.
  137. .SH "FUTURE DIRECTIONS"
  138. None.
  139. .SH "SEE ALSO"
  140. The System Interfaces volume of POSIX.1\(hy2017,
  141. .IR "\fIcloselog\fR\^(\|)"
  142. .\"
  143. .SH COPYRIGHT
  144. Portions of this text are reprinted and reproduced in electronic form
  145. from IEEE Std 1003.1-2017, Standard for Information Technology
  146. -- Portable Operating System Interface (POSIX), The Open Group Base
  147. Specifications Issue 7, 2018 Edition,
  148. Copyright (C) 2018 by the Institute of
  149. Electrical and Electronics Engineers, Inc and The Open Group.
  150. In the event of any discrepancy between this version and the original IEEE and
  151. The Open Group Standard, the original IEEE and The Open Group Standard
  152. is the referee document. The original Standard can be obtained online at
  153. http://www.opengroup.org/unix/online.html .
  154. .PP
  155. Any typographical or formatting errors that appear
  156. in this page are most likely
  157. to have been introduced during the conversion of the source files to
  158. man page format. To report such errors, see
  159. https://www.kernel.org/doc/man-pages/reporting_bugs.html .