audit_detect_machine - Man Page

Detects the current machine type

Synopsis

#include <libaudit.h>

int audit_detect_machine(void);

Description

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.

See Also

uname(3), audit_name_to_syscall(3).

Author

Steve Grubb

Referenced By

audit_name_to_syscall(3), audit_syscall_to_name(3).

Oct 2006 Red Hat Linux Audit API