AUPARSE_DESTROY(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_DESTROY(3) πŸ’–

okay bestie, welcome to the Linux Audit API ✨ this one is short but SO important, it's the cleanup crew of the auparse world 🧹🫢


🌸 NAME 🌸

auparse_destroy β€” release instance of parser πŸ’…

like, let it go, girl. free the parser, it's done. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <auparse.h>

void auparse_destroy(auparse_state_t *au);"

void auparse_destroy_ext(auparse_state_t *au, auparse_destroy_what_t
what);

yes babe, there are two of them. a regular one and an _ext one for when you're feeling extra 😌✨


πŸŽ€ DESCRIPTION πŸŽ€

auparse_destroy frees all data structures and closes file descriptors. that's it, that's the whole vibe. everything goes. bye πŸ‘‹πŸ’€

auparse_destroy_ext frees data structures based on what. and what can be one of these two icons:

  • AUPARSE_DESTROY_ALL β€” release everything πŸ—‘οΈβœ¨ no survivors
  • AUPARSE_DESTROY_COMMON β€” release everything but the uid and gid lookup cache πŸ‘‘ like, keep the good stuff, trash the rest

so if you're the type of girlie who wants to keep her uid/gid cache around for round two, AUPARSE_DESTROY_COMMON is your moment. iykyk πŸ’…


⭐ RETURN VALUE ⭐

None.

nothing. nada. it returns void, it's giving mysterious, it says nothing and leaves 😭 it just does the thing and dips.


🌈 SEE ALSO 🌈

go read those too bestie, they're the friends of this one 🫢


πŸ’œ AUTHOR πŸ’œ

Steve Grubb πŸ‘‘


and that's the whole page, babes!! this little manual page came from Red Hat, dated Feb 2007 β€” yes she's an elder icon and she still slays πŸŽ€βœ¨ now go free your parser and close those file descriptors, no leaks on my watch πŸ”₯πŸ’– mwah!!