AUPARSE_GET_TYPE_NAME(3)
π AUPARSE_GET_TYPE_NAME(3) π
okay bestie, gather round, because this one is from the Linux Audit API and she is so much simpler than she sounds. no cap.
β¨ NAME β¨
auparse_get_type_name β get the record's type translation, aka "what is this record actually called" π
π¦ SYNOPSIS π¦
#include <auparse.h>
const char * auparse_get_type_name(const auparse_state_t *au);"
(yes the trailing quote is literally in the original, i'm not touching it, i don't make the rules π«Ά)
πΈ DESCRIPTION πΈ
so like. the auparse_get_type_name function hands you back the text representation of the name of the current record's type. that's it. that's the whole thing.
it's giving "translate the type number into a name you can actually read" energy. the way that it justβ¦ tells you what the current record type is called. iconic behavior honestly β¨
π RETURN VALUE π
- if something goes wrong,
auparse_get_type_namereturnsNULLπ - otherwise, you get a pointer to a string π
that's the whole vibe check.
π SEE ALSO π
go read those next, bestie, iykyk π
π AUTHOR π
Steve Grubb β the main character who wrote this. we stan. π
π heads up: this is a pointer into existing data, not a fresh copy you get to keep forever β the original doesn't promise anything more than "pointer to a string", so don't go assuming extra guarantees that aren't written down. fr fr.
okay that's the page!! this came from Red Hat, dated Mar 2016, and it lives in the manual as AUPARSE_GET_TYPE_NAME(3). mwah, go forth and parse those records, you absolute legend πβ¨π¦
π¦ 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