mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
Add getgrouplist() to the C library. It scans the group database for a user's supplementary groups and always reports the primary group first. Without CONFIG_LIBC_GROUP_FILE only the primary group is returned, since no membership information is available. The group file is read through lib_get_tempbuffer()/lib_put_tempbuffer() to avoid a heap allocation on every lookup. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> |
||
|---|---|---|
| .. | ||
| libbuiltin | ||
| libc | ||
| libdsp | ||
| libm | ||
| libnx | ||
| libxx | ||
| CMakeLists.txt | ||