GFS_ACL_GET_PERM(3)
π GFS_ACL_GET_PERM(3) β the Gfarm girlies' guide π
okay so bestie, welcome to gfs_acl_get_perm, a little function from the Gfarm manual, section 3. it does exactly one job and it does it flawlessly: it checks whether a permission is sitting inside a Gfarm ACL permission set. that's it. that's the whole vibe. π
β¨ NAME β¨
gfs_acl_get_perm β test for a permission in a Gfarm ACL permission set
like... it's giving "is this perm in the permset or not" and honestly? iconic. π
πΈ SYNOPSIS πΈ
#include <gfarm/gfarm.h>
gfarm_error_t gfs_acl_get_perm(gfarm_acl_permset_t permset_d,
gfarm_acl_perm_t perm, int *bool_p);
look at her. three args, returns a gfarm_error_t, no drama. π¦
π«Ά INPUT ARGUMENTS π«Ά
permset_dβ an ACL permission set. the lil collection we're snooping through. it's the main character here, no cap.permβ this one has to be one ofGFARM_ACL_READorGFARM_ACL_WRITEorGFARM_ACL_EXECUTE. those three, bestie, pick one. π₯bool_pβ the answer slot. if*bool_pis1, the ACL permission set has theperm. if*bool_pis0, the ACL permission set does not have theperm. literally a yes/no girlie. β¨
π RETURN VALUES π
GFARM_ERR_NO_ERRORβ the function terminated successfully. slay, we love a clean run. π- Others β an error except the above occurred. the reason is shown by
gfarm_error_string(3). not me getting a mystery error and having to go read another manpage π but that's where the lore lives.
π SEE ALSO π
gfs_acl_add_perm(3)gfs_acl_clear_perms(3)gfs_acl_delete_perm(3)gfs_acl_get_permset(3)gfs_acl_set_permset(3)
the whole ACL friend group fr fr β go read them too, they ate. π
heads up bestie:bool_pis a pointer, so you're writing into*bool_p, notbool_p. do not forget the star, i'm begging π
and that's the tea! π this lil page came from the Gfarm manual, dated 14 Feb 2011 (yes, valentine's day, romantic of her π), and it lives under the name GFS_ACL_GET_PERM(3). periodt. π β¨
π¦ 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