Re: LANANA: To Pending Device Number Registrants

From: H. Peter Anvin (hpa@transmeta.com)
Date: Tue May 15 2001 - 14:23:29 EST


Linus Torvalds wrote:
>
> But no, I don't actually like sockets all that much myself. They are hard
> to use from scripts, and many more people are familiar with open/close and
> read/write.
>

I always thought it was really strange that I couldn't open() a AF_UNIX
socket in order to write() to it (as a stream socket, of course.) It
really makes a lot of things harder to do than it needs to be, and I
would still like to see this generalization done.

That being said, if USB exported a filesystem I don't see any good reason
why you shouldn't be able to advertise "socket" (S_ISSOCK()) objects and
simply have them accept open("/dev/usb/blah/blah") instead of
connect(AF_USB, ...) -- and still use send() and recv() where it is more
appropriate to do so than using read() and write().

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 15 2001 - 21:00:43 EST