AUPARSE_FIRST_RECORD(3)

πŸ“¦
version 4.2.1 Β· 2 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ’–πŸŽ€πŸ¦‹