Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173666871
D23678.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
533 B
Referenced Files
None
Subscribers
None
D23678.diff
View Options
Index: head/sys/sys/sysctl.h
===================================================================
--- head/sys/sys/sysctl.h
+++ head/sys/sys/sysctl.h
@@ -270,9 +270,9 @@
#define __DESCR(d) ""
#endif
-#ifdef notyet
+#ifdef notyet
#define SYSCTL_ENFORCE_FLAGS(x) \
- _Static_assert(((CTLFLAG_MPSAFE ^ CTLFLAG_NEEDGIANT) & (x)), \
+ _Static_assert((((x) & CTLFLAG_MPSAFE) != 0) ^ (((x) & CTLFLAG_NEEDGIANT) != 0), \
"Has to be either CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT")
#else
#define SYSCTL_ENFORCE_FLAGS(x)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 28, 2:23 PM (1 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39812374
Default Alt Text
D23678.diff (533 B)
Attached To
Mode
D23678: sysctl(9): properly use xor in ENFORCE_FLAGS macro
Attached
Detach File
Event Timeline
Log In to Comment