groupmember(9freebsd)

groupmember9freebsd

Checks group set for a group id

Usage

#include <sys/param.h>

#include <sys/ucred.h>

int

groupmember(gid_t gid, struct ucred *cred);

Overview

The groupmember() function checks to see if the given gid is in the group set of the credentials.

Its arguments are:

gid

The group ID to check for.

cred

The credentials to search for the group in.

Return values

If the gid is found, 1 is returned; otherwise, 0 is returned.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Authors

This manual page was written by Chad David ⟨[email protected]⟩.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.