Clean up Linux errors.
Merge the ioctl's that pass pointers.