summaryrefslogtreecommitdiff
path: root/static/v10/man3/setupgroups.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man3/setupgroups.3
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man3/setupgroups.3')
-rw-r--r--static/v10/man3/setupgroups.330
1 files changed, 30 insertions, 0 deletions
diff --git a/static/v10/man3/setupgroups.3 b/static/v10/man3/setupgroups.3
new file mode 100644
index 00000000..c58656bf
--- /dev/null
+++ b/static/v10/man3/setupgroups.3
@@ -0,0 +1,30 @@
+.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).