mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Nicholas Wilson <nicholas.wilson@realvnc.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: Re: Feature request: building musl in a portable way
Date: Fri, 22 Dec 2017 18:01:35 +0000	[thread overview]
Message-ID: <VI1PR0502MB38856793F3F8C2500517A821E7020@VI1PR0502MB3885.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <20171222174922.GC1627@brightrain.aerifal.cx>

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.)

So it will be "Linux syscalls" - but probably with a few tweaks (as indeed Linux syscalls already differ very slightly between architectures).

Nick

  reply	other threads:[~2017-12-22 18:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-21 16:25 ardi
2017-12-21 21:38 ` Rich Felker
2017-12-22 16:09   ` ardi
2017-12-22 16:43     ` Rich Felker
2017-12-22 19:04       ` ardi
2017-12-23  8:18         ` Markus Wichmann
2017-12-23 20:57           ` ardi
2017-12-22 17:10     ` Nicholas Wilson
2017-12-22 17:49       ` Rich Felker
2017-12-22 18:01         ` Nicholas Wilson [this message]
2017-12-22 18:08           ` Rich Felker
2017-12-22 19:06             ` Nicholas Wilson
2017-12-22 19:27       ` ardi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR0502MB38856793F3F8C2500517A821E7020@VI1PR0502MB3885.eurprd05.prod.outlook.com \
    --to=nicholas.wilson@realvnc.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).