Re: A few questions.....

Stephen Frost (sfrost@ns.snowman.net)
Thu, 24 Jun 1999 13:24:09 -0400 (EDT)


On Thu, 24 Jun 1999 androsyn@i95.com wrote:

> I am considering writing a new feature for Linux. Basically it would
> allow you to open arbitrary URLs with the open() call. Something like
> open("http://somehost/~somepage/foo.tar.gz", O_RDONLY)
> or
> open("ftp://somehome/foo.tar.gz", O_RDONLY)
>
> The question I have is would this be more effciently done in
> userspace(libc, etc...) or does this functionality belong in the kernel.
> I was thinking if I did go the kernel route having separate modules that
> could be loaded via kmod to handle various protocols. Another question is
> how would one do DNS lookups in the kernel?? I'd assume some callback to
> userspace to do the lookup. Also where would be the ideal place to put
> the hook into the kernel? Would it go in somewhere like sys_open() or
> elsewhere?

I would strongly suggest a userspace library. NOT part of libc,
but a seperate library, w/ it's own function calls ("open_http(char*)"),
and in fact, this quite possibly has already been done...

Stephen

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