groupmember(9)

groupmember9

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.

Authors

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

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.