aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2016-06-19 18:33:44 -0400
committerKylie McClain <somasis@exherbo.org>2016-06-19 18:33:44 -0400
commit6686b2ab1124767dd49211456bdede1c189b97ef (patch)
tree31c4c869a6cf3955f23198859d2f20b6c4a0910b
parentbe36d13c8314caea9793508fd56e7bec8fd57bba (diff)
downloadmusl-compat-6686b2ab1124767dd49211456bdede1c189b97ef.tar.gz
musl-compat-6686b2ab1124767dd49211456bdede1c189b97ef.tar.xz
musl-compat-6686b2ab1124767dd49211456bdede1c189b97ef.zip
Initial error.h (just has an error() macro right now)
-rw-r--r--include/error.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/error.h b/include/error.h
new file mode 100644
index 0000000..d966e0e
--- /dev/null
+++ b/include/error.h
@@ -0,0 +1,7 @@
+#ifndef _ERROR_H
+#define _ERROR_H 1
+#endif
+
+#include <errno.h>
+
+#define error(status, errnum, message, ...) perror(message); exit(status);