AUPARSE_GET_TYPE_NAME(3)

πŸ“¦
version 4.2.1 Β· 3 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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_name returns NULL 😭
  • 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 πŸ’–βœ¨πŸ¦‹