AUPARSE_NEW_BUFFER(3)
π AUPARSE_NEW_BUFFER π
okay so bestie, this is the manual page for auparse_new_buffer from the Linux Audit API (that's the section 3 library page, iykyk) β¨
πΈ NAME πΈ
auparse_new_buffer β swap out the buffer the parser is working on, like trading out your phone case but for data π
β¨ SYNOPSIS β¨
#include <auparse.h>
int auparse_new_buffer(auparse_state_t *au, const char *data, size_t data_len);
And here's the tea on every single argument, no skipping, we're thorough in this house:
auβ the audit parse state, aka the main character of this whole operation πdataβ a buffer of data you're handing over to the parser. It'sdata_lenbytes long. The data gets copied into the parser without modifying the original, so the second you get back you can free it or reuse it, do whatever, it's yours again π¦data_lenβ literally just the number of bytes indata. that's it. that's the whole job π
π DESCRIPTION π
auparse_new_buffer replaces the data that the parser works on. it's giving "out with the old, in with the new" π
β οΈ but hold up βauparse_init()must have been called with a source type ofAUSOURCE_BUFFERfirst, or this whole vibe check fails. no cap.
π₯ RETURN VALUE π₯
Returns 1 if an error occurs; otherwise, 0 for success.
so yeah, it's one of those functions where 0 is the slay outcome and 1 is the "we have a problem" outcome π don't get it twisted.
π SEE ALSO π
auparse_init(3) β go read that one too, it's the prerequisite bestie, they're a package deal π«Ά
Red Hat, June 2025 β mwah, that's the source, the version and the date, all wrapped up with a bow ππ bye bestie, go parse something iconic β¨
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libauparse-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libauparse-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libauparse-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms