Debian Codegraph @

upstream/debian-unstable/man3/audit_detect_machine.3

raw
1 .TH "AUDIT_DETECT_MACHINE" "3" "Oct 2006" "Red Hat" "Linux Audit API"
2 .SH NAME
3 audit_detect_machine \- Detects the current machine type
4 .SH "SYNOPSIS"
5 .nf
6 .B #include <libaudit.h>
7 .PP
8 .BI "int audit_detect_machine(void);"
9 .fi
10
11 .SH "DESCRIPTION"
12
13 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.
14
15 .SH "RETURN VALUE"
16
17 Returns \-1 if an error occurs; otherwise, the return value is the machine's type.
18
19 .SH "SEE ALSO"
20
21 .BR uname (3),
22 .BR audit_name_to_syscall (3).
23
24 .SH AUTHOR
25 Steve Grubb