fix mips ioctl read and write values