---
name: "audit_name_to_errno"
section: "3"
platform: "linux"
package: "audit"
version: "4.2.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/audit_name_to_errno"
---

# audit\_name\_to\_errno(3)

Convert the errno name and the numeric errno value to each other

## NAME

audit\_name\_to\_errno, audit\_errno\_to\_name - Convert the errno name and the numeric errno value to each other

## SYNOPSIS

```
#include <libaudit.h>
```

**int audit\_name\_to\_errno(const char** *\*error***);**

**const char \*audit\_errno\_to\_name(int** *error***);**

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

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

## AUTHOR

Steve Grubb
