From: Davide Libenzi Subject: Re: [PATCH 06/18] flag parameters: eventfd Date: Sun, 4 May 2008 21:49:03 -0700 (PDT) Message-ID: References: <200805050342.m453gkQF029829@devserv.devel.redhat.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Linux Kernel Mailing List , netdev@vger.kernel.org, Andrew Morton , mtk.manpages@gmail.com, Linus Torvalds To: Ulrich Drepper Return-path: Received: from x35.xmailserver.org ([64.71.152.41]:51628 "EHLO x35.xmailserver.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbYEEEtE (ORCPT ); Mon, 5 May 2008 00:49:04 -0400 Received: from alien.or.mcafeemobile.com by x35.xmailserver.org with [XMail 1.25 ESMTP Server] id for from ; Mon, 5 May 2008 00:49:03 -0400 In-Reply-To: <200805050342.m453gkQF029829@devserv.devel.redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sun, 4 May 2008, Ulrich Drepper wrote: > This patch adds the new eventfd2 syscall. It extends the old eventfd > syscall by one parameter which is meant to hold a flag value. In this > patch the only flag support is EFD_CLOEXEC which causes the close-on-exec > flag for the returned file descriptor to be set. > > A new flag EFD_CLOEXEC is used instead of reusing O_CLOEXEC to prevent > exhaustion of the int bit field in case we need more flags. > > The following test must be adjusted for architectures other than x86 and > x86-64 and in case the syscall numbers changed. > Signed-off-by: Ulrich Drepper Acked-by: Davide Libenzi - Davide