AUDIT_NAME_TO_SYSCALL(3)
π AUDIT_NAME_TO_SYSCALL β the girlies' guide to turning syscall names into numbers π
okay bestie, so this is audit_name_to_syscall(3), part of the Linux Audit API, and she's a section 3 library function. she does exactly one thing and she does it flawlessly: you hand her a syscall name, she hands you back the numeric syscall value. that's it. that's the whole personality. and honestly? iconic. β¨
πΈ NAME πΈ
audit_name_to_syscall β convert the syscall name to the numeric syscall value π
like, you say "open", she says a number. matchmaker behavior fr fr.
π SYNOPSIS π
#include <libaudit.h>
int audit_name_to_syscall(const char *sc, int machine);
yes queen, just two little arguments. no drama. π¦
β¨ DESCRIPTION β¨
so here's the tea, bestie. audit_name_to_syscall() converts the syscall name to the numeric syscall value. she takes your cute little string and turns it into a number for you. no cap.
scβ this is the syscall name. the string. the name itself. πmachineβ this is the enum value of the machine type, and it's defined inmachine_t.
and the way you get that machine value? you call audit_detect_machine(3). she'll figure out what machine you're on and hand you the enum so you can pass it straight in here. teamwork, periodt. π«Ά
π₯ RETURN VALUE π₯
- Returns
-1if an error occurs π - Otherwise, the return value is the numeric syscall value π
so like, vibe check your return value. if it's -1, something went sideways. if it's a number, slay, you got your syscall. π
π SEE ALSO π
audit_syscall_to_name(3)β the reverse queen, number β nameaudit_detect_machine(3)β the one who tells you your machine type
π AUTHOR π
Steve Grubb π
and that's the whole page, bestie! this little baddie shipped from Red Hat, dated Nov 2021. go convert some syscall names, you've got this. 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 jammy: libaudit-dev 1:3.0.7-1build1 Β· GPL-2.0-only
- ubuntu jammy: libaudit-dev 1:3.0.7-1ubuntu0.1 Β· GPL-2.0-only
- 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