aboutsummaryrefslogtreecommitdiff
path: root/include/stddef.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-03-30 04:57:26 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-03-30 04:57:26 +0000
commit9851b3400ae1362185d9ffe3c163428b9faa6b9f (patch)
tree5310615d6631002e7262db4e9ea81f3338f4fcb8 /include/stddef.h
parent653e7d639682be855c34415b1b7542d9388aafd6 (diff)
downloadsrc-9851b3400ae1362185d9ffe3c163428b9faa6b9f.tar.gz
src-9851b3400ae1362185d9ffe3c163428b9faa6b9f.zip
Implement the memset_s(3) function as specified by the C11 ISO/IEC
9899:2011 Appendix K 3.7.4.1. Other needed supporting types, defines and constraint_handler infrastructure is added as specified in the C11 spec. Submitted by: Tom Rix <trix@juniper.net> Sponsored by: Juniper Networks Discussed with: ed MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D9903 Differential revision: https://reviews.freebsd.org/D10161
Notes
Notes: svn path=/head/; revision=316213
Diffstat (limited to 'include/stddef.h')
-rw-r--r--include/stddef.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h
index fbcb3fb90252..90baf07dbdd1 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -72,4 +72,12 @@ typedef __max_align_t max_align_t;
#define offsetof(type, member) __offsetof(type, member)
+#if __EXT1_VISIBLE
+/* ISO/IEC 9899:2011 K.3.3.2 */
+#ifndef _RSIZE_T_DEFINED
+#define _RSIZE_T_DEFINED
+typedef size_t rsize_t;
+#endif
+#endif /* __EXT1_VISIBLE */
+
#endif /* _STDDEF_H_ */