acl_set_flagset_np3
Set the flags of an acl or acl entry
Usage
#include <sys/types.h>
#include <sys/acl.h>
int
acl_set_flagset_np(void *obj, acl_flagset_t flagset_d);
Library
Standard C Library (libc, -lc)
Overview
The acl_set_flagset_np() function is a nonstandard extension that sets the permissions of the ACL or ACL entry obj with the flags contained in flagset_d.
Return values
The acl_set_flagset_np() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.
Errors
The acl_set_flagset_np() function fails if:
- [EINVAL]
-
Argument obj is not a valid descriptor for an ACL or ACL entry. Argument flagset_d is not a valid flagset for obj.
Releases
135 releases since Mac OS X 10.4; the text changed 1 time.