Page MenuHomeFreeBSD

D26423.id77016.diff
No OneTemporary

D26423.id77016.diff

Index: sys/sys/ioccom.h
===================================================================
--- sys/sys/ioccom.h
+++ sys/sys/ioccom.h
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)ioccom.h 8.2 (Berkeley) 3/28/94
+ * @(#)ioccom.h 8.3 (Berkeley) 1/9/95
* $FreeBSD$
*/
@@ -39,6 +39,11 @@
* Ioctl's have the command encoded in the lower word, and the size of
* any in or out parameters in the upper word. The high 3 bits of the
* upper word are used to encode the in/out status of the parameter.
+ *
+ * 31 29 28 16 15 8 7 0
+ * +---------------------------------------------------------------+
+ * | I/O | Parameter Length | Command Group | Command |
+ * +---------------------------------------------------------------+
*/
#define IOCPARM_SHIFT 13 /* number of bits for ioctl size */
#define IOCPARM_MASK ((1 << IOCPARM_SHIFT) - 1) /* parameter length mask */
@@ -47,10 +52,15 @@
#define IOCGROUP(x) (((x) >> 8) & 0xff)
#define IOCPARM_MAX (1 << IOCPARM_SHIFT) /* max size of ioctl */
-#define IOC_VOID 0x20000000 /* no parameters */
-#define IOC_OUT 0x40000000 /* copy out parameters */
-#define IOC_IN 0x80000000 /* copy in parameters */
+ /* no parameters */
+#define IOC_VOID (unsigned long)0x20000000
+ /* copy out parameters */
+#define IOC_OUT (unsigned long)0x40000000
+ /* copy in parameters */
+#define IOC_IN (unsigned long)0x80000000
+ /* copy parameters in and out */
#define IOC_INOUT (IOC_IN|IOC_OUT)
+ /* mask for IN/OUT/VOID */
#define IOC_DIRMASK (IOC_VOID|IOC_OUT|IOC_IN)
#define _IOC(inout,group,num,len) ((unsigned long) \

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 16, 1:51 PM (2 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29772791
Default Alt Text
D26423.id77016.diff (1 KB)

Event Timeline