| 1 |
.TH "AUDIT_NAME_TO_ERRNO" "3" "Mar 2022" "Red Hat" "Linux Audit API" |
| 2 |
.SH NAME |
| 3 |
audit_name_to_errno, audit_errno_to_name \- Convert the errno name and the numeric errno value to each other |
| 4 |
.SH "SYNOPSIS" |
| 5 |
.nf |
| 6 |
.B #include <libaudit.h> |
| 7 |
.PP |
| 8 |
.BI "int audit_name_to_errno(const char " *error ); |
| 9 |
.PP |
| 10 |
.BI "const char *audit_errno_to_name(int " error ); |
| 11 |
.fi |
| 12 |
.SH "DESCRIPTION" |
| 13 |
.BR audit_name_to_errno () |
| 14 |
converts the errno name ("EPERM", "ENOENT", "ESRCH", etc.) to the numeric errno value (EPERM, ENOENT, ESRCH, etc.). |
| 15 |
.I error |
| 16 |
is the errno name. |
| 17 |
.PP |
| 18 |
.BR audit_errno_to_name () |
| 19 |
converts the numeric errno value (EPERM, ENOENT, ESRCH, etc.) to the errno name ("EPERM", "ENOENT", "ESRCH", etc.). |
| 20 |
.I error |
| 21 |
is the numeric errno value. |
| 22 |
|
| 23 |
.SH "RETURN VALUE" |
| 24 |
|
| 25 |
.BR audit_name_to_errno () |
| 26 |
returns 0 if an error occurs; otherwise, the return value is the numeric errno value. |
| 27 |
.PP |
| 28 |
.BR audit_errno_to_name () |
| 29 |
returns NULL if an error occurs; otherwise, the return value is the errno name. |
| 30 |
|
| 31 |
.SH AUTHOR |
| 32 |
Steve Grubb |