ACL_CLEAR_FLAGS_NP(3)
π acl_clear_flags_np(3) π
okay so bestie, this is the manual for acl_clear_flags_np β it lives in the Standard C Library (libc, -lc), and it's giving "niche but important" energy. The page itself was last updated on Debian, October 30, 2014, and we'll circle back to that at the very end, mwah π
β¨ SYNOPSIS β¨
#include <sys/types.h>
#include <sys/acl.h>
int
acl_clear_flags_np(acl_flagset_t flagset_d);
π¦ DESCRIPTION π¦
So like, acl_clear_flags_np() is a non-portable call β meaning it's not POSIX-standard, just so we're clear β and what it does is nuke all the NFSv4 ACL flags from the flagset you pass in as flagset_d. Literally wipes them out. Gone. No flags left. π
π RETURN VALUES π
Returns 0 if everything's gucci. β¨
If it fails, you get -1 back and the global variable errno gets set to tell you what went wrong. Simple as.
πΈ ERRORS πΈ
The function fails β like, actually throws hands β if:
[EINVAL]β Argumentflagset_dis not a valid descriptor for a flagset. Basically you handed it something sus and it's not having it. π
π«Ά SEE ALSO π«Ά
acl(3)acl_add_flag_np(3)acl_delete_flag_np(3)acl_get_flagset_np(3)acl_set_flagset_np(3)posix1e(3)
π STANDARDS π
POSIX.1e is described in IEEE POSIX.1e draft 17. That's the lore. π
π HISTORY π
POSIX.1e support was introduced in FreeBSD 4.0. The acl_clear_flags_np() function itself was added in FreeBSD 5.0. So it's been doing its thing for a minute. β³
β AUTHORS β
The acl_clear_flags_np() function was written by Edward Tomasz Napierala <trasz@FreeBSD.org>. Respect the icon who coded it. π«‘
and that's the whole vibe, bestie β this page is from Debian, dated October 30, 2014, and it's all about acl_clear_flags_np(3). k bye! ππ
π¦ 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