1ACL_COPY_ENTRY(3) BSD Library Functions Manual ACL_COPY_ENTRY(3)
2
4 acl_copy_entry — copy an ACL entry
5
7 Linux Access Control Lists library (libacl, -lacl).
8
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
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
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
25 indicate the error.
26
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
38 IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned)
39
41 acl_get_entry(3), acl(5)
42
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 <a.gruenbacher@bestbits.at>.
47
48Linux ACL March 23, 2002 Linux ACL