|
|
1.1 ! root 1: .TH SETUPGROUPS 3 ! 2: .SH NAME ! 3: setupgroups \- set access group vector for invoker ! 4: .SH SYNOPSIS ! 5: .B setupgroups(name, gid) ! 6: .br ! 7: .B char *name; ! 8: .br ! 9: .B int gid; ! 10: .SH DESCRIPTION ! 11: This library routine sets up the invoker's access group vector ! 12: by searching the ! 13: .I /etc/group ! 14: file for groups matching ! 15: .IR name . ! 16: The invokers real group ID should be passed in ! 17: .IR gid , ! 18: as there is no need to load this into the vector. ! 19: .PP ! 20: .I Setgroups ! 21: returns 0 for success, or \-1 on error with ! 22: .I errno ! 23: set appropriately. ! 24: .PP ! 25: This routine is safe to use on systems ! 26: where the multiple access groups system calls have not been installed. ! 27: .SH "SEE ALSO" ! 28: setgroups(2), ! 29: getgrent(3), ! 30: login(8).
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.