AUPARSE_NEXT_FIELD(3)

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

πŸ’– AUPARSE_NEXT_FIELD πŸ’–

okay bestie, welcome to section 3 of the Linux Audit API β€” this one's auparse_next_field, and it's honestly a lil baby function with main character energy. sit down, grab a boba, let's go πŸ§‹βœ¨


✨ NAME ✨

auparse_next_field β€” move the field cursor 🎯

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <auparse.h>

int auparse_next_field(const auparse_state_t *au);"

(yes, that trailing quote is literally in the original, i'm not touching it, periodt πŸ’…)

🌸 DESCRIPTION 🌸

so. the library has this internal cursor, right? like a little arrow pointing at stuff πŸ‘‰ and auparse_next_field makes it hop forward to the next field in the current record of the current event.

that's it. that's the whole job. it's giving "next slide please" πŸ’€

think of it like scrolling your for you page, but instead of videos it's audit fields, and instead of the algorithm it's you, manually, one at a time. no cap. 🌈

πŸ‘‘ RETURN VALUE πŸ‘‘

  • 0 β€” no more fields exist, we're done here, the field cursor has hit the end of the road πŸ›‘πŸ˜­
  • 1 β€” success!! it worked, slay πŸ’–βœ¨
ngl, 0 meaning "no more" and 1 meaning "yes more" is lowkey iconic in a confusing way, but that's just how it is. check it, don't guess. πŸ”

πŸŽ€ SEE ALSO πŸŽ€

  • auparse_next_record(3) β€” the sibling function, the one that moves the record cursor instead of the field cursor. yin and yang fr fr 🫢

πŸ’œ AUTHOR πŸ’œ

Steve Grubb


and that's the whole page bestie!! πŸ¦‹ this lil gem came to you from Red Hat, dated Feb 2007 β€” yes, 2007, it's vintage, it's an elder icon, we respect our elders in this house πŸ‘‘πŸŒΈ

now go forth and move that cursor. i believe in you. mwah πŸ’…πŸ’–