Add a permission to an access control list (ACL) permissions set
#include <sys/acl.h> int acl_add_perm( acl_permset_t permset_d, acl_perm_t perm );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The acl_add_perm() function adds a permission to an ACL permissions set.
0, 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 |