Debian Codegraph @

upstream/debian-unstable/man3/auparse_new_buffer.3

raw
1 .TH "AUPARSE_NEW_BUFFER" "3" "June 2025" "Red Hat" "Linux Audit API"
2 .SH NAME
3 auparse_new_buffer \- replace the buffer in the parser
4 .SH "SYNOPSIS"
5 .B #include <auparse.h>
6 .sp
7 .nf
8 .BI "int auparse_new_buffer(auparse_state_t *" au, const char *" data, size_t" data_len);"
9 .fi
10
11 .TP
12 .I au
13 The audit parse state
14 .TP
15 .I data
16 A buffer of data to give to the parser, it is
17 .I data_len
18 bytes long. The data is copied into the parser without modifying the original. Upon return the caller may free or reuse the data buffer.
19 .TP
20 .I data_len
21 The number of bytes in
22 .I data
23
24 .SH "DESCRIPTION"
25
26 .I auparse_new_buffer
27 replaces the data that the parser works on.
28 .I auparse_init()
29 must have been called with a source type of AUSOURCE_BUFFER.
30
31 .SH "RETURN VALUE"
32
33 Returns 1 if an error occurs; otherwise, 0 for success.
34
35 .SH "SEE ALSO"
36
37 .BR auparse_init (3)
38