<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style="--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>

<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style="font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";">
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.rtems.org/joel">Joel Sherrill</a>
<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5420#note_146135">commented</a>:
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">The goal is to replace the current implementations with ones that can be under a permissive license (e.g. BSD, MIT, etc.). The expectation is that the FreeBSD implementations are suitable. This is fairly logically isolated functionality so it should all be in <em style="margin-top: 0;">libcsupport/src</em> with <a href="https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/pwd.h.html" rel="nofollow noreferrer noopener" target="_blank">pwd.h</a> and <a href="https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/grp.h.html" rel="nofollow noreferrer noopener" target="_blank">grp.h</a> provided by the Newlib C Library.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">The RTEMS implementation has the added capability of writing default <em style="margin-top: 0;">/etc/passwd</em> and <em>/etc/group</em> files if they do not exist when the functions are called. This will need to be re-implemented. The current expectation is that the user application would include their own versions in the initial file system image. It would be nice to figure out a way for the user application to be able to override the default contents. There are existing cases where something similar is done. The user override would be an addition after it works.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">The new implementation should be able to pass all existing tests without modifying the tests.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">One thing to be aware of is that there is now a <em style="margin-top: 0;">contrib/</em> directory at the top of the source tree. The unmodified versions of the FreeBSD files should be your first commit there with the commit containing the hash. Any changes should follow the pattern discussed in the <a href="https://docs.rtems.org/docs/main/eng/coding-conventions.html" rel="nofollow noreferrer noopener" target="_blank">Coding Conventions</a>.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">Given our stronger handle on third party code modifications now, it probably makes sense for the functions writing the default versions of <em style="margin-top: 0;">/etc/passwd</em> and <em>/etc/group</em> in their own file in <em>libcsupport/src</em>.</p>
<p dir="auto" style="color: #3a383f; margin: 0;" align="initial">When this works, it is important to make sure the POSIX Users Guide documents all the POSIX functions.</p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">

<br>
<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5420#note_146135">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.rtems.org">gitlab.rtems.org</a>. <a href="https://gitlab.rtems.org/-/sent_notifications/2-dgwpl2s5n2f8isknlj0xno9vo/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.rtems.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.rtems.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5420#note_146135 at 1773875258
</span>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5420#note_146135"}}</script>


</p>
</div>
</body>
</html>