svn commit: r303522 - head/sys/dev/cxgbe

Ian Lepore ian at freebsd.org
Mon Aug 1 16:51:14 UTC 2016


On Mon, 2016-08-01 at 16:38 +0100, Bruce Simpson wrote:
> "Yes, I know it's not a typewriter. Why is this command not working?"
> 
> Perhaps this errno code should be aliased... and strerror() massaged
> in 
> places... assuming we strictly follow the POSIX.
> 

It's not clear just what point you're trying to make.

ENOTTY has a special meaning as a return value from an ioctl call in
some contexts (it specifically means the called routine did not handle
the command and other routines hooked into the ioctl call chain may be
able to do the job).

In addition, the strerror() output for ENOTTY says nothing about a
typewriter, the text is "Inappropriate ioctl for device."

-- Ian



More information about the svn-src-head mailing list