1AUPARSE_SET_ESCAPE_MODE(3) Linux Audit API AUPARSE_SET_ESCAPE_MODE(3)
2
3
4
6 auparse_set_escape_mode - choose escape method
7
9 #include <auparse.h>
10
11 void auparse_set_escape_mode(auparse_state_t *au, auparse_esc_t mode);
12
13
15 auparse_set_escape_mode is used to set the escaping method that will be
16 used to output interpretted text. The choices for the mode variable
17 are:
18
19
20 AUPARSE_ESC_RAW
21 No escaping of any kind is done.
22
23 AUPARSE_ESC_TTY
24 Escape TTY control characters so that they are harmless
25 to display on a terminal. When any control character is
26 found, they are displayed as octal numbers. This is the
27 default mode that the auparse library is initialized
28 with.
29
30 AUPARSE_ESC_SHELL
31 Besides escaping control characters, this will escape
32 some characters that can cause problems when used with
33 shell scripting. Any escaped control characters are dis‐
34 played as octal numbers. Other escaped characters are
35 proceeded with a backslash. The additional characters it
36 escapes are: " ' ` $ \
37
38 AUPARSE_ESC_SHELL_QUOTE
39 Similar to AUPARSE_ESC_SHELL but expands the character
40 set to include shell operators. Any escaped control char‐
41 acters are displayed as octal numbers. Other escaped
42 characters are proceeded with a backslash. The additional
43 characters it escapes include: ; ' " ` # $ & * ? [ ] < >
44 { } \
45
46
47
49 None
50
51
53 auparse_interpret_field(3).
54
55
57 Steve Grubb
58
59
60
61Red Hat July 2016 AUPARSE_SET_ESCAPE_MODE(3)