NetHack 1.3d/ioctl.c