]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(Error Messages): Correct description of strerror_r.
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:37:05 +0000 (13:37 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:37:05 +0000 (13:37 +0000)
manual/errno.texi

index c073deb7f8293507a594c3f837769795e1ca34a8..86b4c74e7aacb0006a5df7ffc35843bb33d9275d 100644 (file)
@@ -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.