summaryrefslogtreecommitdiffstats
path: root/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index af8b0d4..5ffaabb 100644
--- a/include/string.h
+++ b/include/string.h
@@ -139,6 +139,22 @@ void swab(const void * __restrict, void * __restrict, ssize_t);
#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
#include <xlocale/_string.h>
#endif
+
+#if __EXT1_VISIBLE
+
+#ifndef _RSIZE_T_DEFINED
+#define _RSIZE_T_DEFINED
+typedef size_t rsize_t;
+#endif
+
+#ifndef _ERRNO_T_DEFINED
+#define _ERRNO_T_DEFINED
+typedef int errno_t;
+#endif
+
+/* ISO/IEC 9899:2011 K.3.7.4.1.1 */
+errno_t memset_s(void *, rsize_t, int, rsize_t);
+#endif /* __EXT1_VISIBLE */
__END_DECLS
#endif /* _STRING_H_ */
OpenPOWER on IntegriCloud