getacl.2 (2010 09)
g
getacl(2) getacl(2)
[EINVAL] nentries is non-zero and less than the number of entries in the file’s ACL, or it is
greater than
NACLENTRIES.
[ENOSYS] The function is not supported by this file system type.
[ENFILE] The system file table is full.
EXAMPLES
The following call returns the number of entries in the ACL on file
/users/bill/mcfile
.
#include <sys/acl.h>
entries = getacl ("/users/bill/mcfile", 0, (struct acl_entry ∗) 0);
The following call returns in acl all entries in the ACL on the file opened with file descriptor 5.
#include <sys/acl.h>
int nentries;
struct acl_entry acl [NACLENTRIES];
entries = fgetacl (5, NACLENTRIES, acl);
DEPENDENCIES
getacl() and fgetacl() are only supported on HFS file system on standard HP-UX operating sys-
tem.
AUTHOR
getacl() and fgetacl() were developed by HP.
SEE ALSO
access(2), chmod(2), getaccess(2), setacl(2), stat(2), privileges(5), unistd(5).
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010