freebsd5/sys/kern/kern_prot.c
/*-
 * Change a process's effective gid.
 * Side effects: newcred->cr_gid will be modified.
 * References: newcred must be an exclusive credential reference for the
 *             duration of the call.
 */
Change a process's effective gid.
Side effects: newcred->cr_gid will be modified.
References: newcred must be an exclusive credential reference for the
duration of the call.
Change a process ' s effective gid . Side effects : newcred - > cr_gid will be modified . References : newcred must be an exclusive credential reference for the duration of the call .
void
change_egid(struct ucred *newcred, gid_t egid)
{
	newcred->cr_groups[0] = egid;
}
void change_egid ( struct ucred * newcred , gid_t egid ) { newcred -> cr_groups [ 0 ] = egid ; }
Change a process's effective gid.
Change a process ' s effective gid .