GFS_ACL_GET_FILE(3)
π GFS_ACL_GET_FILE π
okay bestie, welcome to section 3 of the Gfarm manual β this is where we keep the library calls, and this one is literally the "grab me an ACL by filename" girlie. no cap. π
β¨ NAME β¨
gfs_acl_get_file β get a Gfarm ACL by filename π¦
β¨ SYNOPSIS β¨
#include <gfarm/gfarm.h>
gfarm_error_t gfs_acl_get_file(const char *gfarm_url,
gfarm_acl_type_t type,
gfarm_acl_t *acl_p);
like, that's the whole vibe. three args, one error code, we move. π
β¨ INPUT ARGUMENTS β¨
gfarm_urlβ a path name in the Gfarm filesystem. yes queen, it's just a path, you already know how paths work πΈtypeβ which ACL you want, and there are exactly two choices, no more no less:GFARM_ACL_TYPE_ACCESSβ to get the access ACL π₯GFARM_ACL_TYPE_DEFAULTβ to get the default ACL β¨
acl_pβ a pointer of ACL structure type. it's the lil out-param where your ACL lands. hand it over and let the function cook π
β¨ RETURN VALUES β¨
GFARM_ERR_NO_ERRORβ the function terminated successfully. we ate, no crumbs, periodt πGFARM_ERR_NO_SUCH_OBJECTβ thegfarm_urldoes not exist, or thegfarm_urldoes not have the type of ACL. either way: not found, not slaying πGFARM_ERR_NO_MEMORYβ insufficient memory was available. the RAM said "i'm booked and busy" π- Others β an error except the above occurred. the reason is shown by
gfarm_error_string(3). so go ask that one, she has the receipts π
lowkey important: "Others" is not a specific code, bestie, it's the catch-all. if you get it, call gfarm_error_string(3) to find out what actually happened fr fr.
β¨ SEE ALSO β¨
gfs_acl_free(3)gfs_acl_get_entry(3)gfs_acl_set_file(3)gfs_attr(5)
the whole friend group, all linked up π«Άπ
this page came to you from the Gfarm manual, dated 14 Feb 2011 β yes, Valentine's Day, because she's romantic like that π stay hydrated, free your ACLs, and check the return value every single time, iykyk β¨π
π¦ 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