Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148161408
D53820.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
655 B
Referenced Files
None
Subscribers
None
D53820.diff
View Options
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -155,6 +155,17 @@
typedef int __cpusetid_t; /* cpuset identifier. */
typedef __int64_t __daddr_t; /* bwrite(3), FIOBMAP2, etc */
+#if !__has_feature(capabilities)
+/*
+ * On non-CHERI systems, define __(u)intcap_t to __(u)intptr_t so that
+ * hybrid-C code which needs to be explicitly aware of capabilities can
+ * use it. These types may be present in some third-party code and
+ * should not generally be used in FreeBSD code.
+ */
+typedef __intptr_t __intcap_t;
+typedef __uintptr_t __uintcap_t;
+#endif
+
/*
* Unusual type definitions.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 17, 4:37 AM (9 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29807953
Default Alt Text
D53820.diff (655 B)
Attached To
Mode
D53820: sys/_types.h: define fallback __(u)intcap_t
Attached
Detach File
Event Timeline
Log In to Comment