Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/lib/ape/man/0/syslog.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved 
.TH "<syslog.h>" 0P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\" <syslog.h> 
.SH NAME
syslog.h \- definitions for system error logging
.SH SYNOPSIS
.LP
\fB#include <syslog.h> \fP
.SH DESCRIPTION
.LP
The \fI<syslog.h>\fP header shall define the following symbolic constants,
zero or more of which may be OR'ed together to
form the \fIlogopt\fP option of \fIopenlog\fP():
.TP 7
LOG_PID
Log the process ID with each message.
.TP 7
LOG_CONS
Log to the system console on error.
.TP 7
LOG_NDELAY
Connect to syslog daemon immediately.
.TP 7
LOG_ODELAY
Delay open until \fIsyslog\fP() is called.
.TP 7
LOG_NOWAIT
Do not wait for child processes.
.sp
.LP
The following symbolic constants shall be defined as possible values
of the \fIfacility\fP argument to \fIopenlog\fP():
.TP 7
LOG_KERN
Reserved for message generated by the system.
.TP 7
LOG_USER
Message generated by a process.
.TP 7
LOG_MAIL
Reserved for message generated by mail system.
.TP 7
LOG_NEWS
Reserved for message generated by news system.
.TP 7
LOG_UUCP
Reserved for message generated by UUCP system.
.TP 7
LOG_DAEMON
Reserved for message generated by system daemon.
.TP 7
LOG_AUTH
Reserved for message generated by authorization daemon.
.TP 7
LOG_CRON
Reserved for message generated by clock daemon.
.TP 7
LOG_LPR
Reserved for message generated by printer system.
.TP 7
LOG_LOCAL0
Reserved for local use.
.TP 7
LOG_LOCAL1
Reserved for local use.
.TP 7
LOG_LOCAL2
Reserved for local use.
.TP 7
LOG_LOCAL3
Reserved for local use.
.TP 7
LOG_LOCAL4
Reserved for local use.
.TP 7
LOG_LOCAL5
Reserved for local use.
.TP 7
LOG_LOCAL6
Reserved for local use.
.TP 7
LOG_LOCAL7
Reserved for local use.
.sp
.LP
The following shall be declared as macros for constructing the \fImaskpri\fP
argument to \fIsetlogmask\fP(). The following macros expand to an
expression of type \fBint\fP when the
argument \fIpri\fP is an expression of type \fBint\fP:
.TP 7
LOG_MASK(\fIpri\fP)
A mask for priority \fIpri\fP.
.sp
.LP
The following constants shall be defined as possible values for the
\fIpriority\fP argument of \fIsyslog\fP():
.TP 7
LOG_EMERG
A panic condition was reported to all processes.
.TP 7
LOG_ALERT
A condition that should be corrected immediately.
.TP 7
LOG_CRIT
A critical condition.
.TP 7
LOG_ERR
An error message.
.TP 7
LOG_WARNING
A warning message.
.TP 7
LOG_NOTICE
A condition requiring special handling.
.TP 7
LOG_INFO
A general information message.
.TP 7
LOG_DEBUG
A message useful for debugging programs.
.sp
.LP
The following shall be declared as functions and may also be defined
as macros. Function prototypes shall be provided.
.sp
.RS
.nf

\fBvoid  closelog(void);
void  openlog(const char *, int, int);
int   setlogmask(int);
void  syslog(int, const char *, ...);
\fP
.fi
.RE
.LP
\fIThe following sections are informative.\fP
.SH APPLICATION USAGE
.LP
None.
.SH RATIONALE
.LP
None.
.SH FUTURE DIRECTIONS
.LP
None.
.SH SEE ALSO
.LP
The System Interfaces volume of IEEE\ Std\ 1003.1-2001, \fIcloselog\fP()
.SH COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].