summaryrefslogtreecommitdiff
path: root/include/stdlib.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/stdlib.h
parent653e7d639682be855c34415b1b7542d9388aafd6 (diff)
Notes
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index a593345aa601..afcbc289b37e 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -323,6 +323,26 @@ __uint64_t
extern char *suboptarg; /* getsubopt(3) external variable */
#endif /* __BSD_VISIBLE */
+
+#if __EXT1_VISIBLE
+
+#ifndef _ERRNO_T_DEFINED
+#define _ERRNO_T_DEFINED
+typedef int errno_t;
+#endif
+
+/* K.3.6 */
+typedef void (*constraint_handler_t)(const char * __restrict,
+ void * __restrict, errno_t);
+/* K.3.6.1.1 */
+constraint_handler_t set_constraint_handler_s(constraint_handler_t handler);
+/* K.3.6.1.2 */
+_Noreturn void abort_handler_s(const char * __restrict, void * __restrict,
+ errno_t);
+/* K3.6.1.3 */
+void ignore_handler_s(const char * __restrict, void * __restrict, errno_t);
+#endif /* __EXT1_VISIBLE */
+
__END_DECLS
__NULLABILITY_PRAGMA_POP