Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getgroups(2) — SunOS 0.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setgroups(2)

initgroups(3)

GETGROUPS(2)  —  System Interface Manual — System Calls

NAME

getgroups − get group access list

SYNOPSIS

#include <sys/types.h>

getgroups(ngroups, gidset)
int ∗ngroups, ∗gidset;

DESCRIPTION

Getgroups gets the current group access list of the user process and stores it in the array gidset. The parameter ngroups indicates the number of entries which may be placed in gidset and is modified on return to indicate the actual number of groups returned.  No more than NGRPS, as defined in <sys/param.h>, will ever be returned.

RETURN VALUE

A value of 0 indicates that the call succeeded, and that the number of elements of gidset and the set itself were returned.  A value of −1 indicates that an error occurred, and the error code is stored in the global variable errno.

ERRORS

The possible errors for getgroup are:

[EFAULT] The arguments ngroups or gidset specify invalid addresses. 

SEE ALSO

setgroups(2), initgroups(3)

Sun System Release 0.3  —  12 February 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026