Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

audit_detect_machine - Detects the current machine type

Author

Steve Grubb Red Hat Oct 2006 AUDIT_DETECT_MACHINE(3)

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.

Name

audit_detect_machine - Detects the current machine type

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).

Synopsis

#include<libaudit.h> int audit_detect_machine(void);

See Also