4 ms·
> So ugly, and you'd hope anything as non-reusable as that is deprecated with a strong wording. It isn't. It was only added in POSIX 2001. Still there without
by shakna 6y ago
> So ugly, and you'd hope anything as non-reusable as that is deprecated with a strong wording.
It isn't. It was only added in POSIX 2001. Still there without major changes in 2018. [0] (There's actually a lot of similar libraries in POSIX, that don't include re-entrant forms.)
Thankfully, re-entrant versions are supplied as extensions by GNU, which is significantly less horrifying.
[0] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/search.h.html https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/se...