summaryrefslogtreecommitdiff
path: root/src/libstrerr
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrerr')
-rw-r--r--src/libstrerr/strerr_die10sys.c11
-rw-r--r--src/libstrerr/strerr_die10x.c11
-rw-r--r--src/libstrerr/strerr_die11sys.c11
-rw-r--r--src/libstrerr/strerr_die11x.c11
-rw-r--r--src/libstrerr/strerr_die1sys.c10
-rw-r--r--src/libstrerr/strerr_die1x.c10
-rw-r--r--src/libstrerr/strerr_die2sys.c11
-rw-r--r--src/libstrerr/strerr_die2x.c11
-rw-r--r--src/libstrerr/strerr_die3sys.c11
-rw-r--r--src/libstrerr/strerr_die3x.c11
-rw-r--r--src/libstrerr/strerr_die4sys.c11
-rw-r--r--src/libstrerr/strerr_die4x.c11
-rw-r--r--src/libstrerr/strerr_die5sys.c11
-rw-r--r--src/libstrerr/strerr_die5x.c11
-rw-r--r--src/libstrerr/strerr_die6sys.c11
-rw-r--r--src/libstrerr/strerr_die6x.c11
-rw-r--r--src/libstrerr/strerr_die7sys.c11
-rw-r--r--src/libstrerr/strerr_die7x.c11
-rw-r--r--src/libstrerr/strerr_die8sys.c11
-rw-r--r--src/libstrerr/strerr_die8x.c11
-rw-r--r--src/libstrerr/strerr_die9sys.c11
-rw-r--r--src/libstrerr/strerr_die9x.c11
-rw-r--r--src/libstrerr/strerr_diel.c24
-rw-r--r--src/libstrerr/strerr_dielsys.c23
-rw-r--r--src/libstrerr/strerr_diev.c13
-rw-r--r--src/libstrerr/strerr_dievsys.c13
-rw-r--r--src/libstrerr/strerr_warn10sys.c11
-rw-r--r--src/libstrerr/strerr_warn10x.c11
-rw-r--r--src/libstrerr/strerr_warn11sys.c11
-rw-r--r--src/libstrerr/strerr_warn11x.c11
-rw-r--r--src/libstrerr/strerr_warn1sys.c10
-rw-r--r--src/libstrerr/strerr_warn1x.c10
-rw-r--r--src/libstrerr/strerr_warn2sys.c11
-rw-r--r--src/libstrerr/strerr_warn2x.c11
-rw-r--r--src/libstrerr/strerr_warn3sys.c11
-rw-r--r--src/libstrerr/strerr_warn3x.c11
-rw-r--r--src/libstrerr/strerr_warn4sys.c11
-rw-r--r--src/libstrerr/strerr_warn4x.c11
-rw-r--r--src/libstrerr/strerr_warn5sys.c11
-rw-r--r--src/libstrerr/strerr_warn5x.c11
-rw-r--r--src/libstrerr/strerr_warn6sys.c11
-rw-r--r--src/libstrerr/strerr_warn6x.c11
-rw-r--r--src/libstrerr/strerr_warn7sys.c11
-rw-r--r--src/libstrerr/strerr_warn7x.c11
-rw-r--r--src/libstrerr/strerr_warn8sys.c11
-rw-r--r--src/libstrerr/strerr_warn8x.c11
-rw-r--r--src/libstrerr/strerr_warn9sys.c11
-rw-r--r--src/libstrerr/strerr_warn9x.c11
-rw-r--r--src/libstrerr/strerr_warnl.c22
-rw-r--r--src/libstrerr/strerr_warnlsys.c22
-rw-r--r--src/libstrerr/strerr_warnv.c17
-rw-r--r--src/libstrerr/strerr_warnvsys.c20
52 files changed, 634 insertions, 0 deletions
diff --git a/src/libstrerr/strerr_die10sys.c b/src/libstrerr/strerr_die10sys.c
new file mode 100644
index 0000000..a4801dd
--- /dev/null
+++ b/src/libstrerr/strerr_die10sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die10sys (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9, char const *x10)
+{
+ char const *v[10] = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10 } ;
+ strerr_dievsys(e, v, 10) ;
+}
diff --git a/src/libstrerr/strerr_die10x.c b/src/libstrerr/strerr_die10x.c
new file mode 100644
index 0000000..6999dfe
--- /dev/null
+++ b/src/libstrerr/strerr_die10x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die10x (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9, char const *x10)
+{
+ char const *v[10] = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10 } ;
+ strerr_diev(e, v, 10) ;
+}
diff --git a/src/libstrerr/strerr_die11sys.c b/src/libstrerr/strerr_die11sys.c
new file mode 100644
index 0000000..71da57d
--- /dev/null
+++ b/src/libstrerr/strerr_die11sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die11sys (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9, char const *x10, char const *x11)
+{
+ char const *v[11] = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11 } ;
+ strerr_dievsys(e, v, 11) ;
+}
diff --git a/src/libstrerr/strerr_die11x.c b/src/libstrerr/strerr_die11x.c
new file mode 100644
index 0000000..a18e0fa
--- /dev/null
+++ b/src/libstrerr/strerr_die11x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die11x (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9, char const *x10, char const *x11)
+{
+ char const *v[11] = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11 } ;
+ strerr_diev(e, v, 11) ;
+}
diff --git a/src/libstrerr/strerr_die1sys.c b/src/libstrerr/strerr_die1sys.c
new file mode 100644
index 0000000..1ec5ea1
--- /dev/null
+++ b/src/libstrerr/strerr_die1sys.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die1sys (int e, char const *x1)
+{
+ strerr_dievsys(e, &x1, 1) ;
+}
diff --git a/src/libstrerr/strerr_die1x.c b/src/libstrerr/strerr_die1x.c
new file mode 100644
index 0000000..b56dd53
--- /dev/null
+++ b/src/libstrerr/strerr_die1x.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die1x (int e, char const *x1)
+{
+ strerr_diev(e, &x1, 1) ;
+}
diff --git a/src/libstrerr/strerr_die2sys.c b/src/libstrerr/strerr_die2sys.c
new file mode 100644
index 0000000..ffe25af
--- /dev/null
+++ b/src/libstrerr/strerr_die2sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die2sys (int e, char const *x1, char const *x2)
+{
+ char const *v[2] = { x1, x2 } ;
+ strerr_dievsys(e, v, 2) ;
+}
diff --git a/src/libstrerr/strerr_die2x.c b/src/libstrerr/strerr_die2x.c
new file mode 100644
index 0000000..8113818
--- /dev/null
+++ b/src/libstrerr/strerr_die2x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die2x (int e, char const *x1, char const *x2)
+{
+ char const *v[2] = { x1, x2 } ;
+ strerr_diev(e, v, 2) ;
+}
diff --git a/src/libstrerr/strerr_die3sys.c b/src/libstrerr/strerr_die3sys.c
new file mode 100644
index 0000000..17bae5c
--- /dev/null
+++ b/src/libstrerr/strerr_die3sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die3sys (int e, char const *x1, char const *x2, char const *x3)
+{
+ char const *v[3] = { x1, x2, x3 } ;
+ strerr_dievsys(e, v, 3) ;
+}
diff --git a/src/libstrerr/strerr_die3x.c b/src/libstrerr/strerr_die3x.c
new file mode 100644
index 0000000..25f5612
--- /dev/null
+++ b/src/libstrerr/strerr_die3x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die3x (int e, char const *x1, char const *x2, char const *x3)
+{
+ char const *v[3] = { x1, x2, x3 } ;
+ strerr_diev(e, v, 3) ;
+}
diff --git a/src/libstrerr/strerr_die4sys.c b/src/libstrerr/strerr_die4sys.c
new file mode 100644
index 0000000..0f5a3de
--- /dev/null
+++ b/src/libstrerr/strerr_die4sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die4sys (int e, char const *x1, char const *x2, char const *x3, char const *x4)
+{
+ char const *v[4] = { x1, x2, x3, x4 } ;
+ strerr_dievsys(e, v, 4) ;
+}
diff --git a/src/libstrerr/strerr_die4x.c b/src/libstrerr/strerr_die4x.c
new file mode 100644
index 0000000..bd330a3
--- /dev/null
+++ b/src/libstrerr/strerr_die4x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die4x (int e, char const *x1, char const *x2, char const *x3, char const *x4)
+{
+ char const *v[4] = { x1, x2, x3, x4 } ;
+ strerr_diev(e, v, 4) ;
+}
diff --git a/src/libstrerr/strerr_die5sys.c b/src/libstrerr/strerr_die5sys.c
new file mode 100644
index 0000000..a4635ba
--- /dev/null
+++ b/src/libstrerr/strerr_die5sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die5sys (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5)
+{
+ char const *v[5] = { x1, x2, x3, x4, x5 } ;
+ strerr_dievsys(e, v, 5) ;
+}
diff --git a/src/libstrerr/strerr_die5x.c b/src/libstrerr/strerr_die5x.c
new file mode 100644
index 0000000..30055d7
--- /dev/null
+++ b/src/libstrerr/strerr_die5x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die5x (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5)
+{
+ char const *v[5] = { x1, x2, x3, x4, x5 } ;
+ strerr_diev(e, v, 5) ;
+}
diff --git a/src/libstrerr/strerr_die6sys.c b/src/libstrerr/strerr_die6sys.c
new file mode 100644
index 0000000..bf5ab7d
--- /dev/null
+++ b/src/libstrerr/strerr_die6sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die6sys (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6)
+{
+ char const *v[6] = { x1, x2, x3, x4, x5, x6 } ;
+ strerr_dievsys(e, v, 6) ;
+}
diff --git a/src/libstrerr/strerr_die6x.c b/src/libstrerr/strerr_die6x.c
new file mode 100644
index 0000000..294d236
--- /dev/null
+++ b/src/libstrerr/strerr_die6x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die6x (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6)
+{
+ char const *v[6] = { x1, x2, x3, x4, x5, x6 } ;
+ strerr_diev(e, v, 6) ;
+}
diff --git a/src/libstrerr/strerr_die7sys.c b/src/libstrerr/strerr_die7sys.c
new file mode 100644
index 0000000..27c305e
--- /dev/null
+++ b/src/libstrerr/strerr_die7sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die7sys (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7)
+{
+ char const *v[7] = { x1, x2, x3, x4, x5, x6, x7 } ;
+ strerr_dievsys(e, v, 7) ;
+}
diff --git a/src/libstrerr/strerr_die7x.c b/src/libstrerr/strerr_die7x.c
new file mode 100644
index 0000000..e367313
--- /dev/null
+++ b/src/libstrerr/strerr_die7x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die7x (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7)
+{
+ char const *v[7] = { x1, x2, x3, x4, x5, x6, x7 } ;
+ strerr_diev(e, v, 7) ;
+}
diff --git a/src/libstrerr/strerr_die8sys.c b/src/libstrerr/strerr_die8sys.c
new file mode 100644
index 0000000..2d7971f
--- /dev/null
+++ b/src/libstrerr/strerr_die8sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die8sys (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8)
+{
+ char const *v[8] = { x1, x2, x3, x4, x5, x6, x7, x8 } ;
+ strerr_dievsys(e, v, 8) ;
+}
diff --git a/src/libstrerr/strerr_die8x.c b/src/libstrerr/strerr_die8x.c
new file mode 100644
index 0000000..bf49c5b
--- /dev/null
+++ b/src/libstrerr/strerr_die8x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die8x (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8)
+{
+ char const *v[8] = { x1, x2, x3, x4, x5, x6, x7, x8 } ;
+ strerr_diev(e, v, 8) ;
+}
diff --git a/src/libstrerr/strerr_die9sys.c b/src/libstrerr/strerr_die9sys.c
new file mode 100644
index 0000000..9dd745f
--- /dev/null
+++ b/src/libstrerr/strerr_die9sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die9sys (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9)
+{
+ char const *v[9] = { x1, x2, x3, x4, x5, x6, x7, x8, x9 } ;
+ strerr_dievsys(e, v, 9) ;
+}
diff --git a/src/libstrerr/strerr_die9x.c b/src/libstrerr/strerr_die9x.c
new file mode 100644
index 0000000..669723e
--- /dev/null
+++ b/src/libstrerr/strerr_die9x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_die9x (int e, char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9)
+{
+ char const *v[9] = { x1, x2, x3, x4, x5, x6, x7, x8, x9 } ;
+ strerr_diev(e, v, 9) ;
+}
diff --git a/src/libstrerr/strerr_diel.c b/src/libstrerr/strerr_diel.c
new file mode 100644
index 0000000..d142402
--- /dev/null
+++ b/src/libstrerr/strerr_diel.c
@@ -0,0 +1,24 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <stdarg.h>
+#include <unistd.h>
+
+#include <skalibs/strerr.h>
+
+void strerr_diel (int e, unsigned int n, ...)
+{
+ if (n)
+ {
+ va_list ap ;
+ char const *v[n] ;
+ va_start(ap, n) ;
+ va_arg(ap, unsigned int) ;
+ for (unsigned int i = 0 ; i < n ; i++)
+ v[i++] = va_arg(ap, char const *) ;
+ va_end(ap) ;
+ strerr_warnv(v, n) ;
+ }
+ _exit(e) ;
+}
diff --git a/src/libstrerr/strerr_dielsys.c b/src/libstrerr/strerr_dielsys.c
new file mode 100644
index 0000000..5c0e334
--- /dev/null
+++ b/src/libstrerr/strerr_dielsys.c
@@ -0,0 +1,23 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <stdarg.h>
+#include <string.h>
+#include <unistd.h>
+#include <errno.h>
+
+#include <skalibs/strerr.h>
+
+void strerr_dielsys (int e, unsigned int n, ...)
+{
+ va_list ap ;
+ char const *v[n+1] ;
+ va_start(ap, n) ;
+ va_arg(ap, unsigned int) ;
+ for (unsigned int i = 0 ; i < n ; i++)
+ v[i++] = va_arg(ap, char const *) ;
+ va_end(ap) ;
+ v[n] = strerror(errno) ;
+ strerr_diev(e, v, n+1) ;
+}
diff --git a/src/libstrerr/strerr_diev.c b/src/libstrerr/strerr_diev.c
new file mode 100644
index 0000000..bf1e8fc
--- /dev/null
+++ b/src/libstrerr/strerr_diev.c
@@ -0,0 +1,13 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <unistd.h>
+
+#include <skalibs/strerr.h>
+
+void strerr_diev (int e, char const *const *v, unsigned int n)
+{
+ strerr_warnv(v, n) ;
+ _exit(e) ;
+}
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) ;
+}
diff --git a/src/libstrerr/strerr_warn10sys.c b/src/libstrerr/strerr_warn10sys.c
new file mode 100644
index 0000000..f9a448e
--- /dev/null
+++ b/src/libstrerr/strerr_warn10sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn10sys (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9, char const *x10)
+{
+ char const *v[10] = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10 } ;
+ strerr_warnvsys(v, 10) ;
+}
diff --git a/src/libstrerr/strerr_warn10x.c b/src/libstrerr/strerr_warn10x.c
new file mode 100644
index 0000000..4139f63
--- /dev/null
+++ b/src/libstrerr/strerr_warn10x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn10x (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9, char const *x10)
+{
+ char const *v[10] = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10 } ;
+ strerr_warnv(v, 10) ;
+}
diff --git a/src/libstrerr/strerr_warn11sys.c b/src/libstrerr/strerr_warn11sys.c
new file mode 100644
index 0000000..588df28
--- /dev/null
+++ b/src/libstrerr/strerr_warn11sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn11sys (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9, char const *x10, char const *x11)
+{
+ char const *v[11] = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11 } ;
+ strerr_warnvsys(v, 11) ;
+}
diff --git a/src/libstrerr/strerr_warn11x.c b/src/libstrerr/strerr_warn11x.c
new file mode 100644
index 0000000..9b4ba90
--- /dev/null
+++ b/src/libstrerr/strerr_warn11x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn11x (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9, char const *x10, char const *x11)
+{
+ char const *v[11] = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11 } ;
+ strerr_warnv(v, 11) ;
+}
diff --git a/src/libstrerr/strerr_warn1sys.c b/src/libstrerr/strerr_warn1sys.c
new file mode 100644
index 0000000..211bfb4
--- /dev/null
+++ b/src/libstrerr/strerr_warn1sys.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn1sys (char const *x1)
+{
+ strerr_warnvsys(&x1, 1) ;
+}
diff --git a/src/libstrerr/strerr_warn1x.c b/src/libstrerr/strerr_warn1x.c
new file mode 100644
index 0000000..dd54048
--- /dev/null
+++ b/src/libstrerr/strerr_warn1x.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn1x (char const *x1)
+{
+ strerr_warnv(&x1, 1) ;
+}
diff --git a/src/libstrerr/strerr_warn2sys.c b/src/libstrerr/strerr_warn2sys.c
new file mode 100644
index 0000000..0efb546
--- /dev/null
+++ b/src/libstrerr/strerr_warn2sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn2sys (char const *x1, char const *x2)
+{
+ char const *v[2] = { x1, x2 } ;
+ strerr_warnvsys(v, 2) ;
+}
diff --git a/src/libstrerr/strerr_warn2x.c b/src/libstrerr/strerr_warn2x.c
new file mode 100644
index 0000000..936c876
--- /dev/null
+++ b/src/libstrerr/strerr_warn2x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn2x (char const *x1, char const *x2)
+{
+ char const *v[2] = { x1, x2 } ;
+ strerr_warnv(v, 2) ;
+}
diff --git a/src/libstrerr/strerr_warn3sys.c b/src/libstrerr/strerr_warn3sys.c
new file mode 100644
index 0000000..b011f2d
--- /dev/null
+++ b/src/libstrerr/strerr_warn3sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn3sys (char const *x1, char const *x2, char const *x3)
+{
+ char const *v[3] = { x1, x2, x3 } ;
+ strerr_warnvsys(v, 3) ;
+}
diff --git a/src/libstrerr/strerr_warn3x.c b/src/libstrerr/strerr_warn3x.c
new file mode 100644
index 0000000..f9b95d7
--- /dev/null
+++ b/src/libstrerr/strerr_warn3x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn3x (char const *x1, char const *x2, char const *x3)
+{
+ char const *v[3] = { x1, x2, x3 } ;
+ strerr_warnv(v, 3) ;
+}
diff --git a/src/libstrerr/strerr_warn4sys.c b/src/libstrerr/strerr_warn4sys.c
new file mode 100644
index 0000000..2172363
--- /dev/null
+++ b/src/libstrerr/strerr_warn4sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn4sys (char const *x1, char const *x2, char const *x3, char const *x4)
+{
+ char const *v[4] = { x1, x2, x3, x4 } ;
+ strerr_warnvsys(v, 4) ;
+}
diff --git a/src/libstrerr/strerr_warn4x.c b/src/libstrerr/strerr_warn4x.c
new file mode 100644
index 0000000..20d8b28
--- /dev/null
+++ b/src/libstrerr/strerr_warn4x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn4x (char const *x1, char const *x2, char const *x3, char const *x4)
+{
+ char const *v[4] = { x1, x2, x3, x4 } ;
+ strerr_warnv(v, 4) ;
+}
diff --git a/src/libstrerr/strerr_warn5sys.c b/src/libstrerr/strerr_warn5sys.c
new file mode 100644
index 0000000..722d4b7
--- /dev/null
+++ b/src/libstrerr/strerr_warn5sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn5sys (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5)
+{
+ char const *v[5] = { x1, x2, x3, x4, x5 } ;
+ strerr_warnvsys(v, 5) ;
+}
diff --git a/src/libstrerr/strerr_warn5x.c b/src/libstrerr/strerr_warn5x.c
new file mode 100644
index 0000000..79d5402
--- /dev/null
+++ b/src/libstrerr/strerr_warn5x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn5x (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5)
+{
+ char const *v[5] = { x1, x2, x3, x4, x5 } ;
+ strerr_warnv(v, 5) ;
+}
diff --git a/src/libstrerr/strerr_warn6sys.c b/src/libstrerr/strerr_warn6sys.c
new file mode 100644
index 0000000..4150646
--- /dev/null
+++ b/src/libstrerr/strerr_warn6sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn6sys (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6)
+{
+ char const *v[6] = { x1, x2, x3, x4, x5, x6 } ;
+ strerr_warnvsys(v, 6) ;
+}
diff --git a/src/libstrerr/strerr_warn6x.c b/src/libstrerr/strerr_warn6x.c
new file mode 100644
index 0000000..5d94d9e
--- /dev/null
+++ b/src/libstrerr/strerr_warn6x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn6x (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6)
+{
+ char const *v[6] = { x1, x2, x3, x4, x5, x6 } ;
+ strerr_warnv(v, 6) ;
+}
diff --git a/src/libstrerr/strerr_warn7sys.c b/src/libstrerr/strerr_warn7sys.c
new file mode 100644
index 0000000..e9da56b
--- /dev/null
+++ b/src/libstrerr/strerr_warn7sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn7sys (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7)
+{
+ char const *v[7] = { x1, x2, x3, x4, x5, x6, x7 } ;
+ strerr_warnvsys(v, 7) ;
+}
diff --git a/src/libstrerr/strerr_warn7x.c b/src/libstrerr/strerr_warn7x.c
new file mode 100644
index 0000000..f963323
--- /dev/null
+++ b/src/libstrerr/strerr_warn7x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warnv2 (char const *x1, char const *x2)
+{
+ char const *v[2] = { x1, x2 } ;
+ strerr_warnv(v, 2) ;
+}
diff --git a/src/libstrerr/strerr_warn8sys.c b/src/libstrerr/strerr_warn8sys.c
new file mode 100644
index 0000000..33ce86c
--- /dev/null
+++ b/src/libstrerr/strerr_warn8sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn8sys (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8)
+{
+ char const *v[8] = { x1, x2, x3, x4, x5, x6, x7, x8 } ;
+ strerr_warnvsys(v, 8) ;
+}
diff --git a/src/libstrerr/strerr_warn8x.c b/src/libstrerr/strerr_warn8x.c
new file mode 100644
index 0000000..f4519cd
--- /dev/null
+++ b/src/libstrerr/strerr_warn8x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn8x (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8)
+{
+ char const *v[8] = { x1, x2, x3, x4, x5, x6, x7, x8 } ;
+ strerr_warnv(v, 8) ;
+}
diff --git a/src/libstrerr/strerr_warn9sys.c b/src/libstrerr/strerr_warn9sys.c
new file mode 100644
index 0000000..a5920eb
--- /dev/null
+++ b/src/libstrerr/strerr_warn9sys.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn9sys (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9)
+{
+ char const *v[9] = { x1, x2, x3, x4, x5, x6, x7, x8, x9 } ;
+ strerr_warnvsys(v, 9) ;
+}
diff --git a/src/libstrerr/strerr_warn9x.c b/src/libstrerr/strerr_warn9x.c
new file mode 100644
index 0000000..956bd4e
--- /dev/null
+++ b/src/libstrerr/strerr_warn9x.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/strerr.h>
+
+void strerr_warn9x (char const *x1, char const *x2, char const *x3, char const *x4, char const *x5, char const *x6, char const *x7, char const *x8, char const *x9)
+{
+ char const *v[9] = { x1, x2, x3, x4, x5, x6, x7, x8, x9 } ;
+ strerr_warnv(v, 9) ;
+}
diff --git a/src/libstrerr/strerr_warnl.c b/src/libstrerr/strerr_warnl.c
new file mode 100644
index 0000000..17c370d
--- /dev/null
+++ b/src/libstrerr/strerr_warnl.c
@@ -0,0 +1,22 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <stdarg.h>
+
+#include <skalibs/strerr.h>
+
+void strerr_warnl (unsigned int n, ...)
+{
+ if (n)
+ {
+ va_list ap ;
+ char const *v[n] ;
+ va_start(ap, n) ;
+ va_arg(ap, unsigned int) ;
+ for (unsigned int i = 0 ; i < n ; i++)
+ v[i++] = va_arg(ap, char const *) ;
+ va_end(ap) ;
+ strerr_warnv(v, n) ;
+ }
+}
diff --git a/src/libstrerr/strerr_warnlsys.c b/src/libstrerr/strerr_warnlsys.c
new file mode 100644
index 0000000..fbd7a6b
--- /dev/null
+++ b/src/libstrerr/strerr_warnlsys.c
@@ -0,0 +1,22 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <stdarg.h>
+#include <string.h>
+#include <errno.h>
+
+#include <skalibs/strerr.h>
+
+void strerr_warnlsys (unsigned int n, ...)
+{
+ va_list ap ;
+ char const *v[n+1] ;
+ va_start(ap, n) ;
+ va_arg(ap, unsigned int) ;
+ for (unsigned int i = 0 ; i < n ; i++)
+ v[i++] = va_arg(ap, char const *) ;
+ va_end(ap) ;
+ v[n] = strerror(errno) ;
+ strerr_warnv(v, n+1) ;
+}
diff --git a/src/libstrerr/strerr_warnv.c b/src/libstrerr/strerr_warnv.c
new file mode 100644
index 0000000..f59cfe9
--- /dev/null
+++ b/src/libstrerr/strerr_warnv.c
@@ -0,0 +1,17 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <errno.h>
+
+#include <skalibs/buffer.h>
+#include <skalibs/strerr.h>
+
+void strerr_warnv (char const *const *v, unsigned int n)
+{
+ int e = errno ;
+ for (unsigned int i = 0 ; i < n ; i++)
+ if (v[i]) buffer_puts(buffer_2, v[i]) ;
+ buffer_putflush(buffer_2, "\n", 1) ;
+ errno = e ;
+}
diff --git a/src/libstrerr/strerr_warnvsys.c b/src/libstrerr/strerr_warnvsys.c
new file mode 100644
index 0000000..fcab1b8
--- /dev/null
+++ b/src/libstrerr/strerr_warnvsys.c
@@ -0,0 +1,20 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <string.h>
+#include <errno.h>
+
+#include <skalibs/buffer.h>
+#include <skalibs/strerr.h>
+
+void strerr_warnvsys (char const *const *v, unsigned int n)
+{
+ int e = errno ;
+ for (unsigned int i = 0 ; i < n ; i++)
+ if (v[i]) buffer_puts(buffer_2, v[i]) ;
+ buffer_put(buffer_2, ": ", 2) ;
+ buffer_puts(buffer_2, strerror(e)) ;
+ buffer_putflush(buffer_2, "\n", 1) ;
+ errno = e ;
+}