ACL_DELETE_ENTRY(3)
π ACL_DELETE_ENTRY(3) π
okay bestie, this page is from the Library Functions Manual, and itβs all about deleting an ACL entry from an ACL. yes maβam, the unlink-but-for-ACLs energy is real. π
β¨ NAME β¨
acl_delete_entry, acl_delete_entry_np β delete an ACL entry from an ACL. literally the whole point of this page, and she ate. π«Ά
π LIBRARY π
Standard C Library (libc, -lc) β thatβs the library, bestie. no cap. π
π§Ύ SYNOPSIS π§Ύ
#include <sys/types.h>
#include <sys/acl.h>
int
acl_delete_entry(acl_t acl, acl_entry_t entry_d);
int
acl_delete_entry_np(acl_t acl, int index);
π DESCRIPTION π
The acl_delete_entry() function is a POSIX.1e call that removes the ACL entry entry_d from ACL acl. periodt. π
The acl_delete_entry_np() function is a non-portable version that removes the ACL entry at position index from ACL acl. yes, sheβs the _np icon, and she comes with a little βnon-portableβ warning label. π¦
Positions are numbered starting from zero, i.e. calling acl_delete_entry_np() with the index argument equal to zero will remove the first ACL entry. so index 0 is giving βfirst entry, you are OUT.β πβ¨
π RETURN VALUES π
The acl_delete_entry() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.
so: 0 = slay, -1 = check errno, bestie. π«Ά
π ERRORS π
The acl_delete_entry() function fails if:
[EINVAL]β Argumentacldoes not point to a valid ACL. Argumententry_dis not a valid descriptor for an ACL entry inacl. Argumentindexis out of bounds.
yeah, all three of those live under [EINVAL], and none of them are cute. π
π SEE ALSO π
go read these next when youβre done here, iykyk. πΈ
π STANDARDS π
POSIX.1e is described in IEEE POSIX.1e draft 17. iconic spec behavior, fr fr. π
π°οΈ HISTORY π°οΈ
POSIX.1e support was introduced in FreeBSD 4.0. The acl_delete_entry() function was added in FreeBSD 5.0.
look at her growing up across releases. π₯Ήβ¨
ποΈ AUTHORS ποΈ
The acl_delete_entry() function was written by Chris D. Faulhaber <jedgar@fxp.org>.
shoutout to the author, bestie wrote the whole thing. π«Άπ
okay thatβs the whole page β signing off from Debian, June 25, 2009, on ACL_DELETE_ENTRY(3). πβ¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2001 Chris D. Faulhaber
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms