From be250a8b6af118bcaef40282d69f428158ca9d43 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 5 Oct 2023 22:39:52 +0200 Subject: [PATCH] doc: Mention xstrerror. * doc/posix-functions/strerror_r.texi: Mention xstrerror. --- ChangeLog | 3 +++ doc/posix-functions/strerror_r.texi | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6df9aaaef7..1a0dcd1597 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2023-10-05 Bruno Haible + doc: Mention xstrerror. + * doc/posix-functions/strerror_r.texi: Mention xstrerror. + xstrerror: Add tests. * tests/test-xstrerror.c: New file. * modules/xstrerror-tests: New file. diff --git a/doc/posix-functions/strerror_r.texi b/doc/posix-functions/strerror_r.texi index d0b35a6ba9..2e622cd8d7 100644 --- a/doc/posix-functions/strerror_r.texi +++ b/doc/posix-functions/strerror_r.texi @@ -86,3 +86,8 @@ OpenBSD 4.7. Portability problems not fixed by Gnulib: @itemize @end itemize + +Note: Gnulib has a module @code{xstrerror}, with the property that +@code{xstrerror (NULL, errnum)} returns the value of @code{strerror_r} +as a freshly allocated string. +(Recall that the expression @code{strerror (errnum)} is not multithread-safe.) -- 2.39.5