ACL_FROM_TEXT(3) | Library Functions Manual | ACL_FROM_TEXT(3) |
acl_from_text
—
#include <sys/types.h>
#include <sys/acl.h>
acl_t
acl_from_text
(const
char *buf_p);
acl_from_text
() function converts the text form of
an ACL referred to by buf_p into the internal working
structure for ACLs, appropriate for applying to files or manipulating.
This function may cause memory to be allocated. The caller should free any releasable memory, when the new ACL is no longer required, by calling acl_free(3) with the (void *)acl_t as an argument.
acl_from_text
() function shall return a value of
(acl_t)NULL and set errno to the
corresponding value:
acl_from_text
() and
acl_to_text
() functions rely on the
getpwent(3) library calls to
manage username and uid mapping, as well as the
getgrent(3) library calls to
manage groupname and gid mapping. These calls are not thread safe, and so
transitively, neither are acl_from_text
() and
acl_to_text
(). These functions may also interfere with
stateful calls associated with the getpwent
() and
getgrent
() calls.
January 28, 2000 | NetBSD 10.0 |