AUSEARCH_SET_STOP(3)
β¨ AUSEARCH_SET_STOP β the "where do we stop tho" function β¨
okay bestie, gather round, because this one is literally just about vibes and destinations π it's ausearch_set_stop, a little function from the Linux Audit API (that's the <auparse.h> girlies), and what it does is decide where your internal cursor lands once a search condition hits. that's it. that's the whole job. but she does it so well π
πΈ SYNOPSIS πΈ
#include <auparse.h>
int ausearch_set_stop(auparse_state_t *au,austop_t"where);"
yes the header include is <auparse.h>, do not come for me, that's just how it is π«Ά
π DESCRIPTION π
so like. ausearch_set_stop is the one that decides where the internal cursor stops when a search condition gets met. and babes, you have options β three of them, and they're all giving very different energy:
AUSEARCH_STOP_EVENTβ this one repositions the cursors all the way back to the first field of the first record of the event that contains the items you were searching for. like, rewinding to the very beginning of the whole saga πAUSEARCH_STOP_RECORDβ this one repositions the cursors to the first field of the record containing the items searched for. so like, the start of the chapter, not the whole book πAUSEARCH_STOP_FIELDβ this one is the no-nonsense queen π she simply stops on the current field the moment the evaluation of the rules becomes true. right here, right now, no rewind, periodt.
β RETURN VALUE β
- returns
-1if an error occurs π - otherwise
0for success β¨
that's it. binary. iconic.
π¦ SEE ALSO π¦
ausearch_add_item(3)ausearch_add_regex(3)ausearch_clear(3)ausearch_cur_event(3)ausearch_next_event(3)
go read those next, bestie, they're the rest of the friend group π
π AUTHOR π
Steve Grubb β yes, that Steve Grubb. the legend. the main character. we love him, no cap π«Ά
and that's the whole page!! this one came to you from Red Hat, dated Feb 2007, and it's still out here doing its thing π mwah, go set some stops, ily β¨
π¦ 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