From: David Miller <davem@davemloft.net>
To: drepper@redhat.com
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
akpm@linux-foundation.org, davidel@xmailserver.org,
mtk.manpages@gmail.com, torvalds@linux-foundation.org
Subject: Re: [PATCH 03/18] flag parameters: paccept
Date: Mon, 05 May 2008 01:13:47 -0700 (PDT) [thread overview]
Message-ID: <20080505.011347.114192937.davem@davemloft.net> (raw)
In-Reply-To: <200805050342.m453gkBt029820@devserv.devel.redhat.com>
From: Ulrich Drepper <drepper@redhat.com>
Date: Sun, 4 May 2008 23:42:46 -0400
> This patch is by far the most complex in the series. It adds a new syscall
> paccept. This syscall differs from accept in that it adds (at the userlevel)
> two additional parameters:
>
> - a signal mask
> - a flags value
>
> The flags parameter can be used to set flag like SOCK_CLOEXEC. This is
> imlpemented here as well. Some people argued that this is a property
> which should be inherited from the file desriptor for the server but
> this is against POSIX. Additionally, we really want the signal mask
> parameter as well (similar to pselect, ppoll, etc). So an interface
> change in inevitable.
>
> The flag value is the same as for socket and socketpair. I think
> diverging here will only create confusion. Similar to the filesystem
> interfaces where the use of the O_* constants differs, it is acceptable
> here.
>
> The signal mask is handled as for pselect etc. The mask is temporarily
> installed for the thread and removed before the call returns. I modeled
> the code after pselect. If there is a problem it's likely also in
> pselect.
...
> Signed-off-by: Ulrich Drepper <drepper@redhat.com>
Acked-by: David S. Miller <davem@davemloft.net>
prev parent reply other threads:[~2008-05-05 8:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 3:42 Ulrich Drepper
2008-05-05 8:13 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080505.011347.114192937.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=akpm@linux-foundation.org \
--cc=davidel@xmailserver.org \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®