Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (1785 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, void *aclbufp); int facl(int fildes, int cmd, int nentries, void *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 types are supported for aclbufp: The following values for cmd are supported: Return ValuesUpon successful completion, acl() and facl() return 0 if cmd is SETACL or ACE_SETACL. If cmd is GETACL, GETACLCNT, ACE_GETACL or ACE_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.11 Last Revised 10 Jan 2007Name | Synopsis | Description | Return Values | Errors | Attributes | See Also |
||||