GFS_ACL_TO_TEXT(3)

πŸ’– gfs_acl_to_text β€” the Gfarm ACL glow-up page πŸ’–

okay bestie, welcome to the gfs_acl_to_text(3) era of the Gfarm manual β€” section 3, library functions, we're in our reference-page bag ✨


🌸 NAME 🌸

gfs_acl_to_text β€” convert a Gfarm ACL to text. that's it, that's the whole vibe: ACL goes in, text comes out, slay πŸ’…


✨ SYNOPSIS ✨

#include <gfarm/gfarm.h>

gfarm_error_t gfs_acl_to_text(gfarm_acl_t acl, char **str_p,
                              size_t *len_p);

no cap, that's the entire signature. copy it exactly, don't freestyle it πŸŽ€


πŸ¦‹ INPUT ARGUMENTS πŸ¦‹

  • acl β€” an ACL structure type. this is the thing you're converting, the main character of the whole operation πŸ‘‘
  • str_p β€” a pointer to the long text form string of the ACL. so like, the function hands you back the text through here 🫢
  • len_p β€” if this pointer is not NULL, the function returns the length of the string, not including the terminating '\0' character. so if you're counting, bestie, the null byte does NOT count. periodt πŸ’€

πŸ”₯ RETURN VALUES πŸ”₯

  • GFARM_ERR_NO_ERROR β€” the function terminated successfully. we ate, we left no crumbs, iconic 🌈
  • GFARM_ERR_NO_MEMORY β€” insufficient memory was available. it's giving broke, lowkey tragic 😭
  • Others β€” an error except the above occurred. the reason is shown by gfarm_error_string(3). so go check that one, iykyk πŸ”
ngl, always check your return value, bestie. the function is literally telling you how it went β€” don't leave it on read πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

go read those too, they're part of the extended universe 🧚


and that's the whole page, bestie β€” you understood the assignment πŸ’–

this one came straight from the Gfarm crew, dated 14 Feb 2011 β€” yes, valentine's day, romantic of them πŸ“ β€” and it's the GFS_ACL_TO_TEXT(3) page from the Gfarm manual. mwah πŸ’…βœ¨