|
|
Log in / Subscribe / Register

Re: [PATCH] alternative to sys_indirect, part 1

From:  Alan Cox <alan-AT-lxorguk.ukuu.org.uk>
To:  Ulrich Drepper <drepper-AT-redhat.com>
Subject:  Re: [PATCH] alternative to sys_indirect, part 1
Date:  Thu, 24 Apr 2008 11:25:14 +0100
Message-ID:  <[email protected]>
Cc:  linux-kernel-AT-vger.kernel.org, netdev-AT-vger.kernel.org, akpm-AT-linux-foundation.org, torvalds-AT-linux-foundation.org
Archive‑link:  Article

> - I decided against using the O_* flags here.  Most are not useful and
>   we might need the bits for something else at some time.  Hence the
>   new SOCKFL_* flag.  The intend is to define SOCKFL_CLOEXEC and
>   O_CLOEXEC to the same value.  In this case there is zero overhead.

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, ...)

that would be far far cleaner, no new syscalls on the socket side at all.

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




to post comments


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