Swap IOC_OUT and IOC_IN for the SETDIR macro. The linux ioctl read and

write bits are swapped.

Reviewed by:	luoqi, marcel
This commit is contained in:
John Hay 1999-10-06 19:51:37 +00:00
parent cb479b1136
commit 5cdfd8f709
2 changed files with 2 additions and 2 deletions

View file

@ -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])

View file

@ -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])