AUPARSE_GET_NUM_RECORDS(3)
β¨ AUPARSE_GET_NUM_RECORDS β¨
okay bestie, pull up a chair π this one lives in the Linux Audit API corner of the manual pages, section 3 (that's the library-functions section, iykyk), and it's genuinely one of the cutest little calls you'll ever meet. it's called auparse_get_num_records, and yes, it does exactly what the name is giving.
πΈ NAME πΈ
auparse_get_num_records β get the number of records π
π¦ SYNOPSIS π¦
#include <auparse.h>
unsigned int auparse_get_num_records(const auparse_state_t *au);"
π DESCRIPTION π
so here's the vibe: auparse_get_num_records</p> gets the number of records in the current event. that's it. that's the whole thing. no cap. π«Ά
you hand it your auparse state, it tells you how many records are hanging out in the event you're currently looking at. it's giving "headcount for the party" energy. π
π RETURN VALUE π
- returns
0if an error occurs π - otherwise, it returns the number of records β¨
fr fr, 0 means something went wrong, not "zero records". keep that in mind before you start celebrating a very empty event. π
π SEE ALSO π
auparse_next_record(3)β your girl's next-door neighbor, go say hi π
β AUTHOR β
Steve Grubb β legend behavior, honestly π
and that's the whole page, bestie!! this one shipped from Red Hat all the way back in Feb 2007 (yes, ancient, but she still slays π
), and the page itself is AUPARSE_GET_NUM_RECORDS(3). go count some records, 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