logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

audit_name_to_errno, audit_errno_to_name - Convert the errno name and the numeric errno value to each

Author

Steve Grubb Red Hat Mar 2022 AUDIT_NAME_TO_ERRNO(3)

Description

audit_name_to_errno() converts the errno name ("EPERM", "ENOENT", "ESRCH", etc.) to the numeric errno value (EPERM, ENOENT, ESRCH, etc.). error is the errno name. audit_errno_to_name() converts the numeric errno value (EPERM, ENOENT, ESRCH, etc.) to the errno name ("EPERM", "ENOENT", "ESRCH", etc.). error is the numeric errno value.

Name

audit_name_to_errno, audit_errno_to_name - Convert the errno name and the numeric errno value to each other

Return Value

audit_name_to_errno() returns 0 if an error occurs; otherwise, the return value is the numeric errno value. audit_errno_to_name() returns NULL if an error occurs; otherwise, the return value is the errno name.

Synopsis

#include<libaudit.h>intaudit_name_to_errno(constchar*error);constchar*audit_errno_to_name(interror);

See Also