acl_dup()

Duplicate an access control list (ACL) in a working storage area

Synopsis:

#include <sys/acl.h>

acl_t acl_dup( acl_t acl );

Since:

BlackBerry 10.0.0

Arguments:

acl
A pointer to the ACL that you want to duplicate.

Library:

libc

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

Description:

The acl_dup() function duplicates an access control list in a working storage area. When you no longer need the new ACL, call acl_free() to release it.

Returns:

A pointer to the copy, or NULL if an error occurred ( errno is set).

Errors:

EINVAL
The acl argument doesn't point to a valid ACL.
ENOMEM
Not enough memory.

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

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus