auparse_new_buffer(3)

auparse_new_buffer3

Replace the buffer in the parser

Usage

#include <auparse.h>

int auparse_new_buffer(auparse_state_t *au,constchar*"data,size_t"data_len);"
au

The audit parse state

data

A buffer of data to give to the parser, it is data_len bytes long. The data is copied into the parser without modifying the original. Upon return the caller may free or reuse the data buffer.

data_len

The number of bytes in data

Overview

auparse_new_buffer replaces the data that the parser works on. auparse_init() must have been called with a source type of AUSOURCE_BUFFER.

Return value

Returns 1 if an error occurs; otherwise, 0 for success.

Releases

3 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12–13
  2. Arch

From audit 4.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.