Blame docs/set_aumessage_mode.3

Packit f0d170
.\" Copyright (C) 2004 IBM
Packit f0d170
.\" This file is distributed according to the GNU General Public License.
Packit f0d170
.\" See the file COPYING in the top level source directory for details.
Packit f0d170
.de Sh \" Subsection
Packit f0d170
.br
Packit f0d170
.if t .Sp
Packit f0d170
.ne 5
Packit f0d170
.PP
Packit f0d170
\fB\\$1\fR
Packit f0d170
.PP
Packit f0d170
..
Packit f0d170
.de Sp \" Vertical space (when we can't use .PP)
Packit f0d170
.if t .sp .5v
Packit f0d170
.if n .sp
Packit f0d170
..
Packit f0d170
.de Ip \" List item
Packit f0d170
.br
Packit f0d170
.ie \\n(.$>=3 .ne \\$3
Packit f0d170
.el .ne 3
Packit f0d170
.IP "\\$1" \\$2
Packit f0d170
..
Packit f0d170
.TH "SET_MESSAGE_MODE" 3 "2004-12-01" "Linux 2.6" "Linux Programmer's Manual"
Packit f0d170
.SH NAME
Packit f0d170
set_message_mode \- Sets the message mode
Packit f0d170
.SH "SYNOPSIS"
Packit f0d170
.ad l
Packit f0d170
.hy 0
Packit f0d170
Packit f0d170
#include <libaudit.h>
Packit f0d170
.sp
Packit f0d170
.HP 23
Packit f0d170
void\ \fBset_message_mode\fR\ (message_t\ \fImode\fR);
Packit f0d170
.ad
Packit f0d170
.hy
Packit f0d170
Packit f0d170
.SH "DESCRIPTION"
Packit f0d170
Packit f0d170
.PP
Packit f0d170
\fBset_message_mode\fR sets the location where informational messages are sent. If \fImode\fR=0 (default), then informational messages are sent to stderr. If \fImode\fR=1, then informational messages are sent to syslog.
Packit f0d170
Packit f0d170
.SH "EXAMPLE"
Packit f0d170
Packit f0d170
.nf
Packit f0d170
Packit f0d170
/* Sample code */
Packit f0d170
set_message_mode(MSG_SYSLOG)
Packit f0d170
Packit f0d170
.fi
Packit f0d170
Packit f0d170
.SH "SEE ALSO"
Packit f0d170
Packit f0d170
.BR auditd (8),
Packit f0d170
.BR audit_open (3).
Packit f0d170
Packit f0d170
.SH AUTHOR
Packit f0d170
Debora Velarde.