LWN.net Logo

Re: [PATCH] alternative to sys_indirect, part 1

From:  Linus Torvalds <torvalds-AT-linux-foundation.org>
To:  Alan Cox <alan-AT-lxorguk.ukuu.org.uk>
Subject:  Re: [PATCH] alternative to sys_indirect, part 1
Date:  Thu, 24 Apr 2008 08:29:14 -0700 (PDT)
Message-ID:  <alpine.LFD.1.10.0804240828100.2779@woody.linux-foundation.org>
Cc:  Ulrich Drepper <drepper-AT-redhat.com>, linux-kernel-AT-vger.kernel.org, netdev-AT-vger.kernel.org, akpm-AT-linux-foundation.org
Archive-link:  Article, Thread



On Thu, 24 Apr 2008, Alan Cox wrote:
> 
> Given we will never have 2^32 socket types, and in a sense this is part
> of the type why not just use
> 
> 	socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC, ...)

Ok, I have to admit that I find this very appealing. It looks much 
cleaner, but perhaps more importantly, it also looks both readable _and_ 
easier to use for the user-space programmer.

		Linus
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds