1ACL_ENTRIES(3) BSD Library Functions Manual ACL_ENTRIES(3)
2
4 acl_entries — return the number of entries in an ACL
5
7 Linux Access Control Lists library (libacl, -lacl).
8
10 #include <sys/types.h>
11 #include <acl/libacl.h>
12
13 int
14 acl_entries(acl_t acl);
15
17 The acl_entries() function returns the number of ACL entries that are
18 contained in the ACL referred to by the argument acl.
19
21 The acl_entries() function returns the number of entries in acl if suc‐
22 cessful; otherwise the value -1 is returned and the global variable errno
23 is set to indicate the error.
24
26 If any of the following conditions occur, the acl_entries() function
27 returns -1 and sets errno to the corresponding value:
28
29 [EINVAL] The argument acl is not a valid pointer to an ACL.
30
32 This is a non-portable, Linux specific extension to the ACL manipulation
33 functions defined in IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned).
34
36 acl(5)
37
39 Written by Andreas Gruenbacher <a.gruenbacher@bestbits.at>.
40
41Linux ACL March 23, 2002 Linux ACL