tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rfc: tcgetattr() error reporting



On Wed, Aug 27, 2008 at 01:26:13PM +0300, Andy Shevchenko wrote:
> The tcgetattr(</dev/null>) probably should set errno to ENOTTY instead
> of EOPNOTSUPP.

I am not sure. You shouldn't call random ioctls (directly or indirectly)
on non-ttys. I would consider making an exception here as /dev/null is
often used as std*. Code in question is mmioctl in src/sys/dev/mm.c.

Joerg


Home | Main Index | Thread Index | Old Index