acl_get_perm_np()

Test whether a given permission is present in an ACL permissions set

Synopsis:

#include <sys/acl.h>

int acl_get_perm_np( acl_permset_t const permset_d,
                     acl_perm_t const perm );

Arguments:

permset_d
The permissions set that you want to check.
perm
The permission you want to test.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The acl_get_perm_np() function tests whether the given permission is present in a permissions set. The “np” in the function's name stands for “non-POSIX.”

Returns:

1
The permission is present in the permissions set.
0
The permission isn't present in the permissions set.
-1
An error occurred (errno is set).

Errors:

EINVAL
The perm argument isn't a valid permission within an ACL entry.

Classification:

QNX Neutrino

This function is based on the withdrawn POSIX draft P1003.1e.

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes