AUDIT_NAME_TO_ERRNO(3)
π AUDIT_NAME_TO_ERRNO β the audit_name_to_errno(3) glow-up β¨
okay bestie, welcome to section 3 of the Linux Audit API π β this is where we learn that errno names and errno numbers are basically the same girlies in different outfits, and libaudit is the friend who does the outfit swap for you π«Ά
πΈ NAME πΈ
audit_name_to_errno, audit_errno_to_name β converting between the errno name and the numeric errno value, both directions, no cap π
β¨ SYNOPSIS β¨
#include <libaudit.h>
int audit_name_to_errno(const char *error);
const char *audit_errno_to_name(int error);
like. two functions. two directions. one header. slay π
π¦ DESCRIPTION π¦
audit_name_to_errno() takes an errno name β think "EPERM", "ENOENT", "ESRCH", etc. β and converts it into the numeric errno value (EPERM, ENOENT, ESRCH, etc.). the error argument is the errno name, periodt π
audit_errno_to_name() does the whole thing in reverse, main character energy: it takes the numeric errno value (EPERM, ENOENT, ESRCH, etc.) and converts it into the errno name ("EPERM", "ENOENT", "ESRCH", etc.). here the error argument is the numeric errno value πΈ
so one goes name β number, the other goes number β name. it's giving glow-up in both directions β¨
π RETURN VALUE π
audit_name_to_errno()β if something goes wrong it returns0. otherwise the return value is the numeric errno value πaudit_errno_to_name()β if something goes wrong it returnsNULL. otherwise the return value is the errno name π§
bestie listen π0andNULLare the "it didn't work" signals here β check for them or you'll be out here debugging vibes instead of bugs π
π AUTHOR π
Steve Grubb π (iconic behavior, honestly)
that's the whole page, bestie β go forth and translate your errnos π¦
this lil manual page came to you from Red Hat, dated Mar 2022, and it lives in the Linux Audit API corner of the man-page universe β audit_name_to_errno(3), mwah π
π
π¦ where this page comes from
- alpine 3.22: audit-doc 4.0.3-r0 Β· LGPL-2.1-or-later
- 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
- centos-stream 9: audit-libs-devel 3.1.5-9.el9 Β· LGPLv2+
- centos-stream 9: audit-libs-devel 3.1.5-9.el9 Β· LGPLv2+
- debian bookworm: libaudit-dev 1:3.0.9-1 Β· GPL-2.0-only
- debian trixie: libaudit-dev 1:4.0.2-2+deb13u1 Β· GPL-2.0-only
- 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
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu noble: libaudit-dev 1:3.1.2-2.1build1 Β· GPL-2.0-only
- ubuntu noble: libaudit-dev 1:3.1.2-2.1ubuntu0.1 Β· GPL-2.0-only
- ubuntu questing: libaudit-dev 1:4.0.5-1build1
- ubuntu resolute: libaudit-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libaudit-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libaudit-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