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 libc/grp: add getgrouplist() 2026-06-23 23:09:22 +08:00
Kconfig libs/libc: Remove support CONFIG_FS_READABLE 2020-03-22 08:24:07 -05:00
lib_find_grpfile.c libc/grp: add getgrouplist() 2026-06-23 23:09:22 +08:00
lib_getgrbuf.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_getgrbufr.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_getgrgid.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_getgrgidr.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_getgrnam.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_getgrnamr.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_getgrouplist.c libc/grp: add getgrouplist() 2026-06-23 23:09:22 +08:00
lib_grp.h libc/grp: add getgrouplist() 2026-06-23 23:09:22 +08:00
lib_grp_globals.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_initgroups.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Make.defs libc/grp: add getgrouplist() 2026-06-23 23:09:22 +08:00