From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.seebs.net (mail.seebs.net [162.213.38.76]) by mail.openembedded.org (Postfix) with ESMTP id A747F78267 for ; Tue, 27 Mar 2018 02:07:38 +0000 (UTC) Received: from seebsdell (unknown [24.196.59.174]) by mail.seebs.net (Postfix) with ESMTPSA id 675072E8928; Mon, 26 Mar 2018 21:07:39 -0500 (CDT) Date: Mon, 26 Mar 2018 21:07:34 -0500 From: Seebs To: Andre McCurdy Message-ID: <20180326210734.165ac038@seebsdell> In-Reply-To: References: <20180324145044.168f7e3f@seebsdell> <20180326143107.48f153a5@seebsdell> <20180326160746.1dce7ae9@seebsdell> <20180326203209.2da967eb@seebsdell> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Cc: OE-core Subject: Re: pseudo: host user contamination X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 02:07:38 -0000 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 26 Mar 2018 18:34:10 -0700 Andre McCurdy wrote: > > I remain interested in why the glibc implementation does all these > > weird things on some architectures if none of those things matter. > > Which glibc implementation? I'll take a look. syscall(2) for various architectures, which is actually implementing all this fancy ABI stuff. If that doesn't matter, why's it there? I think we may be talking past each other. I'm not looking for "I tried this once on one architecture and it worked." I'm looking for a good enough understanding of *why* all these things are in the man page, and when they might matter, that I can reasonably predict whether this will work on lots of other platforms, and continue to work in the future. Pseudo is already way off in the weeds, but it mostly works, and the reason it mostly works is that I try to find out why things are the way they are rather than disregarding them. (And I'm thinking I should possibly add an is-syscall flag to wrappers, and then have those wrappers check returns and recreate the success/fail state right before actually returning.) -s