[lkml]   [2001]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: LANANA: To Pending Device Number Registrants
James Simmons wrote:
> >
> > fd = open("/dev/fd0/colourspace", O_RDWR);
> Yipes!! I have to say UNIX has a tendency to teach you ioctl is the only
> way. I have never thought outside of the box nor see anyone else in this
> manner. This is absolutely brillant!!! I can see alot of possibilties with
> this.

By the way, since this is of general interest...

I asked the POSIX people if there was anything in the Austin (Unix 2002)
draft that would prohibit this behaviour. The response was more or less
of the form "we are not really sure if it's within the spec, but it is
perfectly reasonable." The (only) issue seems to be whether or not the
requirement to deliver ENOTDIR in cases like this is absolute or if this
is a permissible extension. The way I interpret what I got back was
pretty much "go for it and don't worry about it."


<> at work, <> in private!
"Unix gives you enough rope to shoot yourself in the foot."
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 12:53    [W:0.228 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site