Print this page
8115 parallel zfs mount
*** 27,36 ****
--- 27,37 ----
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
* Copyright 2016 Joyent, Inc.
+ * Copyright 2017 RackTop Systems.
*/
#ifndef _SYS_CMN_ERR_H
#define _SYS_CMN_ERR_H
*** 38,47 ****
--- 39,52 ----
#include <sys/va_list.h>
#endif
#include <sys/dditypes.h>
+ #if !defined(_ASM) && defined(_FAKE_KERNEL)
+ #include <stdio.h>
+ #endif
+
#ifdef __cplusplus
extern "C" {
#endif
/* Common error handling severity levels */
*** 56,77 ****
/*PRINTFLIKE2*/
extern void cmn_err(int, const char *, ...)
__KPRINTFLIKE(2);
extern void vzcmn_err(zoneid_t, int, const char *, __va_list)
__KVPRINTFLIKE(3);
extern void dev_err(dev_info_t *, int, char *, ...)
__KPRINTFLIKE(3);
extern void vdev_err(dev_info_t *, int, const char *, __va_list)
__KVPRINTFLIKE(3);
- extern void vcmn_err(int, const char *, __va_list)
- __KVPRINTFLIKE(2);
-
/*PRINTFLIKE3*/
extern void zcmn_err(zoneid_t, int, const char *, ...)
__KPRINTFLIKE(3);
/*PRINTFLIKE1*/
--- 61,88 ----
/*PRINTFLIKE2*/
extern void cmn_err(int, const char *, ...)
__KPRINTFLIKE(2);
+ extern void vcmn_err(int, const char *, __va_list)
+ __KVPRINTFLIKE(2);
+
+ #ifndef _FAKE_KERNEL
+ /*
+ * The following functions are either absent from libfakekernel
+ * or have different prototypes from the versions in libc.
+ */
+
extern void vzcmn_err(zoneid_t, int, const char *, __va_list)
__KVPRINTFLIKE(3);
extern void dev_err(dev_info_t *, int, char *, ...)
__KPRINTFLIKE(3);
extern void vdev_err(dev_info_t *, int, const char *, __va_list)
__KVPRINTFLIKE(3);
/*PRINTFLIKE3*/
extern void zcmn_err(zoneid_t, int, const char *, ...)
__KPRINTFLIKE(3);
/*PRINTFLIKE1*/
*** 104,113 ****
--- 115,126 ----
extern char *sprintf(char *, const char *, ...)
__KPRINTFLIKE(2);
extern char *vsprintf(char *, const char *, __va_list)
__KVPRINTFLIKE(2);
+ #endif /* !_FAKE_KERNEL */
+
/*PRINTFLIKE1*/
extern void panic(const char *, ...)
__KPRINTFLIKE(1) __NORETURN;
extern void vpanic(const char *, __va_list)