ACL_DELETE_FLAG_NP(3)
π acl_delete_flag_np(3) β like, the whole manual page, bestie
okay so this is a page from the Library Functions Manual, section 3 β the acl_delete_flag_np joint. sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
acl_delete_flag_np β delete flags from a flagset. that's it, that's the whole vibe. it removes stuff. icon behavior tbh π
π LIBRARY π
Standard C Library (libc, -lc). the classic. the blueprint. no cap. π
π«Ά SYNOPSIS π«Ά
#include <sys/types.h>
#include <sys/acl.h>
int
acl_delete_flag_np(acl_flagset_t flagset_d, acl_flag_t flag);
look at her. two includes, one function, zero drama. π¦
πΈ DESCRIPTION πΈ
so the acl_delete_flag_np() function is a non-portable call β meaning pls don't expect it to travel well, she's a homebody β and what she does is she removes specific NFSv4 ACL flags from the flagset flags. literally just yeeting individual flags out of a flagset, one at a time, on purpose. no collateral damage, she's very precise about it. β¨
no cap, "non-portable" is the key phrase here β that's not me being shady, that's the manpage being honest with you. iykyk. π
π RETURN VALUES π
acl_delete_flag_np() returns the value 0 if successful β slay, we love a clean zero β otherwise the value -1 is returned and the global variable errno is set to indicate the error. so if you see -1, go check errno, she left you a note. π
π ERRORS π
the acl_delete_flag_np() function fails if:
[EINVAL]β Argumentflagset_dis not a valid descriptor for a flagset. Argumentflagdoes not contain a validacl_flag_tvalue.
so like. either the flagset isn't a real flagset, or the flag isn't a real flag. wrong vibe check on one of the args, basically. π
π SEE ALSO π
acl(3)acl_add_flag_np(3)acl_clear_flags_np(3)acl_get_flagset_np(3)acl_set_flagset_np(3)posix1e(3)
the whole friend group fr fr. go read them, they're all doing related things. π«Ά
π STANDARDS π
POSIX.1e is described in IEEE POSIX.1e draft 17. that's the standard, that's the lore, that's the citation. β
π§ HISTORY π§
POSIX.1e support was introduced in FreeBSD 4.0. the acl_delete_flag_np() function was added in FreeBSD 8.0. so she's got lore, she's got a whole origin story, she's been around. π
π AUTHORS π
the acl_delete_flag_np() function was written by Edward Tomasz Napierala <trasz@FreeBSD.org>. give credit where credit is due, bestie, he wrote her. π
aaand that's the page!! π¦ mwah π β this one's from Debian, dated October 30, 2014, and it's the ACL_DELETE_FLAG_NP(3) page, now with 100% more personality and 0% fewer facts. periodt. π
β¨π₯
π¦ 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