GFS_ACL_FROM_TEXT_WI(3)

okay so welcome to the Gfarm corner of the manual, bestie πŸ’– this page is GFS_ACL_FROM_TEXT_WI(3) and it's all about making an ACL out of a text string when you've got a default prefix in the mix. let's get into it ✨


🌸 NAME 🌸

gfs_acl_from_text_with_default β€” create a Gfarm ACL from text with default prefix πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gfarm/gfarm.h>

gfarm_error_t gfs_acl_from_text_with_default(const char *str,
                                             gfarm_acl_t *acl_acc_p,
                                             gfarm_acl_t *acl_def_p);

like, copy that exactly, don't freestyle the signature bestie 😭


πŸ’… INPUT ARGUMENTS πŸ’…

  • str β€” an ACL text string, and it can be in long text form or short text form (both are valid, slay). the ACL entries are allowed to have a "default:" prefix on them πŸ’–
  • acl_acc_p β€” a pointer of the ACL structure type, for the access ACL.
  • acl_acc_p β€” a pointer of the ACL structure type, for the default ACL.
ngl the page really does list acl_acc_p twice there, once for the access ACL and once for the default ACL πŸ™ˆ i'm just telling you exactly what the manual says, no cap.

πŸ‘‘ RETURN VALUES πŸ‘‘

  • GFARM_ERR_NO_ERROR β€” the function terminated successfully. we ate. periodt πŸ’…βœ¨
  • GFARM_ERR_NO_MEMORY β€” insufficient memory was available 😭 the memory said no.
  • GFARM_ERR_INVALID_ARGUMENT β€” the argument str cannot be translated into an ACL. it's giving unparseable, bestie πŸ’€
  • Others β€” an error except the above occurred. the reason is shown by gfarm_error_string(3) πŸ”

🌈 SEE ALSO 🌈

go read those too, iykyk 🫢


and that's the whole vibe, bestie πŸŽ€ this one's from the Gfarm manual, dated 14 Feb 2011 β€” iconic vintage energy fr fr. now go build some ACLs πŸ’–πŸ¦‹πŸŒΈ