acl_copy_int()

Copy an ACL from user space to system space

Synopsis:

#include <sys/acl.h>

acl_t acl_copy_int( const void *buf_p );

Since:

BlackBerry 10.0.0

Arguments:

buf_p
A pointer to a buffer that contains an exportable, contiguous, persistent form of the ACL that you want to copy.

Library:

libc

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

Description:

The acl_copy_int() function copies an access control list from user-managed space to system-managed space. When you're finished with the ACL, you should call acl_free() to release it.

Returns:

A pointer to the ACL in working storage, or NULL if an error occurred ( errno is set).

Errors:

EINVAL
The buffer doesn't contain a valid external-form ACL.
ENOMEM
There wasn't enough memory to create the ACL in working storage.
ENOTSUP
The ACL type isn't ACL_TYPE_ACCESS or ACL_TYPE_DEFAULT.

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