crypt and POSIX

Joel Sherrill joel at rtems.org
Thu Aug 13 13:47:25 UTC 2020


On Thu, Aug 13, 2020 at 7:52 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> On 13/08/2020 14:49, Joel Sherrill wrote:
>
> > Why was crypt() removed? It is in the FreeBSD version at the bottom of
> > the file.
> >
> > https://github.com/freebsd/freebsd/blob/master/lib/libcrypt/crypt.c
> It is not thread-safe.
>

Doh! But it is standards compliant.

And this would seem to violate the rules of source transparency in the
way the code was removed. If you wanted to disable it, it should have
been wrapped in ifndef __rtems__.

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200813/d7c3293e/attachment.html>


More information about the devel mailing list