Home | History | Annotate | Download | only in string
History log of /src/lib/libc/string/strerror_r.c
RevisionDateAuthorComments
 1.6  08-Jun-2024  joerg 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.
 1.5  25-Mar-2020  kre branches: 1.5.6;

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.
 1.4  10-Jan-2017  christos branches: 1.4.14;
PR/51814: Ngie Cooper: add <stdio.h> since sys_nerr is declared there on
FreeBSD.
 1.3  19-Aug-2013  joerg branches: 1.3.8;
Add strerror_l.
 1.2  30-Jul-2005  christos branches: 1.2.44; 1.2.50;
- Fix the remaining indr_references so that they define lint symbols.
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror
 1.1  28-Jul-2005  christos 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
 1.2.50.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.44.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.8.1  20-Mar-2017  pgoyette Sync with HEAD
 1.4.14.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.5.6.1  13-Oct-2024  martin Pull up following revision(s) (requested by riastradh in ticket #971):

lib/libc/locale/setlocale_local.h: revision 1.18
lib/libc/string/strerror_r.c: revision 1.6
lib/libc/locale/setlocale.c: revision 1.66
lib/libc/string/Makefile.inc: revision 1.90
lib/libc/locale/global_locale.c: revision 1.29

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.

RSS XML Feed