Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110667947
D14706.id40365.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
578 B
Referenced Files
None
Subscribers
None
D14706.id40365.diff
View Options
Index: head/sys/sys/ioccom.h
===================================================================
--- head/sys/sys/ioccom.h
+++ head/sys/sys/ioccom.h
@@ -61,6 +61,10 @@
#define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t))
/* this should be _IORW, but stdio got there first */
#define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t))
+/* Replace length/type in an ioctl command. */
+#define _IOC_NEWLEN(ioc, len) \
+ (((~(IOCPARM_MASK << 16)) & (ioc)) | (((len) & IOCPARM_MASK) << 16))
+#define _IOC_NEWTYPE(ioc, type) _IOC_NEWLEN((ioc), sizeof(type))
#ifdef _KERNEL
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 4:47 PM (3 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16775157
Default Alt Text
D14706.id40365.diff (578 B)
Attached To
Mode
D14706: Add _IOC_NEWLEN() and _IOC_NEWTYPE() macros.
Attached
Detach File
Event Timeline
Log In to Comment