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 interpreted text. The choices for the mode variable are:
17
18
19 AUPARSE_ESC_RAW
20 No escaping of any kind is done.
21
22 AUPARSE_ESC_TTY
23 Escape TTY control characters so that they are harmless
24 to display on a terminal. When any control character is
25 found, they are displayed as octal numbers. This is the
26 default mode that the auparse library is initialized
27 with.
28
29 AUPARSE_ESC_SHELL
30 Besides escaping control characters, this will escape
31 some characters that can cause problems when used with
32 shell scripting. Any escaped control characters are dis‐
33 played as octal numbers. Other escaped characters are
34 proceeded with a backslash. The additional characters it
35 escapes are: " ' ` $ \
36
37 AUPARSE_ESC_SHELL_QUOTE
38 Similar to AUPARSE_ESC_SHELL but expands the character
39 set to include shell operators. Any escaped control char‐
40 acters are displayed as octal numbers. Other escaped
41 characters are proceeded with a backslash. The additional
42 characters it escapes include: ; ' " ` # $ & * ? [ ] < >
43 { } \
44
45
46
48 None
49
50
52 auparse_interpret_field(3).
53
54
56 Steve Grubb
57
58
59
60Red Hat July 2016 AUPARSE_SET_ESCAPE_MODE(3)