From 1ad7b089406bca51287ecacfa0d49e75a9f86010 Mon Sep 17 00:00:00 2001 From: Peng Haitao Date: Tue, 4 Jun 2013 17:58:50 +0800 Subject: [PATCH] mbrtowc.3: ATTRIBUTES: Note function that is thread safe with exceptions The function mbrtowc() is thread safe with exceptions. Signed-off-by: Peng Haitao Signed-off-by: Michael Kerrisk --- man3/mbrtowc.3 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man3/mbrtowc.3 b/man3/mbrtowc.3 index 129554e85..6e9bb5bda 100644 --- a/man3/mbrtowc.3 +++ b/man3/mbrtowc.3 @@ -171,6 +171,12 @@ if it couldn't parse a complete multibyte character, meaning that .I n should be increased. +.SH ATTRIBUTES +.SS Multithreading (see pthreads(7)) +The +.BR mbrtowc () +function is thread-safe with exceptions. +It is not thread-safe if called with a NULL \fIps\fP parameter. .SH CONFORMING TO C99. .SH NOTES