EXPLAIN_ACL_SET_FD_OR_DIE(3)
π explain_acl_set_fd_or_die π
okay bestie, welcome to the Library Functions Manual entry for explain_acl_set_fd_or_die β yes that name is a whole mouthful, but it's lowkey iconic, trust. grab a boba, we're doing this π§β¨
β¨ NAME β¨
explain_acl_set_fd_or_die β set an ACL by file descriptor and report errors π
π¦ SYNOPSIS π¦
#include <libexplain/acl_set_fd.h>
void explain_acl_set_fd_or_die(int fildes, acl_t acl);
int explain_acl_set_fd_on_error(int fildes, acl_t acl);
π DESCRIPTION π
so there's two functions here and they're sisters, not twins, okay?
The explain_acl_set_fd_or_die function is used to call the acl_set_fd(3) system call. On failure an explanation will be printed to stderr, obtained from the explain_acl_set_fd(3) function, and then the process terminates by calling exit(EXIT_FAILURE). yeah. it literally ends it. no cap π
The explain_acl_set_fd_on_error function is used to call the acl_set_fd(3) system call. On failure an explanation will be printed to stderr, obtained from the explain_acl_set_fd(3) function, but still returns to the caller. she's the chill one π«Ά
fildesβ Thefildes, exactly as to be passed to theacl_set_fd(3)system call. exactly. like, don't get cute with it πΈaclβ Theacl, exactly as to be passed to theacl_set_fd(3)system call. same energy, same rule β¨
π RETURN VALUE π
The explain_acl_set_fd_or_die function only returns on success, see acl_set_fd(3) for more information. On failure, prints an explanation and exits, it does not return. like she said what she said and then she LEFT π
The explain_acl_set_fd_on_error function always returns the value return by the wrapped acl_set_fd(3) system call.
π EXAMPLE π
The explain_acl_set_fd_or_die function is intended to be used in a fashion similar to the following example:
explain_acl_set_fd_or_die(fildes, acl);
that's it. that's the whole vibe. short, sweet, slays π
π SEE ALSO π
acl_set_fd(3)β set an ACL by file descriptorexplain_acl_set_fd(3)β explainacl_set_fd(3)errorsexit(2)β terminate the calling process
πΈ COPYRIGHT πΈ
libexplain version 1.4 Copyright (C) 2013 Peter Miller
and that's the whole page bestie, we ate and left absolutely no crumbs ππ
mwah, sending you off with the full legal tea: this is libexplain version 1.4, Copyright (C) 2013 Peter Miller β and yeah the footer is literally just the title again because manpages love to repeat themselves, periodt π
bye pookie, go set some ACLs responsibly π¦β
π¦ where this page comes from
- debian bookworm: libexplain-dev 1.4.D001-12+b1 Β· LGPL-3.0-or-later
- debian trixie: libexplain-dev 1.4.D001-16 Β· LGPL-3.0-or-later
- ubuntu jammy: libexplain-dev 1.4.D001-12 Β· LGPL-3.0-or-later
- ubuntu noble: libexplain-dev 1.4.D001-13 Β· LGPL-3.0-or-later
- ubuntu resolute: libexplain-dev 1.4.D001-16 Β· LGPL-3.0-or-later
- Copyright (C) 2013 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms