NetHack 2.2a/ioctl.c