acl_free() — Release memory allocated to an ACL data object

Standards

Standards / Extensions C or C++ Dependencies

z/OS UNIX

both z/OS V1R3

Format

#define _OPEN_SYS	1
#include <sys/acl.h>

int     acl_free (lacl_t acl_d);

General description

Use access control lists (ACLs) in conjunction with permission bits to control access to files and directories. Currently, ACLs are supported by the HFS, TFS, and zFS file systems. You must know whether your security product supports ACLs and what rules are used when determining file access. See z/OS UNIX System Services Planning for details.

The acl_free() function frees any releasable memory currently allocated to the ACL data object identified by acl_d. Use of the object reference pointed to by acl_d after the memory has been released is undefined.

Returned value

Upon successful completion, the function returns a value of zero.

If any of the following conditions occur, the acl_free() function returns -1 and sets errno to the corresponding value:

Error Code
Description
EINVAL
The value of the acl_d argument is not valid.

Related information