Linux ioctl fix