Re: [PATCH] Applying inappropriate ioctl operation on socket shouldreturn ENOTTY

From: Alan Cox
Date: Wed Apr 27 2011 - 05:46:39 EST


> EINVAL is ok too : Request or argp is not valid.

It confuses portable code in some situations

> I would say, its not a bug as you claim.

POSIX and SuS tend to disagree

> Its really too late to make such change and risk regressions.

We've been quietly doing it for hundreds of cases including the entire
tty driver. Almost nobody (you included) has actually noticed and in
doing so we fixed various porting funnies without any reported
regressions.

Networking may be a more tricky one (not that tty wasn't a large one we
fixed) but most of the other driver ones are clearly sensible.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/