ACL_CHECK(3) Library Functions Manual ACL_CHECK(3)

convert an ACL error code to a text message

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

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

const char *
acl_error(int code);

The acl_error() function converts an ACL error code such as returned by the 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.
“Multiple entries”
“Duplicate entries”
“Missing or wrong entry”
“Invalid entry type”

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

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

acl_check(3), acl_valid(3), acl(5)

Written by Andreas Gruenbacher ⟨⟩.
March 23, 2002 Linux ACL