audit_detect_machine(3)

audit_detect_machine3

Detects the current machine type

Usage

#include <libaudit.h>

int audit_detect_machine(void);

Overview

audit_detect_machine queries uname and converts the kernel machine string to an enum value defined in machine_t. The machine type is needed for any use of the audit_name_to_syscall function.

Return value

Returns -1 if an error occurs; otherwise, the return value is the machine's type.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0–6.0
  2. 7–11
  3. 12–13
  4. 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.