Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Shorthand versions for readability | * Shorthand versions for readability | ||||
*/ | */ | ||||
#define __PRINTFLIKE(__n) __sun_attr__((__PRINTFLIKE__(__n))) | #define __PRINTFLIKE(__n) __sun_attr__((__PRINTFLIKE__(__n))) | ||||
#define __VPRINTFLIKE(__n) __sun_attr__((__VPRINTFLIKE__(__n))) | #define __VPRINTFLIKE(__n) __sun_attr__((__VPRINTFLIKE__(__n))) | ||||
#define __KPRINTFLIKE(__n) __sun_attr__((__KPRINTFLIKE__(__n))) | #define __KPRINTFLIKE(__n) __sun_attr__((__KPRINTFLIKE__(__n))) | ||||
#define __KVPRINTFLIKE(__n) __sun_attr__((__KVPRINTFLIKE__(__n))) | #define __KVPRINTFLIKE(__n) __sun_attr__((__KVPRINTFLIKE__(__n))) | ||||
#ifdef _KERNEL | #if defined(_KERNEL) || defined(_STANDALONE) | ||||
#define __NORETURN __sun_attr__((__noreturn__)) | #define __NORETURN __sun_attr__((__noreturn__)) | ||||
#endif | #endif /* _KERNEL || _STANDALONE */ | ||||
#define __CONST __sun_attr__((__const__)) | #define __CONST __sun_attr__((__const__)) | ||||
#define __PURE __sun_attr__((__pure__)) | #define __PURE __sun_attr__((__pure__)) | ||||
#if defined(INVARIANTS) && !defined(ZFS_DEBUG) | #if defined(INVARIANTS) && !defined(ZFS_DEBUG) | ||||
#define ZFS_DEBUG | #define ZFS_DEBUG | ||||
#undef NDEBUG | #undef NDEBUG | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#endif | #endif | ||||
#ifndef __cplusplus | #ifndef __cplusplus | ||||
#define __init | #define __init | ||||
#define __exit | #define __exit | ||||
#endif | #endif | ||||
#ifdef _KERNEL | #if defined(_KERNEL) || defined(_STANDALONE) | ||||
#define param_set_charp(a, b) (0) | #define param_set_charp(a, b) (0) | ||||
#define ATTR_UID AT_UID | #define ATTR_UID AT_UID | ||||
#define ATTR_GID AT_GID | #define ATTR_GID AT_GID | ||||
#define ATTR_MODE AT_MODE | #define ATTR_MODE AT_MODE | ||||
#define ATTR_XVATTR AT_XVATTR | #define ATTR_XVATTR AT_XVATTR | ||||
#define ATTR_CTIME AT_CTIME | #define ATTR_CTIME AT_CTIME | ||||
#define ATTR_MTIME AT_MTIME | #define ATTR_MTIME AT_MTIME | ||||
#define ATTR_ATIME AT_ATIME | #define ATTR_ATIME AT_ATIME | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |