diff options
Diffstat (limited to 'static/v10/man3/setupgroups.3')
| -rw-r--r-- | static/v10/man3/setupgroups.3 | 30 |
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). |
