---
name: "acl_copy_entry"
section: "3"
platform: "macos"
package: "Libc"
version: "1752.120.2"
release: "macOS 26.5"
platforms: ["linux", "freebsd", "macos"]
url: "https://new.carta.tech/acl_copy_entry"
---

# acl\_copy\_entry(3)

copy an ACL entry to another ACL entry

## NAME

**acl\_copy\_entry** – copy an ACL entry to another ACL entry

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

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

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

*int*\

**acl\_copy\_entry**(*acl\_entry\_t dest\_d*, *acl\_entry\_t src\_d*);

## DESCRIPTION

The **acl\_copy\_entry**() function is a POSIX.1e call that copies the contents of ACL entry *src\_d* to ACL entry *dest\_d*.

## RETURN VALUES

The **acl\_copy\_entry()** function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

## ERRORS

The **acl\_copy\_entry**() function fails if:

- \[EINVAL\]

  Argument *src\_d* or *dest\_d* is not a valid descriptor for an ACL entry, or arguments *src\_d* and *dest\_d* reference the same ACL entry.

## SEE ALSO

[acl(3)](/acl/3.md), [acl\_get\_entry(3)](/acl_get_entry/3.md), [posix1e(3)](/posix1e/3.md)

## STANDARDS

POSIX.1e is described in IEEE POSIX.1e draft 17.

## AUTHORS

Michael Smith Chris D Fulhaber
