in reply to Re: Inappropriate ioctl for device
in thread Inappropriate ioctl for device

Additionally, if you ask if you can ask a question and then ask, there is a race condition where the ability to ask the question may change, so you have to check the response code anyway.

--MidLifeXis