---
name: "acl_equiv_mode_np"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/acl_equiv_mode_np"
---

# acl\_equiv\_mode\_np(3)

check if ACL can be represented as UNIX permissions

## NAME

**acl\_equiv\_mode\_np** – check if ACL can be represented as UNIX permissions

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

**#include \<sys/types.h\>**

**#include \<sys/acl.h\>**

*int*\

**acl\_equiv\_mode\_np**(*acl\_t acl*, *mode\_t\* mode\_p*);

## DESCRIPTION

The **acl\_equiv\_mode\_np**() function is a non-portable call which checks that entries contained in the *acl* argument use only the ACL\_USER\_OBJ, ACL\_GROUP\_OBJ, and ACL\_OTHER tag types, and that permissions contained in these entries consist only of ACL\_READ, ACL\_WRITE and ACL\_EXECUTE. If the check succeeds, the ACL can be represented as traditional UNIX file permissions bits set.

If *mode\_p* is not NULL and the check succeeds, the function fills the argument with a mode value corresponding to permissions contained in the ACL.

## RETURN VALUES

Upon successful completion, the function returns 0 if the ACL can be represented as UNIX permissions and 1 if it is not possible. Otherwise, a value of *-1* is returned, and *errno* is set to indicate the error.

## ERRORS

If any of the following conditions occur, the **acl\_equiv\_mode\_np**() function returns a value of *-1* and set *errno* to the corresponding value:

- \[EINVAL\]

  Argument *acl* does not point to a valid ACL.

## SEE ALSO

[acl(3)](/acl/3.md), [acl\_from\_mode\_np(3)](/acl_from_mode_np/3.md), [posix1e(3)](/posix1e/3.md)

## STANDARDS

POSIX.1e is described in IEEE POSIX.1e draft 17. Discussion of the draft continues on the cross-platform POSIX.1e implementation mailing list. To join this list, see the FreeBSD POSIX.1e implementation page for more information.

## HISTORY

POSIX.1e support was introduced in FreeBSD 4.0, and development continues.

## AUTHORS

Gleb Popov
