GFS_ACL_EQUIV_MODE(3)
π GFS_ACL_EQUIV_MODE(3) π
okay bestie, gather round, because we're about to talk about gfs_acl_equiv_mode β a function from the Gfarm manual, section 3. it checks for an equivalent Gfarm ACL. that's the whole vibe. let's get into it β¨
πΈ NAME πΈ
gfs_acl_equiv_mode β check for an equivalent Gfarm ACL
like, it peeks at your ACL and is like "hmm, does this map cleanly onto regular mode bits?" and then tells you. iconic behavior honestly π
π SYNOPSIS π
#include <gfarm/gfarm.h>
gfarm_error_t gfs_acl_equiv_mode(gfarm_acl_t acl, gfarm_mode_t *mode_p,
int *is_not_equiv_p);
look at her. three arguments. no notes. π«Ά
π¦ INPUT ARGUMENTS π¦
aclβ an ACL structure type. this is the ACL we're doing the vibe check on, bestie.mode_pβ okay so if the pointermode_pis notNULL, then the value thatmode_ppoints to gets set to the value that defines the same owner/group/other permissions as the ones contained in the ACL. like it translates the ACL energy into classic mode bits. lowkey magical.is_not_equiv_pβ and if the pointeris_not_equiv_pis notNULL, the value it points to gets set to either0or1:0β the acl is an equivalent ACL1β the acl is not an equivalent ACL
so it's giving yes/no but in integer form. classic. π
β¨ RETURN VALUES β¨
GFARM_ERR_NO_ERRORβ the function terminated successfully. we love a clean exit, no cap. π- Others β an error happened that isn't the one above. the reason is shown by
gfarm_error_string(3). so if something goes sideways, go askgfarm_error_string(3)what's up. she'll explain. π
π SEE ALSO π
ngl bestie, the whole point here is: hand it an ACL, and it'll tell you whether that ACL is equivalent to plain mode bits, and optionally hand you those bits. simple. elegant. slay. π β¨
Gfarm Β· 14 Feb 2011 Β· GFS_ACL_EQUIV_MODE(3) β and that's the whole page, mwah, go forth and ACL responsibly πππ¦πΈ
π¦ where this page comes from
- debian bookworm: libgfarm-dev 2.7.20+dfsg-1+b2 Β· BSD-like
- debian trixie: libgfarm-dev 2.7.20+dfsg-1.2+b1 Β· BSD-like
- ubuntu jammy: libgfarm-dev 2.7.17+dfsg-1build2 Β· BSD-like
- ubuntu noble: libgfarm-dev 2.7.20+dfsg-1.1ubuntu1 Β· BSD-like
- ubuntu questing: libgfarm-dev 2.7.20+dfsg-1.2
- ubuntu resolute: libgfarm-dev 2.7.20+dfsg-1.3 Β· BSD-like
- ubuntu stonking: libgfarm-dev 2.7.20+dfsg-1.3build1 Β· BSD-like
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms