Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
openlog(3) OSS Library Calls Reference Manual
NAME
openlog - Initializes Event Management Service (EMS) event log files
LIBRARY
G-series native OSS processes: /G/system/sysnn/zossesrl
H-series OSS processes: /G/system/zdllnnn/zossedll
SYNOPSIS
#include <syslog.h>
int openlog(
const char *ident,
int logopt,
int facility);
PARAMETERS
ident Contains a pointer to an identity (event subject) string, which by default contains
"syslog." The calling process must not deallocate or override the identity string
until a new string is specified through a subsequent call to the openlog() func-
tion.
The event subject string becomes the value of the EMS token ZOSS-TKN-
IDENT. Refer to the syslog(3) reference page either online or in the Open Sys-
tem Services Library Calls Reference Manual for more information about the
use of this token.
logopt Specifies options that modify the operation of openlog(). The following logging
options can be logically ORed to create the value for this parameter:
LOG_CONS Forces sending the event message to the local primary collector,
$0, if the message cannot be sent to the collector specified by the
EMS_COLLECTOR environment variable. If LOG_CONS is
not set when the syslog() function is called and the message
cannot be sent to the collector specified by
EMS_COLLECTOR, the syslog() function takes no further
action.
LOG_NDELAY
Opens the connection to the collector process immediately.
Normally, the openlog() function does not open this connection
until the first event message is logged.
If you specify both LOG_NDELAY and LOG_ODELAY, only
LOG_ODELAY has effect.
LOG_NOWAIT
Has no effect. This option is included for compatibility with
certain UNIX systems.
LOG_ODELAY
Opens the connection to the collector process only when the first
event message is to be logged. This is the default collector pro-
cess connection option.
If you specify both LOG_NDELAY and LOG_ODELAY, only
LOG_ODELAY has effect.
5−24 Hewlett-Packard Company 527187-007