AUPARSE_RESET(3)
π AUPARSE_RESET π
okay bestie, pull up a chair, because auparse_reset (that's the auparse_reset from the Linux Audit API, section 3 of the manual, iykyk) is genuinely one of the most underrated little functions in the whole audit library. no cap. it's the "ctrl+z but make it a full factory reset" of the parser world π§β¨
β¨ SYNOPSIS β¨
so first things first, you gotta tell the compiler you know about it:
#include <auparse.h>
int auparse_reset(auparse_state_t *au);"
yes the include goes at the top, yes the function signature is exactly that, no we are not editing it, it's giving canon π
πΈ DESCRIPTION πΈ
okay so here's the tea β β auparse_reset resets all internal cursors back to the beginning. like, all of them. every single one. it's not picking favourites, it's taking everyone back to the start line π
and the way that it's thorough?? it closes files, it closes descriptors, and it frees memory buffers. that's a whole glow-up, that's a whole spring cleaning, that's a whole "new year new me" energy ππ¦
basically: your parser instance walks back in looking brand new and ready to re-read from the top. main character behaviour, honestly π
π RETURN VALUE π
-1β something went wrong π an error occurred, bestie, and it is not being subtle about it0β success!! we ate, we devoured, no notes π«Ά
π¦ SEE ALSO π¦
go read those too, they're the besties that live in the same friend group π
π AUTHOR π
Steve Grubb. an absolute icon, a legend, a pioneer. we stan forever π
and that's the whole page, bestie!! this one came from the Red Hat crew, dated Sep 2014, and it's page AUPARSE_RESET(3) of the Linux Audit API manual β go forth and reset responsibly β¨π
π
π¦ 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