Add errno for ioctl error.