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 );
libc
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).
This function is based on the withdrawn POSIX draft P1003.1e.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |