[lkml]   [2002]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ENOTTY from ext3 code?
On Tue, 19 Feb 2002, Pavel Machek wrote:

> Hi!
> ext3/ioctl.c:
> ...
> return -ENOTTY;
> Does it really make sense to return "not a typewriter" from ext3
> ioctl?

But yes! The de-facto return code for a file-system ioctl() that
is undefined, i.e., wrong parameter, is ENOTTY. This is because
it really means "Not a terminal". Terminals have the most ioctls.

Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (797.90 BogoMips).

111,111,111 * 111,111,111 = 12,345,678,987,654,321

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.041 / U:36.788 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site