diff options
author | jhay <jhay@FreeBSD.org> | 1999-10-06 19:51:37 +0000 |
---|---|---|
committer | jhay <jhay@FreeBSD.org> | 1999-10-06 19:51:37 +0000 |
commit | 8705024885f4fe5dc9f980c5345971916b93dc06 (patch) | |
tree | b9324b9bd7ff75ba6a50ee72c8353745cacc0a2e /sys/compat/linux/linux_ioctl.c | |
parent | f7b632b8ac0fa12163d431402e23a2f103823e68 (diff) | |
download | FreeBSD-src-8705024885f4fe5dc9f980c5345971916b93dc06.zip FreeBSD-src-8705024885f4fe5dc9f980c5345971916b93dc06.tar.gz |
Swap IOC_OUT and IOC_IN for the SETDIR macro. The linux ioctl read and
write bits are swapped.
Reviewed by: luoqi, marcel
Diffstat (limited to 'sys/compat/linux/linux_ioctl.c')
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index d071bcd..0729be1 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -527,7 +527,7 @@ set_linux_cdrom_addr(union linux_cdrom_addr *addr, int format, int lba) addr->lba = lba; } -static unsigned dirbits[4] = { IOC_VOID, IOC_OUT, IOC_IN, IOC_INOUT }; +static unsigned dirbits[4] = { IOC_VOID, IOC_IN, IOC_OUT, IOC_INOUT }; #define SETDIR(c) (((c) & ~IOC_DIRMASK) | dirbits[args->cmd >> 30]) |