*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: initgroups | Section: 3 | Source: Digital UNIX | File: initgroups.3.gz
initgroups(3) Library Functions Manual initgroups(3) NAME initgroups - Initializes concurrent group set LIBRARY Standard C Library (libc.a) SYNOPSIS int initgroups ( char *user, gid_t base_gid ); PARAMETERS Specifies the user whose groups are to be used to initialize the group set. Specifies an additional group to include in the group set. DESCRIPTION The initgroups() function reads the defined group membership of the specified user and sets the concurrent group set of the current process to that value. The base_gid parameter is always included in the concur- rent group set, and is normally the principal user's group. If the user is in more than NGROUPS_MAX groups, only NGROUPS_MAX groups are set, including the base_gid group. CAUTION The initgroups() function uses the sia_get_groups() function to set up the group array. If the program that invokes initgroups() uses any of these functions, then calling initgroups() overwrites the static group structure. RETURN VALUES Upon successful completion, the initgroups() function returns 0 (zero). If the initgroups() function fails, 1 is returned and errno is set to indicate the error. ERRORS If the initgroups() function fails, errno may be set to the following value: The calling process does not have the appropriate privilege in its current effective privilege set. RELATED INFORMATION Functions: getgroups(2), setgroups(2), getgid(2) sia_get_groups(3) Commands: groups(1) delim off initgroups(3)

Navigation Options