From: Ulrich Drepper Date: Mon, 2 Mar 1998 13:37:05 +0000 (+0000) Subject: (Error Messages): Correct description of strerror_r. X-Git-Tag: cvs/before-sparc-2_0_x-branch~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e8d64b111d37ea85f1b1703263ace306b079bef;p=thirdparty%2Fglibc.git (Error Messages): Correct description of strerror_r. --- diff --git a/manual/errno.texi b/manual/errno.texi index c073deb7f82..86b4c74e7aa 100644 --- a/manual/errno.texi +++ b/manual/errno.texi @@ -1231,8 +1231,10 @@ The function @code{strerror} is declared in @file{string.h}. @deftypefun {char *} strerror_r (int @var{errnum}, char *@var{buf}, size_t @var{n}) The @code{strerror_r} function works like @code{strerror} but instead of returning the error message in a statically allocated buffer shared by -all threads in the process, it writes the message string in the user -supplied buffer starting at @var{buf} with the length of @var{n} bytes. +all threads in the process, it returns a private copy for the +thread. This might be either some permanent global data or a message +string in the user supplied buffer starting at @var{buf} with the +length of @var{n} bytes. At most @var{n} characters are written (including the NUL byte) so it is up to the user to select the buffer large enough.