From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8250 Path: news.gmane.org!not-for-mail From: Brad Conroy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: Using direct socket syscalls on x86_32 where available? Date: Fri, 31 Jul 2015 23:13:54 +0000 (UTC) Message-ID: <1019532664.6799612.1438384435002.JavaMail.yahoo@mail.yahoo.com> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438384477 26816 80.91.229.3 (31 Jul 2015 23:14:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2015 23:14:37 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-8263-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 01 01:14:36 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZLJVc-0005YP-AD for gllmg-musl@m.gmane.org; Sat, 01 Aug 2015 01:14:36 +0200 Original-Received: (qmail 26513 invoked by uid 550); 31 Jul 2015 23:14:33 -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 26480 invoked from network); 31 Jul 2015 23:14:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1438384460; bh=4mK4fdJ9ay6HjAMUCfwhCAj6ANPR5ULPi24/ZiWSeEQ=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=Hvi8DXPQiEaYYDxRyYk6YthZy4/CLNOl0YM4o1Y1ekzyPJtZf8WSvmsZXtWKLmh6nvLblFSm8yVTFm8pzyNOktLwwsrlxhn4U/rngUkqob2MYMTbZXRNm2i3Yja1vD2/3e3jvSjNkhHDZ3eHeeJUw2Ah+0FKuUxmz5Tmh5JyN25QgDGZKTM1grgI+teDSPghoTWS7njMOiUDcPcxeXoOp3qkCf+fX6RqPDVWhocAr+CZQbjxAOjvyK4KepVwuwlkSmvCNCvlwhtw22r4QjXLbri+aw2U5NIHBEeYRg+Ej0fhCP4JcdtdUOkcD8dDG4Kb7jvFGBbvukMG1ZB7SBpm3A== X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 766184.14250.bm@omp1052.mail.bf1.yahoo.com X-YMail-OSG: VyeeZzsVM1kdKcX44Z93yriKnMGql2qmAPL8aw7f0nLNMC1vxpH8AkLjBz2eiHo 1xcTzWI6q9WD3pqt3vVa6JRDOJyG8cQ.oejZr5mXkxRk8s39_P_c2Ib.Nm4Ly2JlP7iD1CkcF6DY EdPLjli81qfbXo8yf0KeUbrp_vwuQIZ2o37OKZIFaEcKBxtDo2noefNkS5waSrWo..wSVjm22EdJ 0paYN2t5oo89RbPMKC2F_M1FWKGr.iOLS6lrmcCpdcM6EZ0YoaJ4F5l6Kjx2c3fr5S16aY83qzSP 4txZRJ0GPPk9SzMJqnksAPI44IC0hbdVAcdHCc1ffpsBb7OhQZvQcbM8SHDOW0jqOgS1FJqfE2sO X7JawtAef0JZYpz4BfvbK.bluPBAWo.Tw340Zpnbuk4yOHO3ftX5yn0wKB99Yz_sx.YhQKsWiPXO TxMTexMCpgvL24srUZsdPoM38AdHhxl0XycD9RcQr.3aEGGO5h7lzoI12QwcuHwzHw1wstf2L4rz LeCPA.4o6yA-- In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:8250 Archived-At: On 29 July 2015 at 19:32, Andy Lutomirski wrote: > On Wed, Jul 29, 2015 at 5:51 AM, Justin Cormack > wrote: >> On 28 July 2015 at 08:44, Alexander Larsson wrote: >>> On Tue, Jul 28, 2015 at 1:56 AM, Andy Lutomirski wrote: >>>> >>>> One way to implement it would be to favor the new syscalls but to set some >>>> variable the first time one of them returns ENOSYS. Once that happens, >>>> either all of them could fall back to socketcall or just that one syscall >>>> could. I've had (DRY) concerns over including a copy of unistd.h for each arch. If musl used system linux include headers, this could be an ifdef. #include #ifdef __NR_something //use syscall #else //use socketcall #endif