AUSEARCH_CLEAR(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

✨ AUSEARCH_CLEAR(3) ✨

okay bestie, gather round 🫢 you're in section 3 of the manual (library calls, the fun ones), and this page is all about ausearch_clear from the Linux Audit API. it's short, it's sweet, it's giving "spring cleaning but for your parser." πŸ’…


🌸 NAME 🌸

ausearch_clear β€” clear search parameters ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <auparse.h>

void ausearch_clear(auparse_state_t *au);"
no cap, that's the whole signature. one pointer in, nothing out. iconic behavior fr fr πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, ausearch_clear does exactly what it says on the tin, and honestly? we love a function with zero hidden lore. 😌

it clears any search parameters that are stored in the parser instance, and it also frees the memory associated with them. so if you've been stacking up search criteria in your auparse_state_t and you're done with them β€” or you wanna start fresh with a clean slate β€” this is your girl. ✨🧹

it's giving "reset the vibe check." all the old search stuff? gone. memory? freed. main character energy only. πŸ‘‘

πŸ’œ RETURN VALUE πŸ’œ

None.

that's it. that's the whole section. it returns nothing. no status code, no sneaky error, no little surprise. just vibes and a void. 🫠


🌈 SEE ALSO 🌈

these are the ones adding stuff, and ausearch_clear is the one taking it all away. balance, bestie. yin and yang. 🧚✨


πŸ‘‘ AUTHOR πŸ‘‘

Steve Grubb β€” the actual legend behind this one. periodt. πŸ’–


and that's the page!! written by Red Hat, dated Feb 2007 (yes, it's been serving looks since 2007 πŸ’…), and you just read AUSEARCH_CLEAR(3) from the Linux Audit API. go forth and clear those search params, bestie 🫢🌸