aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-10-02 14:20:42 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-10-07 09:13:58 +0200
commitfdcc06eeb12fcc6288e97c016a50d1a0e728d899 (patch)
tree36a5938b34434ca13507f3f93e03d000f8a84ad7
parent49d2adfabdaac8ef8031ca5660879739c4f35074 (diff)
downloadman-pages-fdcc06eeb12fcc6288e97c016a50d1a0e728d899.tar.gz
wcstombs.3: wcsrtombs() does not provide thread-safe interface to same functionality
As noted in the Debian bug: In "man wcstombs" the words The function wcsrtombs(3) provides a thread safe interface to the same functionality. should be changed to The function wcsrtombs(3) provides a better interface to the same functionality. Because 1) wcsrtombs is not thread safe if "ps" is NULL (see "ATTRIBUTES" in "man wcsrtombs") 2) wcstombs *is* thread safe (see "ATTRIBUTES" in "man wcstombs") 3) "man mbstowcs" says "The function mbsrtowcs(3) provides a better interface to the same functionality." in the same NOTES section. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741360 Reported-by: Igor Liferenko <igor.liferenko@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/wcstombs.33
1 files changed, 1 insertions, 2 deletions
diff --git a/man3/wcstombs.3 b/man3/wcstombs.3
index c7872506eb..1f189be550 100644
--- a/man3/wcstombs.3
+++ b/man3/wcstombs.3
@@ -112,8 +112,7 @@ current locale.
.PP
The function
.BR wcsrtombs (3)
-provides a thread safe interface to
-the same functionality.
+provides a better interface to the same functionality.
.SH SEE ALSO
.BR mblen (3),
.BR mbstowcs (3),