summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-04-23 20:32:46 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-04-23 20:32:46 +0000
commit57c8b92b8710a9cbcdab4c0ba2130d6621276fa4 (patch)
tree0d47e469cd483a5664a7e6aa1e11d412c4523637 /include/string.h
parent735734bc1646ccacd791933dbb6d4a7fec6a4eda (diff)
Notes
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 af8b0d46c86c..5ffaabb9a0d0 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_ */