summaryrefslogtreecommitdiff
path: root/src/stdlib/abort_handler_s.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2023-11-14 12:56:01 -0500
committerJakob Kaivo <jkk@ung.org>2023-11-14 12:56:01 -0500
commit79551f5c04d20990e64b26bf577f70eeaeb38652 (patch)
treecf9211c4ddf105221ca33a193cbbe3eb6851eea1 /src/stdlib/abort_handler_s.c
parent9e22ec98f4132300301d32f033b2c4d6e4ff5c1d (diff)
enable UB-testing for isupper()
Diffstat (limited to 'src/stdlib/abort_handler_s.c')
-rw-r--r--src/stdlib/abort_handler_s.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/stdlib/abort_handler_s.c b/src/stdlib/abort_handler_s.c
index 31d06568..7639ddfe 100644
--- a/src/stdlib/abort_handler_s.c
+++ b/src/stdlib/abort_handler_s.c
@@ -1,15 +1,20 @@
-#if 0
-
#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+//#include <errno.h>
+#include "errno/errno_t.h"
+#include "_stdlib.h"
void abort_handler_s(const char * restrict msg, void * restrict ptr, errno_t error)
{
- __C_EXT(1, 201112L);
+ struct __constraint_info *ci = ptr;
+
+ puts(msg);
+ printf("In call to %s\n", ci->func);
+ printf("Provided error: %s (%d)\n", strerror(error), error);
+ abort();
}
/*
CEXT1(201112)
*/
-
-
-#endif