RTEMS | Reimplement POSIX passwd and group Entry APIs (#5420)

Joel Sherrill (@joel) gitlab at rtems.org
Sun Jan 11 17:31:48 UTC 2026



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5420



## Summary
The following files need to be reimplemented with a 2-BSD license and author traceability. The functionality must remain the same.

- getgrent.c:/* SPDX-License-Identifier: GPL-2.0-with-RTEMS-exception */
- getgrnam.c:/* SPDX-License-Identifier: GPL-2.0-with-RTEMS-exception */
- getpwent.c:/* SPDX-License-Identifier: GPL-2.0-with-RTEMS-exception */

The likely best approach is to copy the implementations of FreeBSD and add the capability to write _/etc/passwd_ and _/etc/group_ on first access if they do not exist. 

The method called to write the default version of those files should be weak so an application can override them.

<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5420
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260111/0dba8c81/attachment.htm>


More information about the bugs mailing list