strerror_r: fix Solaris test failures
authorEric Blake <eblake@redhat.com>
Tue, 24 May 2011 03:05:07 +0000 (21:05 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 24 May 2011 19:42:46 +0000 (13:42 -0600)
commite67e250d98e9dc0177a564f2cbfa99330902fe9e
treeb4cce5ef0d28177cdd95ceb81ef7b1a3e96b5487
parent3a3fe58b91a00ba3cafd960a2e2355c842448e47
strerror_r: fix Solaris test failures

Solaris 10 populates buf on EINVAL, but not on ERANGE.

* lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
failures.
* doc/posix-functions/strerror_r.texi (strerror_r): Document this.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/posix-functions/strerror_r.texi
lib/strerror_r.c