.\" Copyright (c) 1983, 1991 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)getgroups.2 6.7 (Berkeley) %G%
.Nd get group access list
.Fd #include <sys/param.h>
.Fn getgroups "int gidsetlen" "int *gidset"
gets the current group access list of the user process
and stores it in the array
indicates the number of entries that may be placed in
returns the actual number of groups returned in
A successful call returns the number of groups in the group set.
A value of -1 indicates that an error occurred, and the error
code is stored in the global variable
is smaller than the number of groups in the group set.
but remains integer for compatibility with earlier systems.
function call appeared in