OSDN Git Service

strerror_r: provide POSIX implementation
authorericb <ericb>
Thu, 10 Feb 2011 16:48:16 +0000 (16:48 +0000)
committerericb <ericb>
Thu, 10 Feb 2011 16:48:16 +0000 (16:48 +0000)
commit2f7738d3d9c898d60ef57b2686d9d5a5c53dfc06
treecb2cdff305b71c6c7f82f031f3c005e50e5b9d9a
parent077507e8bf5d83b0acf70d119602722008d7ec87
strerror_r: provide POSIX implementation

* libc/include/string.h (strerror_r): Update declaration.
* libc/string/strerror.c (strerror): Update documentation.
* libc/string/strerror_r.c (strerror_r): Always return
NUL-terminated string; don't overwrite too-short buf.
* libc/string/xpg_strerror_r.c (__xpg_strerror_r): Implement POSIX
variant.
* libc/string/Makefile.am (GENERAL_SOURCES): Build new file.
* libc/string/Makefile.in: Regenerate.
newlib/ChangeLog
newlib/libc/include/string.h
newlib/libc/string/Makefile.am
newlib/libc/string/Makefile.in
newlib/libc/string/strerror.c
newlib/libc/string/strerror_r.c
newlib/libc/string/xpg_strerror_r.c [new file with mode: 0644]