Debian Codegraph @

upstream/debian-trixie/man3/set_aumessage_mode.3

raw
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_AUMESSAGE_MODE" 3 "2004-12-01" "Linux 2.6" "Linux Programmer's Manual"
23 .SH NAME
24 set_aumessage_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_aumessage_mode\fR(message_t\ \fImode\fR, debug_message_t\ \fIdebug\fR);
33 .ad
34 .hy
35
36 .SH "DESCRIPTION"
37
38 .PP
39 \fBset_aumessage_mode\fR sets the location where messages are sent and the output of the debug messages.
40
41 If \fImode\fR=MSG_STDERR, then messages are sent to stderr. If \fImode\fR=MSG_SYSLOG, then messages are sent to syslog. If \fImode\fR=MSG_QUIET (default), then messages are not sent.
42
43 If \fIdebug\fR=DBG_YES, then debug messages are output. If \fIdebug\fR=DBG_NO (default), then debug messages are not output.
44
45 .SH "EXAMPLE"
46
47 .nf
48
49 /* Sample code */
50 set_aumessage_mode(MSG_SYSLOG, DBG_YES)
51
52 .fi
53
54 .SH "RETURN VALUE"
55
56 None.
57
58 .SH "SEE ALSO"
59
60 .BR auditd (8),
61 .BR audit_open (3).
62
63 .SH AUTHOR
64 Debora Velarde.