ACL_CMP_NP(3)
π ACL_CMP_NP(3)
okay bestie, welcome to acl_cmp_np from the Library Functions Manual β yes the manual name is part of the vibe, we're keeping it, and no we're not skipping a single line π
β¨ NAME β¨
acl_cmp β compare between two ACLs π«Ά
(and yes, the function itself is spelled acl_cmp_np β the manpage said acl_cmp up top and we're not editing the original, so both live here, periodt)
π LIBRARY π
Standard C Library (libc, -lc) β she's built in, she's iconic, she's literally load-bearing π
πΈ SYNOPSIS πΈ
#include <sys/types.h>
#include <sys/acl.h>
int
acl_cmp_np(acl_t acl1, acl_t acl2);
π¦ DESCRIPTION π¦
so acl_cmp_np() is a non-portable call β meaning it's a FreeBSD-flavored bonus, not the portable POSIX thing β and what it does is check whether the ACLs pointed to by acl1 and acl2 are equivalent β¨
and "equivalent" here is not vibes-based, ngl. The two ACLs are considered equal when they contain the same entries with matching tag types, qualifiers and permissions. that's the whole check. same entries, same tag types, same qualifiers, same permissions β they match. anything off β they don't. π
π RETURN VALUES π
- returns
0if the given ACLs are equivalent π - returns
1if they differ π - otherwise, the value
-1is returned, anderrnoindicates the error π
like, successful completion still gives you a 1 for "not equal" β that's not an error, that's just the answer, bestie.
π₯ ERRORS π₯
If any of the following conditions occur, acl_cmp_np() shall return a value of -1 and set errno to the corresponding value:
[EINVAL]β Either first or second argument does not point to a valid ACL. π iykyk, pass a real ACL, not a cursed pointer.
π SEE ALSO π
go read those, they're the supporting cast and they ate π
β STANDARDS β
POSIX.1e is described in IEEE POSIX.1e draft 17. Discussion of the draft continues on the cross-platform POSIX.1e implementation mailing list. To join this list, see the FreeBSD POSIX.1e implementation page for more information. π§
π HISTORY π
POSIX.1e support was introduced in FreeBSD 4.0, and development continues. she's been on the scene for a minute and she's still going β¨
π AUTHORS π
Gleb Popov β thank you for your service π«Ά
and that's the whole page, no cap, nothing skipped, every flag-less signature and every errno accounted for π
this little number is from the Debian build, dated January 20, 2021 β mwah, catch you in the next manpage π π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2021 Gleb Popov
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms