File:  [Research Unix] / researchv10dc / man / manx / setupgroups.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH SETUPGROUPS 3
.SH NAME
setupgroups \- set access group vector for invoker
.SH SYNOPSIS
.B setupgroups(name, gid)
.br
.B char *name;
.br
.B int gid;
.SH DESCRIPTION
This library routine sets up the invoker's access group vector
by searching the
.I /etc/group
file for groups matching
.IR name .
The invokers real group ID should be passed in
.IR gid ,
as there is no need to load this into the vector.
.PP
.I Setgroups
returns 0 for success, or \-1 on error with
.I errno
set appropriately.
.PP
This routine is safe to use on systems
where the multiple access groups system calls have not been installed.
.SH "SEE ALSO"
setgroups(2),
getgrent(3),
login(8).

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.