"Typewriter" was what early Unix systems called a terminal.
Because ioctl is now supported on other devices than terminals, some systems display a different message such as "Inappropriate ioctl for device" instead.