mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
parent
97bb5a3a80
commit
40991ec992
3 changed files with 17 additions and 27 deletions
|
@ -25,10 +25,16 @@
|
|||
#include "libc/sysv/errfuns.h"
|
||||
|
||||
/**
|
||||
* Set list of supplementary group IDs
|
||||
* Sets list of supplementary group IDs.
|
||||
*
|
||||
* @param size - number of items in list
|
||||
* @param list - input set of gid_t to set
|
||||
* On recent versions of Linux only, it's possible to say:
|
||||
*
|
||||
* setgroups(0, NULL);
|
||||
*
|
||||
* Which will cause subsequent calls to `EPERM`.
|
||||
*
|
||||
* @param size number of items in list
|
||||
* @param list input set of gid_t to set
|
||||
* @return -1 w/ EFAULT
|
||||
*/
|
||||
int setgroups(size_t size, const uint32_t list[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue