ACL_GET_FLAGSET_NP(3)
π ACL_GET_FLAGSET_NP(3) β the Library Functions Manual page, bestie edition
okay so this is acl_get_flagset_np, from section 3 of the Library Functions Manual, and it's genuinely such a handy little vibe check for your NFSv4 ACL entries π¦
β¨ NAME β¨
acl_get_flagset_np β retrieve flagset from an NFSv4 ACL entry
π LIBRARY π
Standard C Library (libc, -lc) β she's built right in, no extra shopping trip required π
π«Ά SYNOPSIS π«Ά
#include <sys/types.h>
#include <sys/acl.h>
int
acl_get_flagset_np(acl_entry_t entry_d, acl_flagset_t *flagset_p);
πΈ DESCRIPTION πΈ
So acl_get_flagset_np() is a non-portable call (iykyk β it's a _np function, she does not promise to exist everywhere, periodt). What she does is return, via flagset_np_p, a descriptor to the flagset inside the NFSv4 ACL entry entry_d.
And here's the cute part: any operations you do afterwards using that returned flagset are literally operating on the flagset within the ACL entry β same flagset, not a copy π«
π RETURN VALUES π
- Returns the value
0if it slayed (i.e. succeeded) π - Otherwise it returns the value
-1, and the global variableerrnogets set to tell you exactly what went wrong π
π₯ ERRORS π₯
It fails β like, actually fails β if:
[EINVAL]β the argumententry_dis not a valid descriptor for an ACL entry. not a real entry, bestie, no flagset for you π
π SEE ALSO π
acl(3), acl_add_flag_np(3), acl_clear_flags_np(3), acl_delete_flag_np(3), acl_set_flagset_np(3), posix1e(3) β the whole friend group fr fr π«Ά
β STANDARDS β
POSIX.1e is described in IEEE POSIX.1e draft 17.
π¦ HISTORY π¦
POSIX.1e support was introduced in FreeBSD 4.0. The acl_get_flagset_np() function was added in FreeBSD 8.0. she's been iconic for a while now π
π AUTHORS π
The acl_get_flagset_np() function was written by Edward Tomasz Napierala <trasz@FreeBSD.org>. king behavior, honestly π
and that's the whole page, no cap π§ this Debian build of the manpage is dated October 30, 2014 β go forth and go get those flagsets, bestie, you're gonna eat ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2008, 2009 Edward Tomasz Napierala
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms