aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-31 03:25:51 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-31 03:25:51 +0200
commit453e91ca9b4c1a629fed652d8301518bfe124607 (patch)
tree8d6e90704712c1d8427e6e259fc753d89dff60cd /src
parenttypo (diff)
downloadslibc-453e91ca9b4c1a629fed652d8301518bfe124607.tar.gz
slibc-453e91ca9b4c1a629fed652d8301518bfe124607.tar.bz2
slibc-453e91ca9b4c1a629fed652d8301518bfe124607.tar.xz
m doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/string/strerror.c6
1 files changed, 4 insertions, 2 deletions
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.