1ACL_COPY_ENTRY(3)        BSD Library Functions Manual        ACL_COPY_ENTRY(3)
2

NAME

4     acl_copy_entry — copy an ACL entry
5

LIBRARY

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

SYNOPSIS

10     #include <sys/types.h>
11     #include <sys/acl.h>
12
13     int
14     acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d);
15

DESCRIPTION

17     The acl_copy_entry() function copies the contents of the ACL entry indi‐
18     cated by the src_d descriptor to the existing ACL entry indicated by the
19     dest_d descriptor. The src_d and dest_d descriptors may refer to entries
20     in different ACLs.
21

RETURN VALUE

23     The acl_copy_entry() function returns the value 0 if successful; other‐
24     wise the value -1 is returned and the global variable errno is set to in‐
25     dicate the error.
26

ERRORS

28     If any of the following conditions occur, the acl_copy_entry() function
29     returns -1 and sets errno to the corresponding value:
30
31     [EINVAL]           The argument src_d or dest_d is not a valid descriptor
32                        for an ACL entry.
33
34                        The arguments src_d and dest_d reference the same ACL
35                        entry.
36

STANDARDS

38     IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned)
39

SEE ALSO

41     acl_get_entry(3), acl(5)
42

AUTHOR

44     Derived from the FreeBSD manual pages written by Robert N M Watson
45     <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
46     <andreas.gruenbacher@gmail.com>.
47
48Linux ACL                       March 23, 2002                       Linux ACL
Impressum