summaryrefslogtreecommitdiffstats
path: root/include/stddef.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-04-23 20:32:46 +0000
committerkib <kib@FreeBSD.org>2017-04-23 20:32:46 +0000
commitbc743032ad67f907e01ab07b89fa2c5417004333 (patch)
tree0d47e469cd483a5664a7e6aa1e11d412c4523637 /include/stddef.h
parent240392415ab16d458302b3fdfead83d6cfa884e1 (diff)
downloadFreeBSD-src-bc743032ad67f907e01ab07b89fa2c5417004333.zip
FreeBSD-src-bc743032ad67f907e01ab07b89fa2c5417004333.tar.gz
MFC r316213:
Implement the memset_s(3) function as specified by the C11 ISO/IEC 9899:2011 Appendix K 3.7.4.1. MFC r316258: Only activate __EXT1_VISIBLE block when using sys/errno.h in userspace.
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 fbcb3fb..90baf07 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_ */
OpenPOWER on IntegriCloud