audit_name_to_syscall(3)

audit_name_to_syscall3

Convert the syscall name to the numeric syscall value

Usage

#include <libaudit.h>

int audit_name_to_syscall(const char *sc, int machine);

Overview

audit_name_to_syscall() converts the syscall name to the numeric syscall value. sc is the syscall name. machine is the enum value of the machine type defined in machine_t. machine can be obtained by calling audit_detect_machine(3).

Return value

Returns -1 if an error occurs; otherwise, the return value is the numeric syscall value.

Releases

Unchanged in 3 releases since Debian 12 (Bookworm).

  1. 12–Arch

Author

Steve Grubb

From audit 4.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.