initialize the supplementary group access list
int initgroups (const char *name, gid_t basegid);
reads the group file, using
to get the group membership for the user specified by
and then initializes the supplementary group access list
of the calling process using
The group ID
is also included in the supplementary group access list.
This is typically the real group ID from the password file.
While the routine is scanning the group file,
if the number of groups, including
any further group entries are ignored.
Upon successful completion,
Otherwise, it returns -1 and
errno is set to indicate the error.
Diagnostic codes for this function are described below.
The calling process does not have the needed privileges.
is not part of any currently supported standard;
it was developed by UNIX System Laboratories, Inc.
and is maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003