Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142566042
D34033.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34033.diff
View Options
Index: sys/sys/types.h
===================================================================
--- sys/sys/types.h
+++ sys/sys/types.h
@@ -270,7 +270,7 @@
typedef __rman_res_t rman_res_t;
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_KERNEL_UT)
typedef int boolean_t;
typedef struct _device *device_t;
typedef __intfptr_t intfptr_t;
@@ -293,16 +293,16 @@
typedef struct vm_page *vm_page_t;
#define offsetof(type, field) __offsetof(type, field)
-#endif /* _KERNEL */
+#endif /* _KERNEL || _KERNEL_UT */
-#if defined(_KERNEL) || defined(_STANDALONE)
+#if defined(_KERNEL) || defined(_STANDALONE) || defined(_KERNEL_UT)
#if !defined(__bool_true_false_are_defined) && !defined(__cplusplus)
#define __bool_true_false_are_defined 1
#define false 0
#define true 1
typedef _Bool bool;
#endif /* !__bool_true_false_are_defined && !__cplusplus */
-#endif /* KERNEL || _STANDALONE */
+#endif /* KERNEL || _STANDALONE || _KERNEL_UT */
/*
* The following are all things that really shouldn't exist in this header,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 2:09 AM (15 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27826354
Default Alt Text
D34033.diff (1 KB)
Attached To
Mode
D34033: Expose <sys/types.h> kernel decls to sysunit tests
Attached
Detach File
Event Timeline
Log In to Comment