GFS_ACL_FROM_MODE(3)

πŸ’– GFS_ACL_FROM_MODE(3) πŸ’–

okay bestie, gather round, because this one is a Gfarm manual page (section 3, the library-call girlies πŸŽ€) and it's literally so chill. no cap.


✨ NAME ✨

gfs_acl_from_mode β€” create a Gfarm ACL from file permission bits πŸ¦‹

like... it takes your boring little mode bits and gives them a glow-up into a whole ACL. it's giving metamorphosis. periodt.


🌸 SYNOPSIS 🌸

#include <gfarm/gfarm.h>

gfarm_error_t gfs_acl_from_mode(gfarm_mode_t mode, gfarm_acl_t *acl_p);

look at her. two args, one return value, zero drama. she understood the assignment πŸ’…


🫢 INPUT ARGUMENTS 🫢

  • mode β€” the permission bits, babe. just the regular permission bits, nothing extra, no secret menu.
  • acl_p β€” a pointer of an ACL structure type. yeah, it's a pointer-to-ACL situation, she's pointing at the ACL structure, that's the whole vibe.

πŸ‘‘ RETURN VALUES πŸ‘‘

  • GFARM_ERR_NO_ERROR β€” the function terminated successfully ✨ iconic behavior, we love to see it.
  • Others β€” an error except the above occurred 😭 the reason is shown by gfarm_error_string(3), so go ask that one, she'll spill the tea.

🧚 SEE ALSO 🧚


and that's the whole page, no filler, no fluff πŸ“

ngl there's nothing dangerous in here, no deprecation warnings, no undefined behavior, it's just a very well-behaved little function. rare and beautiful.

this masterpiece of a manpage comes to you courtesy of Gfarm, dated 14 Feb 2011 β€” a Valentine's Day release, which is honestly the most romantic thing in this entire document πŸ’œ bye bestie, go build something cute 🌈