From 453e91ca9b4c1a629fed652d8301518bfe124607 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 31 Aug 2015 03:25:51 +0200 Subject: m doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/string/strerror.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/string/strerror.c b/src/string/strerror.c index dd1d142..b51ce4c 100644 --- a/src/string/strerror.c +++ b/src/string/strerror.c @@ -70,12 +70,13 @@ char* strerror_l(int errnum, locale_t locale) /** - * Reenterant variant of `stderror`. + * Reenterant variant of `strerror`. * * This is an XSI-compliant extension. However the name * is not part of the XSI specification, `strerror_r` * should be used. It is defined to this function if * `(_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE`. + * However it is not defined if _SLIBC_SOURCE is defined. * * @param errnum The error code. * @param buf Buffer where the description shall be stored. @@ -104,12 +105,13 @@ int __xsi_strerror_r(int errnum, char* buf, size_t buflen) /** - * Reenterant variant of `stderror`. + * Reenterant variant of `strerror`. * * This is a GNU-specific extension. However the name * is not part of the GNU specification, `strerror_r` should * be used. It is defined to this function unless * `(_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE`. + * However it is not defined if _SLIBC_SOURCE is defined. * * @param errnum The error code. * @param buf Buffer where the description shall be stored. -- cgit v1.2.3-70-g09d2