AUPARSE_GET_FIELD_INT(3)
π AUPARSE_GET_FIELD_INT π
okay so bestie, welcome to auparse_get_field_int β it's a section 3 situation, living happily in the Linux Audit API family of manual pages. and ngl? she's a tiny little function with a very specific job and she does it flawlessly. π
β¨ NAME β¨
auparse_get_field_int β get current field's value as an int
πΈ SYNOPSIS πΈ
#include <auparse.h>
int auparse_get_field_int(auparse_state_t *au);"
π DESCRIPTION π
so here's the tea, bestie. auparse_get_field_int gives you access to the value as an int β that's it, that's the whole gig. π«Ά
but which value, you ask? okay so follow the chain with me:
- the current field
- of the current record
- in the current event
it's giving nested main character energy fr fr. three layers of "current" and you get the int at the very bottom of that little stack. β¨
π₯ RETURN VALUE π₯
- returns
-1if there's an error, anderrnogets set appropriately π - otherwise returns the value, and that's your sign that
errnois zero π
so likeβ¦ yes, the success check really iserrnobeing zero. that's the vibe check. don't skip it, bestie, or you'll be out here reading-1like it's a real number π
π¦ SEE ALSO π¦
auparse_get_field_str(3)β the string-flavored sibling, iykyk π
π AUTHOR π
Steve Grubb
and that's a wrap on this one, bestie π big love to Red Hat for shipping this page back in Feb 2007 β vintage, iconic, still serving β¨π no cap, 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