ACL_GET_PERM_NP(3)
π
ACL_GET_PERM_NP(3) β Library Functions Manual
okay bestie, welcome to the acl_get_perm_np(3) page from the Library Functions Manual. this one is a lil non-portable cutie, so let's get into it π
β¨ NAME β¨
acl_get_perm_np β check if a permission is set in a permission set
π LIBRARY π
Standard C Library (libc, -lc) β yes, that libc π«Ά
π«Ά SYNOPSIS π«Ά
#include <sys/types.h>
#include <sys/acl.h>
int
acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm);
π DESCRIPTION π
so the acl_get_perm_np() function is a non-portable function that checks if a permission is set in a permission set. that's the whole vibe check: permission in, permission set in, boolean-ish answer out β¨
π₯ RETURN VALUES π₯
if the permission in perm is set in the permission set permset_d, you get a value of 1. otherwise? you get a value of 0. simple as that, no cap π
π ERRORS π
if any of these conditions happen, acl_get_perm_np() will return a value of -1 and set the global variable errno to the corresponding value:
[EINVAL]β argumentpermdoes not contain a valid ACL permission, or argumentpermset_dis not a valid ACL permset. literally invalid input energy π
π SEE ALSO π
acl(3)acl_add_perm(3)acl_clear_perms(3)acl_delete_perm(3)acl_get_permset(3)acl_set_permset(3)posix1e(3)
π STANDARDS π
POSIX.1e is described in IEEE POSIX.1e draft 17. iconic standards behavior πβ¨
π¦ HISTORY π¦
POSIX.1e support was introduced in FreeBSD 4.0. the acl_get_perm_np() function was added in FreeBSD 5.0. glow-up timeline fr fr π«Ά
π AUTHORS π
the acl_get_perm_np() function was written by Chris D. Faulhaber <jedgar@fxp.org>. we love a credited icon π
π cute lil sign-off: this page is from Debian, dated April 10, 2001, and it's the ACL_GET_PERM_NP(3) manual page β mwah, bestie, go check those permissions ππ¦
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2001 Chris D. Faulhaber
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms