Query: getgrouplist
OS: mojave
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETGROUPLIST(3) BSD Library Functions Manual GETGROUPLIST(3)NAMEgetgrouplist -- calculate partial group access listLIBRARYStandard system libraries.SYNOPSIS#include <unistd.h> int getgrouplist(const char *name, int basegid, int *groups, int *ngroups);DESCRIPTIONThe getgrouplist() function obtains information from opendirectoryd(8) to construct the group access list for the user specified in name. The basegid is automatically included in the groups list. Typically this value is given as the default group number from the user's account record. The resulting group list is returned in the array pointed to by groups. The caller specifies the size of the groups array in the integer pointed to by ngroups; the actual number of groups found is returned in ngroups.RETURN VALUESThe getgrouplist() function returns 0 on success. If the size of the group list is too small to hold all the user's groups, getgrouplist() returns -1 to indicate failure. In this case, the group array will be filled with as many groups as will fit.FILES/etc/group group membership listSEE ALSOsetgroups(2), initgroups(3), opendirectoryd(8).HISTORYThe getgrouplist() function first appeared in 4.4BSD.BSDJune 9, 1993 BSD
Related Man Pages |
---|
getgrouplist(3) - mojave |
getgrouplist(3) - debian |
getgrouplist(3) - suse |
getgroupmembership(3) - netbsd |
getgrouplist(3) - netbsd |
Similar Topics in the Unix Linux Community |
---|
Users and groups |
Adding user to groups |
User groups |
Nested user groups |
Assign zero to strings that don't appear in block, store result in AWK array |