summaryrefslogtreecommitdiffstats
path: root/src/messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages.h')
-rw-r--r--src/messages.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/messages.h b/src/messages.h
new file mode 100644
index 0000000..2133e4b
--- /dev/null
+++ b/src/messages.h
@@ -0,0 +1,18 @@
+/* $Id: messages.h $
+ *
+ * Message and error reporting (possibly fatal).
+ *
+ */
+
+#if !defined(_MESSAGES_H)
+#define _MESSAGES_H
+
+/* The reporting functions. The ones prefaced by "sys" add a colon, a space,
+ and the results of strerror(errno) to the output and are intended for
+ reporting failures of system calls. */
+extern void die(const char *, ...)
+ __attribute__((__noreturn__, __format__(printf, 1, 2)));
+extern void sysdie(const char *, ...)
+ __attribute__((__noreturn__, __format__(printf, 1, 2)));
+
+#endif /* _MESSAGES_H */