patch-2.4.6 linux/include/asm-mips/ioctl.h
Next file: linux/include/asm-mips/ioctls.h
Previous file: linux/include/asm-mips/io.h
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Mon Jul 2 13:56:40 2001
- Orig file:
v2.4.5/linux/include/asm-mips/ioctl.h
- Orig date:
Thu Jun 26 12:33:39 1997
diff -u --recursive --new-file v2.4.5/linux/include/asm-mips/ioctl.h linux/include/asm-mips/ioctl.h
@@ -5,7 +5,7 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 1995, 1996 by Ralf Baechle
+ * Copyright (C) 1995, 1996, 2001 by Ralf Baechle
*/
#ifndef __ASM_MIPS_IOCTL_H
#define __ASM_MIPS_IOCTL_H
@@ -40,11 +40,6 @@
#define _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS)
/*
- * We to additionally limit parameters to a maximum 255 bytes.
- */
-#define _IOC_SLMASK 0xff
-
-/*
* Direction bits _IOC_NONE could be 0, but OSF/1 gives it a bit.
* And this turns out useful to catch old ioctl numbers in header
* files for us.
@@ -65,7 +60,7 @@
(((dir) << _IOC_DIRSHIFT) | \
((type) << _IOC_TYPESHIFT) | \
((nr) << _IOC_NRSHIFT) | \
- (((size) & _IOC_SLMASK) << _IOC_SIZESHIFT))
+ ((size) << _IOC_SIZESHIFT))
/* used to create numbers */
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)