mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| lib_find_grpfile.c | ||
| lib_getgrbuf.c | ||
| lib_getgrbufr.c | ||
| lib_getgrgid.c | ||
| lib_getgrgidr.c | ||
| lib_getgrnam.c | ||
| lib_getgrnamr.c | ||
| lib_getgrouplist.c | ||
| lib_grp.h | ||
| lib_grp_globals.c | ||
| lib_initgroups.c | ||
| Make.defs | ||