ACL_CLEAR_FLAGS_NP(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… 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] β€” Argument flagset_d is not a valid descriptor for a flagset. Basically you handed it something sus and it's not having it. πŸ™ˆ

🫢 SEE ALSO 🫢


πŸ‘‘ 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