Manually bridge fcntl() and ioctl() (both varargs). ioctl(FIONREAD) still doesn't seem to work.