about summary refs log tree commit diff
path: root/src/libstrerr/strerr_dievsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrerr/strerr_dievsys.c')
-rw-r--r--src/libstrerr/strerr_dievsys.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libstrerr/strerr_dievsys.c b/src/libstrerr/strerr_dievsys.c
new file mode 100644
index 0000000..10437f9
--- /dev/null
+++ b/src/libstrerr/strerr_dievsys.c
@@ -0,0 +1,13 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <unistd.h>
+
+#include <skalibs/strerr.h>
+
+void strerr_dievsys (int e, char const *const *v, unsigned int n)
+{
+  strerr_warnvsys(v, n) ;
+  _exit(e) ;
+}