Copy an ACL from system space to user space
#include <sys/acl.h> ssize_t acl_copy_ext( void *buf_p, acl_t acl, ssize_t size );
- A pointer to the buffer that you want to copy the ACL into.
- The ACL that you want to copy.
- The size of the buffer pointed to by buf_p, in bytes.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The acl_copy_ext() function copies an access control list from system-managed space to the user-managed buffer pointed to by buf_p. You can call acl_size() to determine the size of buffer needed.
The number of bytes placed in the buffer, or -1 if an error occurred ( errno is set).
- The size argument is smaller than the size of the contiguous, persistent form of the ACL, acl doesn't point to a valid ACL, or the ACL contains some improperly formed entries.
This function is based on the withdrawn POSIX draft P1003.1e.
Last modified: 2013-12-23