2022-09-18 05:48:53 -04:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
int sys_getgroups(int size, uint32_t list[]);
|
2023-09-01 20:49:13 -07:00
|
|
|
int sys_setgroups(size_t size, const uint32_t list[]);
|
2022-09-18 05:48:53 -04:00
|
|
|
|
2024-08-24 18:10:22 -07:00
|
|
|
const char *_DescribeGidList(char[128], int, int, const uint32_t list[]);
|
2022-09-18 05:48:53 -04:00
|
|
|
#define DescribeGidList(rc, length, gidlist) \
|
2024-08-24 18:10:22 -07:00
|
|
|
_DescribeGidList(alloca(128), rc, length, gidlist)
|
2022-09-18 05:48:53 -04:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_GROUPS_INTERNAL_H_ */
|