modify ioctl's return value type