ACL_ENTRIES(3)
π ACL_ENTRIES(3) π
okay bestie, pull up a chair, we're doing a Library Functions Manual moment and honestly? this one is a little icon. it's acl_entries from the Linux Access Control Lists library (that's libacl, link it with -lacl) π
πΈ NAME πΈ
acl_entries β return the number of entries in an ACL β¨
no cap, that's literally the whole job. it counts the entries in an ACL. she's simple, she's effective, she ate π
π¦ LIBRARY π¦
Linux Access Control Lists library β libacl, -lacl. that's your girl. link against her or she will not show up, fr fr π«Ά
β¨ SYNOPSIS β¨
#include <sys/types.h>
#include <acl/libacl.h>
int
acl_entries(acl_t acl);
okay so you gotta pull in <sys/types.h> first, then <acl/libacl.h> β order matters, bestie, don't be chaotic about it π then you call her with one acl_t and she hands you back an int. that's the whole vibe.
π DESCRIPTION π
so the acl_entries() function returns the number of ACL entries that are contained in the ACL referred to by the argument acl.
that's it. that's the function. she counts. she reports. she slays. no side quests, no plot twists, no main character drama β just a number π₯
π RETURN VALUE π
- success β
acl_entries()returns the number of entries inaclβ - not success β the value
-1is returned, and the global variableerrnois set to indicate the error π
so like, always check for -1 before you get too excited, okay? she will tell you when something's wrong, but only through errno. that's her love language.
π ERRORS π
if any of these conditions happen, acl_entries() returns -1 and sets errno to the matching value:
[EINVAL]β the argumentaclis not a valid pointer to an ACL π
lowkey important: hand her a garbage pointer and she's not gonna be nice about it.EINVAL,-1, done. no cap.
π§ STANDARDS π§
this one is a non-portable, Linux specific extension to the ACL manipulation functions defined in IEEE Std 1003.1e draft 17 β aka "POSIX.1e" β which, and I cannot stress this enough, was abandoned π
so like... yes she's serving, yes she's iconic, but she does not travel. don't expect her to show up on other systems, because she won't. portability girlies, this is your warning π«Ά
π SEE ALSO π
acl(5)π
πΈ AUTHOR πΈ
Written by Andreas Gruenbacher <andreas.gruenbacher@gmail.com>. thank you for your service king π
and that's the whole page, bestie!! this was the Linux ACL manual, dated March 23, 2002, filed under ACL_ENTRIES(3) β go forth and count your entries, you've got this π
β¨ππ¦
π¦ where this page comes from
- alpine 3.22: acl-doc 2.3.2-r1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- alpine 3.23: acl-doc 2.3.2-r1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- alpine 3.24: acl-doc 2.3.2-r1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- arch rolling: acl 2.4.0-1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- centos-stream 10: libacl-devel 2.4.0-2.el10 Β· LGPL-2.1-or-later
- centos-stream 9: libacl-devel 2.4.0-2.el9 Β· LGPLv2+
- centos-stream 9: libacl-devel 2.4.0-2.el9 Β· LGPLv2+
- debian bookworm: libacl1-dev 2.3.1-3
- debian trixie: libacl1-dev 2.3.2-2+b1
- fedora 43: libacl-devel 2.3.2-4.fc43 Β· LGPL-2.1-or-later
- fedora 43: libacl-devel 2.3.2-4.fc43 Β· LGPL-2.1-or-later
- fedora 43: libacl-devel 2.4.0-1.fc43 Β· LGPL-2.1-or-later
- fedora 43: libacl-devel 2.4.0-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libacl-devel 2.3.2-6.fc44 Β· LGPL-2.1-or-later
- fedora 44: libacl-devel 2.3.2-6.fc44 Β· LGPL-2.1-or-later
- fedora 44: libacl-devel 2.4.0-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: libacl-devel 2.4.0-1.fc44 Β· LGPL-2.1-or-later
- nixpkgs unstable: acl 2.4.0
- opensuse-leap 16.0: libacl-devel 2.4.0-160000.1.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libacl-devel 2.4.0-160000.1.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libacl-devel 2.4.0-160000.1.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libacl-devel 2.4.0-160000.1.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu jammy: libacl1-dev 2.3.1-1
- ubuntu noble: libacl1-dev 2.3.2-1build1
- ubuntu noble: libacl1-dev 2.3.2-1build1.1
- ubuntu resolute: libacl1-dev 2.3.2-2
- ubuntu stonking: libacl1-dev 2.4.0-1
- (C) 2002 Andreas Gruenbacher, <andreas.gruenbacher@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms