AUPARSE_GOTO_RECORD_NUM(3)
π AUPARSE_GOTO_RECORD_NUM(3) π
okay bestie, so this is a page from the Linux Audit API manual, section 3, and it's all about auparse_goto_record_num β yes the name is a mouthful, we love her anyway π
β¨ NAME β¨
auparse_goto_record_num β move the record cursor to a specific record π―
πΈ SYNOPSIS πΈ
#include <auparse.h>
int auparse_goto_record_num(const auparse_state_t *au,unsignedint"num);"
no fr, that's exactly what it says, we don't edit the sacred texts around here π
π¦ DESCRIPTION π¦
so like. auparse_goto_record_num will move the library's internal cursors so they point at one specific physical record number. that's the whole vibe. it's giving "teleport but for cursors" β¨
and here's the key detail, don't skip it: records that live inside the same event get numbered starting from 0. zero-indexed girlies rise up π«Ά
ngl, you generally do not need this one β it's lowkey not the main character of the API. but there are some cases where you want precise control over the exact record you're looking at, and in those moments? she's iconic. that's it, that's the use case π
β RETURN VALUE β
- returns
0on error π - returns
1for success β¨
that's it. binary. no in-between. very "you either ate or you didn't" energy.
π SEE ALSO π
go read those too, they're her friends π
π AUTHOR π
Steve Grubb
and that's the whole page bestie!! π written by Red Hat, dated May 2008 β yes she's vintage, she's been serving this exact information since before some of us could walk, and she still slays πβ¨ππ¦ periodt.
π¦ 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