#
d1f43e70 |
| 08-Jun-2024 |
joerg <joerg@NetBSD.org> |
Redo l10n support in the strerror family.
Instead of opening the message catelog whenever strerror is called, keep track of the translations in the locale cache. For the C locale, the builtin sys_er
Redo l10n support in the strerror family.
Instead of opening the message catelog whenever strerror is called, keep track of the translations in the locale cache. For the C locale, the builtin sys_errlist is used directly. Other locales will open the catalog file on the first strerror call and build a translation table, so that further calls in this locale can just use an array lookup.
show more ...
|
#
219987b2 |
| 25-Mar-2020 |
kre <kre@NetBSD.org> |
Arrange that strerror(-1) prints "Unknown error: -1" and not the unsigned equivalent of -1.
While here, guarantee, even when !NLS, that nothing here (not even snprintf deciding to complain about EIL
Arrange that strerror(-1) prints "Unknown error: -1" and not the unsigned equivalent of -1.
While here, guarantee, even when !NLS, that nothing here (not even snprintf deciding to complain about EILSEQ or something) can ever alter errno (ie: always save and restore it, not only in the NLS case). The functions here must never alter errno, whatever happens.
show more ...
|
#
1cf13731 |
| 28-Jul-2005 |
christos <christos@NetBSD.org> |
PR/30845: Luke Mewburn: strerror_r(3) missing - Merge 4.4BSD strerror.3 man page changes that summarize information for all the error printing functions. This makes the perror(3) page obsolete. -
PR/30845: Luke Mewburn: strerror_r(3) missing - Merge 4.4BSD strerror.3 man page changes that summarize information for all the error printing functions. This makes the perror(3) page obsolete. - Implement all error functions in terms of strerror_r(), including __strerror() which is not used internally. Can it be removed? - Bump version for strerror_r
show more ...
|