forked from linux-audit/audit-userspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add auparse_new_buffer function to auparse library
- Loading branch information
1 parent
1e17d19
commit 73e726d
Showing
7 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.TH "AUPARSE_NEW_BUFFER" "3" "Feb 2021" "Red Hat" "Linux Audit API" | ||
.SH NAME | ||
auparse_new_buffer \- replace the buffer in the parser | ||
.SH "SYNOPSIS" | ||
.B #include <auparse.h> | ||
.sp | ||
.nf | ||
int auparse_new_buffer(auparse_state_t *au, const char *data, size_t data_len); | ||
.fi | ||
|
||
.TP | ||
.I au | ||
The audit parse state | ||
.TP | ||
.I data | ||
a buffer of data to give to the parser, it is | ||
.I data_len | ||
bytes long. The data is copied in the parser, upon return the caller may free or reuse the data buffer. | ||
.TP | ||
.I data_len | ||
number of bytes in | ||
.I data | ||
|
||
.SH "DESCRIPTION" | ||
|
||
.I auparse_new_buffer | ||
replaces the data that the parser works on. | ||
.I auparse_init() | ||
must have been called with a source type of AUSOURCE_BUFFER. | ||
|
||
.SH "RETURN VALUE" | ||
|
||
Returns 1 if an error occurs; otherwise, 0 for success. | ||
|
||
.SH "SEE ALSO" | ||
|
||
.BR auparse_init (3) | ||
|