perror: call strerror_r directly
authorEric Blake <eblake@redhat.com>
Tue, 24 May 2011 20:27:04 +0000 (14:27 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 1 Jun 2011 14:19:59 +0000 (08:19 -0600)
commit6b66ce308dae8448f02da645a9fd8fb992349f06
treed5ff88e4b838f9b8d336a9dcf1c74a7beab0cc20
parent90a65c17c1754d1890af4f00374d7af435d8cc7e
perror: call strerror_r directly

No need to make a wrapper that burns static storage when we can
just use stack storage.

* modules/perror (Files): Drop strerror-impl.h.
* lib/perror.c (perror): Use our own stack buffer, rather than
calling a wrapper that uses static storage.
* doc/posix-functions/perror.texi (perror): Document a limitation
of our replacement.

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