GROUPMEMBER(9)

✨ GROUPMEMBER ✨

okay bestie, gather round, because this is a little kernel function called groupmember and she is, lowkey, the bouncer at the group-ID club πŸ’… she checks group sets for a group ID, and honestly? iconic behaviour.


πŸŽ€ NAME πŸŽ€

groupmember β€” checks group set for a group ID πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <sys/param.h>
#include <sys/ucred.h>

int
groupmember(gid_t gid, struct ucred *cred);

like. look at her. two headers, one function, no notes. main character energy fr fr 🌸


🌈 DESCRIPTION 🌈

so the groupmember() function checks to see if the given gid is in the group set of the credentials. that's it. that's the whole vibe. she's not doing anything else, she's not being mysterious, she just looks πŸ‘€

her arguments are:

  • gid β€” the group ID to check for. the one you're like "is she in there??" about 🫢
  • cred β€” the credentials to search for the group in. this is the place we're searching, bestie, this is the group chat we're scrolling πŸ”

⭐ RETURN VALUES ⭐

  • if the gid is found, 1 is returned 🌟
  • otherwise, 0 is returned πŸ’€

binary queen. no nuance. no maybe. just yes or no, and honestly, respect πŸ’…


πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Chad David <davidc@acns.ab.ca> πŸ’– give him his flowers, he ate.


and that's the whole page, bestie!! no cap, every flag, every value, every word is here. go check your group sets, you absolute legend 🧚

this was GROUPMEMBER(9) from the Kernel Developer's Manual, Debian flavour, dated July 9, 2001 β€” yes she's an elder but she's still slaying πŸŽ€ mwah, bye!! πŸ’œ

πŸ“¦ where this page comes from