From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5169 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [UGLY PATCH v3] Support for no-legacy-syscalls archs Date: Tue, 27 May 2014 13:29:54 +0200 Message-ID: <20140527112954.GL12324@port70.net> References: <20140525054237.GA18085@brightrain.aerifal.cx> <20140527052625.GC507@brightrain.aerifal.cx> 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 1401190218 26474 80.91.229.3 (27 May 2014 11:30:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2014 11:30:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5174-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 27 13:30:12 2014 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 1WpFa5-0005la-1F for gllmg-musl@plane.gmane.org; Tue, 27 May 2014 13:30:09 +0200 Original-Received: (qmail 19880 invoked by uid 550); 27 May 2014 11:30:07 -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 19868 invoked from network); 27 May 2014 11:30:06 -0000 Content-Disposition: inline In-Reply-To: <20140527052625.GC507@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:5169 Archived-At: * Rich Felker [2014-05-27 01:26:25 -0400]: > In the case of epoll, etc. I reworked the code to always prefer the > new syscalls and only fallback to the old ones if (1) they exist, and > (2) the new one returned ENOSYS. signalfd already has fallback code > that handles FD_CLOEXEC as best it can when the new syscall is not > available, but the others seem to be lacking the proper fallback code > so I should perhaps add that too. SOCK_CLOEXEC and SOCK_NONBLOCK fallbacks for socketpair are missing too > +#ifdef SYS_pausex > + __syscall(SYS_pause); > +#else > + __syscall(SYS_futex, &lock, FUTEX_WAIT, 1, 0); > +#endif pausex typo