OpenBSD manual page server

Manual Page Search Parameters

SENDSYSLOG(2) System Calls Manual SENDSYSLOG(2)

sendsyslogsend a message to syslogd

#include <sys/types.h>

int
sendsyslog(const void *msg, size_t len);

() is used to transmit a syslog(3) formatted message direct to syslogd(8) without requiring the allocation of a socket. This is used internally by syslog_r(3), so that messages can be sent during difficult situations.

Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

sendsyslog() can fail if:

[]
The message cannot be sent, likely because syslogd(8) is not running.

syslog_r(3), syslogd(8)

The sendsyslog() function call appeared in OpenBSD 5.6.

December 10, 2014 OpenBSD-5.8