AUPARSE_NODE_COMPARE(3)
π AUPARSE_NODE_COMPARE(3) π
okay bestie, welcome to the Linux Audit API corner of the group chat π«Ά this one's called auparse_node_compare and she's a whole lil function, no cap.
β¨ NAME β¨
auparse_node_compare β literally just compares node name values π
πΈ SYNOPSIS πΈ
#include <auparse.h>
int auparse_node_compare(const au_event_t *e1,constau_event_t*"e2);"
π¦ DESCRIPTION π¦
so the way that auparse_node_compare works is: it takes the node name values from 2 events and compares them. that's it. that's the whole vibe check. two events walk in, their node names get held up next to each other, and the function tells you how they stack up. iconic behavior honestly π
π RETURN VALUE π
she hands back -1, 0, or 1, depending on whether e2 is less than, equal to, or greater than e1 β respectively. in that order. don't mix it up π
and since this is a string compare, it probably only matters whether they're equal or not equal. the less-than/greater-than thing is lowkey just along for the ride. periodt π
ngl bestie, remember it'se2being judged againste1, not the other way around. the order is the whole plot twist here.
π₯ SEE ALSO π₯
auparse_get_timestamp(3).β go say hi to her too π
β AUTHOR β
Steve Grubb β the main character who wrote this β¨π
and that's the page, bestie!! this lil slice of the Linux Audit API is brought to you by Red Hat, dated Sept 2007 π like... a vintage queen fr fr. go forth and compare those node names, you've got this ππ§
π¦ 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