summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/cmn_err.h12
-rw-r--r--include/sys/sysmacros.h3
-rw-r--r--include/sys/varargs.h2
3 files changed, 16 insertions, 1 deletions
diff --git a/include/sys/cmn_err.h b/include/sys/cmn_err.h
index 44ccefc9f..c76e4f465 100644
--- a/include/sys/cmn_err.h
+++ b/include/sys/cmn_err.h
@@ -1,4 +1,16 @@
#ifndef _SPL_CMN_ERR_H
#define _SPL_CMN_ERR_H
+#include <sys/varargs.h>
+
+#define CE_CONT 0 /* continuation */
+#define CE_NOTE 1 /* notice */
+#define CE_WARN 2 /* warning */
+#define CE_PANIC 3 /* panic */
+#define CE_IGNORE 4 /* print nothing */
+
+extern void cmn_err(int, const char *, ...);
+extern void vcmn_err(int, const char *, __va_list);
+extern void vpanic(const char *, __va_list);
+
#endif /* SPL_CMN_ERR_H */
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h
index b65a5797c..08d0e1971 100644
--- a/include/sys/sysmacros.h
+++ b/include/sys/sysmacros.h
@@ -6,6 +6,7 @@ extern "C" {
#endif
#include <linux/module.h>
+#include <sys/varargs.h>
#ifndef _KERNEL
#define _KERNEL __KERNEL__
@@ -28,6 +29,7 @@ extern "C" {
#define NBBY 8
#define ENOTSUP ENOTSUPP
+#define MAXMSGLEN 256
#define MAXNAMELEN 256
#define MAXPATHLEN PATH_MAX
#define MAXOFFSET_T 0x7fffffffffffffffl
@@ -36,7 +38,6 @@ extern "C" {
#define DEV_BSIZE 512
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
-#define __va_list va_list
#define max_ncpus 64
#define _NOTE(x)
diff --git a/include/sys/varargs.h b/include/sys/varargs.h
index 5a5444360..056967eaa 100644
--- a/include/sys/varargs.h
+++ b/include/sys/varargs.h
@@ -1,4 +1,6 @@
#ifndef _SPL_VARARGS_H
#define _SPL_VARARGS_H
+#define __va_list va_list
+
#endif /* SPL_VARARGS_H */