fix bug that makes every unknown ioctl on rd(4) succeed
remove support for write-only ioctls