GFS_ACL_TO_ANY_TEXT(3)

✨ GFS_ACL_TO_ANY_TEXT(3) ✨

okay so bestie, welcome to section 3 of the Gfarm manual πŸ’– this one is gfs_acl_to_any_text, and it's literally the glow-up station where a Gfarm ACL gets turned into cute lil text. no cap.


🌸 NAME 🌸

gfs_acl_to_any_text β€” convert a Gfarm ACL to text


πŸŽ€ SYNOPSIS πŸŽ€

#include <gfarm/gfarm.h>

gfarm_error_t gfs_acl_to_any_text(gfarm_acl_t acl, const char *prefix,
                                  char separator, int options,
                                  char **str_p);

πŸ¦‹ INPUT ARGUMENTS πŸ¦‹

  • acl β€” an ACL structure type. that's the thing getting converted, she's the main character here πŸ‘‘
  • prefix β€” if the argument prefix is not NULL, then every single entry gets to have this character string. not NULL? boom, prefix for everyone. it's giving matching outfits ✨
  • separator β€” the ACL entries are separated by this separator character. pick your divider, bestie πŸ’…
  • options β€” bitwise combinations of the stuff in the OPTIONS section down below πŸ‘‡ go crazy
  • str_p β€” a pointer to the long text form string of the ACL. this is where the finished text lands 🫢

πŸ’… OPTIONS πŸ’…

  • GFARM_ACL_TEXT_ABBREVIATE β€” instead of spelling out the full tag type keywords, you get single letter abbreviations. short queen energy, we love efficiency 😌
  • GFARM_ACL_TEXT_SOME_EFFECTIVE β€” drops a comment containing the effective permissions in some ACL entries.
  • GFARM_ACL_TEXT_ALL_EFFECTIVE β€” same vibe but all the ACL entries get that comment containing the effective permissions. everyone eats πŸ”₯
  • GFARM_ACL_TEXT_SMART_INDENT β€” if you use this one together with the GFARM_ACL_TEXT_SOME_EFFECTIVE or GFARM_ACL_TEXT_ALL_EFFECTIVE option, the effective comment gets aligned to column 40. so satisfying, honestly, the alignment is immaculate ✨

πŸ“ RETURN VALUES πŸ“

  • GFARM_ERR_NO_ERROR β€” the function terminated successfully. slay! everything worked πŸŽ‰
  • GFARM_ERR_NO_MEMORY β€” insufficient memory was available. girl is starving, there was just not enough memory to go around 😭
  • Others β€” an error except the above occurred. the reason is shown by gfarm_error_string(3). so if you get a mystery error, that's your detective πŸ•΅οΈ

πŸ‘‘ SEE ALSO πŸ‘‘


ok that's the whole page fr fr. every flag, every argument, every error code β€” all accounted for, nothing skipped, periodt πŸ’–

mwah πŸ’‹ this page came from the Gfarm crew, dated 14 Feb 2011 β€” yeah, a Valentine's Day manpage, iconic behavior 🌈