From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2505 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Status of musl and RPC libraries Date: Wed, 26 Dec 2012 16:56:29 -0500 Message-ID: <20121226215629.GC20323@brightrain.aerifal.cx> References: <20121224120522.6d7cf56a.idunham@lavabit.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1356559006 19586 80.91.229.3 (26 Dec 2012 21:56:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Dec 2012 21:56:46 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2506-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 26 22:57:02 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TnyyA-0007pk-K9 for gllmg-musl@plane.gmane.org; Wed, 26 Dec 2012 22:56:58 +0100 Original-Received: (qmail 25644 invoked by uid 550); 26 Dec 2012 21:56:43 -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 25636 invoked from network); 26 Dec 2012 21:56:42 -0000 Content-Disposition: inline In-Reply-To: <20121224120522.6d7cf56a.idunham@lavabit.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2505 Archived-At: On Mon, Dec 24, 2012 at 12:05:22PM -0800, Isaac Dunham wrote: > [4] -Porting Android librpc. > > Approach number 4 was the quickest, so if you're curious, see > https://github.com/idunham/libdrpc I suspect this is the only sane approach. Most RPC code is full of hideous legacy mess, so Android is probably the only one unlikely to be encumbered by that.. > While I was porting this, I ran across one minor issue: > Linux poll(2) supports POLLRDHUP (0x2000), which _GNU_SOURCE makes > available in on glibc. This will detect when the streeam > socket peer has closed the connection. I'm not aware of a POSIX > equivalent to this. > Any chance of this getting added to poll.h (with proper feature tests)? It doesn't need to be protected. POLL* is in the reserved namespace for poll.h. I have added it in git. Rich