From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] add eventfd syscall wrapper and helper abstractions as in glibc Date: Sun, 8 May 2011 00:26:18 -0400 Message-ID: <20110508042618.GS277@brightrain.aerifal.cx> References: <1304573418-18499-1-git-send-email-ftrvxmtrx@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1304829265 29165 80.91.229.12 (8 May 2011 04:34:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 May 2011 04:34:25 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-84-gllmg-musl=m.gmane.org@lists.openwall.com Sun May 08 06:34:16 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QIvh9-0000cM-Ak for gllmg-musl@lo.gmane.org; Sun, 08 May 2011 06:34:15 +0200 Original-Received: (qmail 32039 invoked by uid 550); 8 May 2011 04:34:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32031 invoked from network); 8 May 2011 04:34:14 -0000 Content-Disposition: inline In-Reply-To: <1304573418-18499-1-git-send-email-ftrvxmtrx@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1 On Thu, May 05, 2011 at 08:30:18AM +0300, Serge Ziryukin wrote: > abstractions are: > > typedef uint64_t eventfd_t; > int eventfd_read(int fd, eventfd_t *value); > int eventfd_write(int fd, eventfd_t value); > > these are trying to hide the details of reading and writing > on an eventfd descriptor. Committed with some minor changes for old-kernel compatibility (only using SYS_eventfd2 if flags!=0) Rich