aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/errno.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 /sys/sys/errno.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 'sys/sys/errno.h')
-rw-r--r--sys/sys/errno.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index 29fa2d576372..7770ee31e2bf 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -193,4 +193,12 @@ __END_DECLS
#define ERELOOKUP (-5) /* retry the directory lookup */
#endif
+#if __EXT1_VISIBLE
+/* ISO/IEC 9899:2011 K.3.2.2 */
+#ifndef _ERRNO_T_DEFINED
+#define _ERRNO_T_DEFINED
+typedef int errno_t;
+#endif
+#endif /* __EXT1_VISIBLE */
+
#endif