Debian Codegraph @

upstream/debian-unstable/man3/auparse_set_escape_mode.3

raw
1 .TH "AUPARSE_SET_ESCAPE_MODE" "3" "July 2016" "Red Hat" "Linux Audit API"
2 .SH NAME
3 auparse_set_escape_mode \- choose escape method
4 .SH "SYNOPSIS"
5 .B #include <auparse.h>
6 .sp
7 .BI "void auparse_set_escape_mode(auparse_state_t *" au, auparse_esc_t" mode);"
8
9 .SH "DESCRIPTION"
10
11 auparse_set_escape_mode is used to set the escaping method that will be used to output interpreted text. The choices for the mode variable are:
12
13 .RS
14 .TP
15 .B AUPARSE_ESC_RAW
16 No escaping of any kind is done.
17 .TP
18 .B AUPARSE_ESC_TTY
19 Escape TTY control characters so that they are harmless to display on a terminal. When any control character is found, they are displayed as octal numbers. This is the default mode that the auparse library is initialized with.
20 .TP
21 .B AUPARSE_ESC_SHELL
22 Besides escaping control characters, this will escape some characters that can cause problems when used with shell scripting. Any escaped control characters are displayed as octal numbers. Other escaped characters are proceeded with a backslash. The additional characters it escapes are: " ' ` $ \\
23 .TP
24 .B AUPARSE_ESC_SHELL_QUOTE
25 Similar to
26 .I AUPARSE_ESC_SHELL
27 but expands the character set to include shell operators. Any escaped control characters are displayed as octal numbers. Other escaped characters are proceeded with a backslash. The additional characters it escapes include: ; ' \ " ` # $ & * ? [ ] < > { } \\
28 .RE
29
30
31 .SH "RETURN VALUE"
32
33 None
34
35 .SH "SEE ALSO"
36
37 .BR auparse_interpret_field (3).
38
39 .SH AUTHOR
40 Steve Grubb