nuttx/libs/libc/grp
Xiang Xiao a9b72ed796 libc/grp: add getgrouplist()
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>
2026-06-23 23:09:22 +08:00
..
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