acl_get_flag_np3
Check if a flag is set in a flagset
Usage
#include <sys/types.h>
#include <sys/acl.h>
int
acl_get_flag_np(acl_flagset_t flagset_d, acl_flag_t flag);
Library
Standard C Library (libc, -lc)
Overview
The acl_get_flag_np() function is a non-portable function that checks if a NFSv4 ACL flag is set in a flagset.
Return values
If the flag in flag is set in the flagset flagset_d, a value of 1 is returned, otherwise a value of 0 is returned.
Errors
If any of the following conditions occur, the acl_get_flag_np() function will return a value of -1 and set global variable errno to the corresponding value:
- [EINVAL]
-
Argument flag does not contain a valid ACL flag or argument flagset_d is not a valid ACL flagset.
Releases
39 releases since FreeBSD 8.0-RELEASE; the text changed 25 times.