aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-compat/err_h/err.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/err_h/err.h')
-rw-r--r--openbsd-compat/err_h/err.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/openbsd-compat/err_h/err.h b/openbsd-compat/err_h/err.h
new file mode 100644
index 00000000..a56b6188
--- /dev/null
+++ b/openbsd-compat/err_h/err.h
@@ -0,0 +1,18 @@
+#ifndef ERR_H
+#define ERR_H
+
+#ifndef LIBCRYPTOCOMPAT_ERR_H
+#define LIBCRYPTOCOMPAT_ERR_H
+
+__attribute__ ((noreturn))
+void err(int, const char *, ...);
+
+__attribute__ ((noreturn))
+void errx(int, const char *, ...);
+
+void warn(const char *, ...);
+void warnx(const char *, ...);
+
+#endif
+
+#endif