ACL_GET_BRAND_NP(3)
π ACL_GET_BRAND_NP(3) π
okay so this is from the Library Functions Manual β welcome to the group chat, bestie. Weβre talking about ACL_GET_BRAND_NP(3) and itβs giving very specific little ACL energy. π«Ά
πΈ NAME πΈ
acl_get_brand_np β retrieve the ACL brand from an ACL entry, periodt.
π«Ά LIBRARY π«Ά
It lives in the Standard C Library (libc, -lc), no cap.
β¨ SYNOPSIS β¨
#include <sys/types.h>
#include <sys/acl.h>
int
acl_get_brand_np(acl_t acl, int *brand_p);
π DESCRIPTION π
Okay so acl_get_brand_np() is a non-portable call that gets the ACL brand for the ACL acl. When it succeeds, the location that the argument brand_p points to gets set to the ACL brand of the ACL acl. Slay. β¨
Branding is an internal mechanism intended to prevent mixing POSIX.1e and NFSv4 entries by mistake. Itβs also used by the libc to determine how to print out the ACL. π
The first call to a function thatβs specific to one particular brand β POSIX.1e or NFSv4 β βbrandsβ the ACL. After that, calling a function specific to another brand will result in an error. So yeah, the ACL picks a lane and lowkey commits to it. π
π RETURN VALUES π
The acl_get_brand_np() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. Thatβs the whole tea. π
π ERRORS π
The acl_get_brand_np() function fails if:
[EINVAL]β Argumentacldoes not point to a valid ACL. Not valid, not cute, we donβt stan. π ββοΈ
π¦ SEE ALSO π¦
Go peek, iykyk. π
β STANDARDS β
POSIX.1e is described in IEEE POSIX.1e draft 17. Very official, very demure. π
π HISTORY π
POSIX.1e support was introduced in FreeBSD 4.0. The acl_get_brand_np() function was added in FreeBSD 8.0. A little lore for you. π
π AUTHORS π
The acl_get_brand_np() function was written by Edward Tomasz Napierala <trasz@FreeBSD.org>. Iconic. π
π sign-off: Debian Β· June 25, 2009 Β· page ACL_GET_BRAND_NP(3) π
π¦ 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