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

NAME

4     acl_entries — return the number of entries in an ACL
5

LIBRARY

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

SYNOPSIS

10     #include <sys/types.h>
11     #include <acl/libacl.h>
12
13     int
14     acl_entries(acl_t acl);
15

DESCRIPTION

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

RETURN VALUE

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

ERRORS

26     If any of the following conditions occur, the acl_entries() function re‐
27     turns -1 and sets errno to the corresponding value:
28
29     [EINVAL]           The argument acl is not a valid pointer to an ACL.
30

STANDARDS

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

SEE ALSO

36     acl(5)
37

AUTHOR

39     Written by Andreas Gruenbacher <andreas.gruenbacher@gmail.com>.
40
41Linux ACL                       March 23, 2002                       Linux ACL
Impressum