AUPARSE_FIRST_RECORD(3)
π AUPARSE_FIRST_RECORD(3) π
the Linux Audit API β¨ (3) β yes bestie, section 3, library functions, we're in that part of the manual π
β¨ NAME β¨
auparse_first_record β reposition record cursor π¦
okay so literally the whole job is: move the little pointer thingy. that's it. that's the gig. π
β¨ SYNOPSIS β¨
#include <auparse.h>
int auparse_first_record(auparse_state_t *au);"
yes you need the header, yes the function takes one arg, no you cannot skip this part π
β¨ DESCRIPTION β¨
okay so auparse_first_record does the cutest little thing: it repositions the internal cursors of the parsing library so they point at the first field of the first record in the current event. π
likeβ¦ you were somewhere in the middle of the event, vibing, scrolling through records, and this function just goes rewind and puts you right back at the very start. main character energy fr fr. πΈ
three things it's pointing you at, and you need all three, no skipping:
- the first field π
- of the first record π
- in the current event π
not the first event, bestie. the current one. don't get it twisted. π
β¨ RETURN VALUE β¨
the receipts, because we always check the receipts π§
-1β an error happened, something went wrong, it's giving chaos π0β there's no event data to work with, like an empty group chat π«Ά1β success!! we ate, no crumbs, periodt β¨
β¨ SEE ALSO β¨
your little reading list, go be nosy π
β¨ AUTHOR β¨
Steve Grubb β thank you for your service king π«‘π
reminder bestie: this page is the Linux Audit API, section 3, and it's brought to you by Red Hat, dated Sep 2014. oldie but a goodie, still iconic, still slaying. πβ
now go rewind that cursor and have the best day ever πππ¦
π¦ 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