File: set_aumessage_mode.3

package info (click to toggle)
audit 1:2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-backports, jessie-kfreebsd
  • size: 5,308 kB
  • ctags: 5,589
  • sloc: ansic: 47,383; sh: 11,886; python: 1,949; makefile: 824
file content (56 lines) | stat: -rw-r--r-- 1,039 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.\" Copyright (C) 2004 IBM
.\" This file is distributed according to the GNU General Public License.
.\" See the file COPYING in the top level source directory for details.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "SET_MESSAGE_MODE" 3 "2004-12-01" "Linux 2.6" "Linux Programmer's Manual"
.SH NAME
set_message_mode \- Sets the message mode
.SH "SYNOPSIS"
.ad l
.hy 0

#include <libaudit.h>
.sp
.HP 23
void\ \fBset_message_mode\fR\ (message_t\ \fImode\fR);
.ad
.hy

.SH "DESCRIPTION"

.PP
\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.

.SH "EXAMPLE"

.nf

/* Sample code */
set_message_mode(MSG_SYSLOG)

.fi

.SH "SEE ALSO"

.BR auditd (8),
.BR audit_open (3).

.SH AUTHOR
Debora Velarde.