1AUDIT_NAME_TO_ERRNO(3) Linux Audit API AUDIT_NAME_TO_ERRNO(3)
2
3
4
6 audit_name_to_errno, audit_errno_to_name - Convert the errno name and
7 the numeric errno value to each other
8
10 #include <libaudit.h>
11
12 int audit_name_to_errno(const char *error);
13
14 const char *audit_errno_to_name(int error);
15
17 audit_name_to_errno() converts the errno name ("EPERM", "ENOENT", "ES‐
18 RCH", etc.) to the numeric errno value (EPERM, ENOENT, ESRCH, etc.).
19 error is the errno name.
20
21 audit_errno_to_name() converts the numeric errno value (EPERM, ENOENT,
22 ESRCH, etc.) to the errno name ("EPERM", "ENOENT", "ESRCH", etc.). er‐
23 ror is the numeric errno value.
24
25
27 audit_name_to_errno() returns 0 if an error occurs; otherwise, the re‐
28 turn value is the numeric errno value.
29
30 audit_errno_to_name() returns NULL if an error occurs; otherwise, the
31 return value is the errno name.
32
33
35 Steve Grubb
36
37
38
39Red Hat Mar 2022 AUDIT_NAME_TO_ERRNO(3)