Imported Upstream version 2.4.3
[platform/upstream/audit.git] / docs / set_aumessage_mode.3
1 .\" Copyright (C) 2004 IBM
2 .\" This file is distributed according to the GNU General Public License.
3 .\" See the file COPYING in the top level source directory for details.
4 .de Sh \" Subsection
5 .br
6 .if t .Sp
7 .ne 5
8 .PP
9 \fB\\$1\fR
10 .PP
11 ..
12 .de Sp \" Vertical space (when we can't use .PP)
13 .if t .sp .5v
14 .if n .sp
15 ..
16 .de Ip \" List item
17 .br
18 .ie \\n(.$>=3 .ne \\$3
19 .el .ne 3
20 .IP "\\$1" \\$2
21 ..
22 .TH "SET_MESSAGE_MODE" 3 "2004-12-01" "Linux 2.6" "Linux Programmer's Manual"
23 .SH NAME
24 set_message_mode \- Sets the message mode
25 .SH "SYNOPSIS"
26 .ad l
27 .hy 0
28
29 #include <libaudit.h>
30 .sp
31 .HP 23
32 void\ \fBset_message_mode\fR\ (message_t\ \fImode\fR);
33 .ad
34 .hy
35
36 .SH "DESCRIPTION"
37
38 .PP
39 \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.
40
41 .SH "EXAMPLE"
42
43 .nf
44
45 /* Sample code */
46 set_message_mode(MSG_SYSLOG)
47
48 .fi
49
50 .SH "SEE ALSO"
51
52 .BR auditd (8),
53 .BR audit_open (3).
54
55 .SH AUTHOR
56 Debora Velarde.