summaryrefslogtreecommitdiff
path: root/lib/libc/err/errx.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/err/errx.c')
-rw-r--r--lib/libc/err/errx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libc/err/errx.c b/lib/libc/err/errx.c
new file mode 100644
index 00000000..0afe999e
--- /dev/null
+++ b/lib/libc/err/errx.c
@@ -0,0 +1,10 @@
+#include <err.h>
+#include <stdarg.h>
+
+__dead void errx(int eval, const char *fmt, ...)
+{
+ va_list ap;
+ va_start(ap, fmt);
+ verrx(eval, fmt, ap);
+ va_end(ap);
+}