| Updated: October 28, 2024 |
Create an entry in an access control list
#include <sys/acl.h>
int acl_create_entry( acl_t *acl_p,
acl_entry_t *entry_p );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The acl_create_entry() function creates a new entry in an access control list. The new entry is initialized as follows:
The ACL entry's pointer returned by acl_create_entry() becomes invalid after calling these functions:
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 |