ACL\_CHECK(3) Library Functions Manual ACL\_CHECK(3)

# [NAME](#NAME)

`acl_error` — convert an ACL error code to a text message

# [LIBRARY](#LIBRARY)

Linux Access Control Lists library (libacl, -lacl).

# [SYNOPSIS](#SYNOPSIS)

`#include <sys/types.h>`  
`#include <acl/libacl.h>`

`const char *`  
`acl_error`(`int code`);

# [DESCRIPTION](#DESCRIPTION)

The [`acl_error`](#acl_error)() function converts an ACL error code such as returned by the [`acl_check`](#acl_check)() function to a text message describing the error condition. In the “POSIX” locale, `acl_check`() returns the following descriptions for the error codes.

ACL\_MULTI\_ERROR

“Multiple entries”

ACL\_DUPLICATE\_ERROR

“Duplicate entries”

ACL\_MISS\_ERROR

“Missing or wrong entry”

ACL\_ENTRY\_ERROR

“Invalid entry type”

# [RETURN VALUE](#RETURN_VALUE)

The `acl_error`() function returns a text message if the error code is recognized, and a value of `(const char *)NULL` otherwise.

# [STANDARDS](#STANDARDS)

This is a non-portable, Linux specific extension to the ACL manipulation functions defined in IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned).

# [SEE ALSO](#SEE_ALSO)

[acl\_check(3)](/man/os/acl/acl_check.3), [acl\_valid(3)](/man/os/acl/acl_valid.3), [acl(5)](/man/os/acl/acl.5)

# [AUTHOR](#AUTHOR)

Written by Andreas Gruenbacher ⟨andreas.gruenbacher@gmail.com⟩.

March 23, 2002 Linux ACL

---

Document: acl_error(3) from acl 2.4.0-r5 (Chainguard OS)
Source: https://git.savannah.nongnu.org/git/acl.git
