mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: musl on a different syscall layer?
Date: Wed, 17 Sep 2014 13:53:46 -0400	[thread overview]
Message-ID: <20140917175346.GB23797@brightrain.aerifal.cx> (raw)
In-Reply-To: <20140917145758.GI25738@example.net>

On Wed, Sep 17, 2014 at 04:57:58PM +0200, u-wsnj@aetey.se wrote:
> An observation, NetBSD libc file looks about 50% bigger than musl
> being used (via Linux ABI) on the same system.
> 
> I am also kind of put off by the NetBSD monolithic build environment,
> musl seems much easier to handle independently of other components of
> the OS than the NetBSD libc.
> 
> Wonder how big effort would be needed to adjust musl to be compilable
> against the NetBSD native syscalls? Unlike Linux, *BSD kernels do not
> promise the stability of the syscall interface, but in practice the
> default compatibility level covers many kernel versions and looks almost
> as stable as in Linux.
> 
> (Linux-ABI-only musl would probably always remain "slightly insufficient"
> for using with OS-specific tools, when the OS is not Linux - as there
> are syscalls which reflect the internals of the kernel and they hardly
> can ever become represented via a foreign ABI)
> 
> How much in musl is fundamentally linux-specific, besides the low level
> syscall interfacing? How feasible would it be to introduce multiple
> "kernel flavour" targets?

The main requirement is having equivalent functionality available. On
the BSD targets I've asked BSD folks about, there's supposedly no
equivalent of futex except inthe Linux compat layer, which is pretty
much a show-stopper unless/until it can be remedied. clone is a big
unknown to me too. The other big potential problem is if the native
syscall API requires a stack to communicate with the kernel (one or
more BSDs require this, IIRC), since at least __unmapself needs to be
able to call SYS_munmap and SYS_exit without a stack.

Rich


  reply	other threads:[~2014-09-17 17:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-17 14:57 u-wsnj
2014-09-17 17:53 ` Rich Felker [this message]
2014-09-17 18:02   ` u-wsnj
2014-09-18  8:59     ` Justin Cormack
2018-08-13 23:12 Alexander Revin

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=20140917175346.GB23797@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --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).