From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12277 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Feature request: building musl in a portable way Date: Fri, 22 Dec 2017 13:08:32 -0500 Message-ID: <20171222180832.GD1627@brightrain.aerifal.cx> References: <20171221213822.GY1627@brightrain.aerifal.cx> <20171222174922.GC1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1513966010 1161 195.159.176.226 (22 Dec 2017 18:06:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Dec 2017 18:06:50 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: "musl@lists.openwall.com" Original-X-From: musl-return-12293-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 22 19:06:46 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eSRiV-0008Bh-QF for gllmg-musl@m.gmane.org; Fri, 22 Dec 2017 19:06:43 +0100 Original-Received: (qmail 1927 invoked by uid 550); 22 Dec 2017 18:08:44 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 1909 invoked from network); 22 Dec 2017 18:08:43 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12277 Archived-At: On Fri, Dec 22, 2017 at 06:01:35PM +0000, Nicholas Wilson wrote: > On 22 December 2017 17:49, Rich Felker wrote: > > A bit of a historical note on this: in the late 80s and 90s there was > > an effort called "iBCS" to make a unified ABI for Intel-based unices. > > I believe a common syscall layer was part of it. It was abandoned > > after everybody realized that the Linux syscall ABI _was_, for all > > practical purposes, the unified ABI they wanted. > > That's pretty much where WebAssembly is going too! At the moment, > the WebAssembly "embedding environment" (the webpage) has to provide > a JavaScript implementation of the external dependencies of the > WebAssembly module. > > There is a desire to eventually standardise that a bit - at the > moment it's "whatever Musl wants". I think the conclusion will be > "emulate Linux everywhere". I'm expecting some small tweaks though. > For example, traditionally timezone information is stored in > userland and not available via a syscall: rather than special-case > SYS_open for "/etc/localtime", we might add a Wasm-specific syscall > for doing it. (Naturally, this would all be done in Wasm via an > override in a Wasm-specific directory.) Wouldn't just exporting a TZ variable be easier? Rich