Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (748 KB)
acl(2)NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO NAME
SYNOPSIS
#include <sys/acl.h>int acl(char * pathp, int cmd, int nentries, aclent_t * aclbufp); int facl(int fildes, int cmd, int nentries, aclent_t * aclbufp); DESCRIPTION
The acl() and facl() functions get or set the ACL of a file whose name is given by pathp or referenced by the open file descriptor fildes . The nentries argument specifies how many ACL entries fit into buffer aclbufp . The acl() function is used to manipulate ACL on file system objects. The following values for cmd are supported: RETURN VALUESUpon successful completion, acl() and facl() return 0 if cmd is SETACL . If cmd is GETACL or GETACLCNT , the number of ACL entries is returned. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The acl() function will fail if: ATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSOSunOS 5.7 Last Revised 18 Mar 1996NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO |
||||