mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Justin Cormack <justin@specialbusservice.com>
To: musl@lists.openwall.com
Subject: Re: What would make musl 1.2?
Date: Fri, 13 Feb 2015 10:45:39 +0000	[thread overview]
Message-ID: <CAK4o1WwkqXPLko+ZJ-OgKdAA2i1gmJPMHc08790Dxbbh80ijyA@mail.gmail.com> (raw)
In-Reply-To: <1836.1423820294@CATHET.us>

On 13 February 2015 at 09:38, Anthony J. Bentley <anthony@cathet.us> wrote:
> Raphael Cohn writes:
>> Is there any possibility of adding in the ucontext.h functions? I know
>> they're deprecated, but they're still widely used - particularly by go for
>> goroutines, IIRC.
>
> It's worth mentioning that OpenBSD doesn't have ucontext, so given the
> size of its package repository (which also contains Go), ucontext can't
> be *that* widely used.

The plan9-derived Go compilers do not need the ucontext functions, it
is gccgo that does, which is needed for less common architectures but
generally not used much elsewhere as it seems to have compatibility
issues.

I do not think it is used much elsewhere but there are those of us who
use them and there is no nice substitute.

I had been planning to implement it for Musl but I am a bit unsure.
The users of it really do not want any syscalls (because the point of
green threads is speed) but there seemed to be a view that the Posix
version should preserve signal masks, although this was not clear to
me from the spec if it was really required. Most/all implementations
do in fact make syscalls, so it is in fact unclear if they are that
useful, so was coming to the conclusion that a standalone library
would be better. I have not found one, so I may write one, if only so
there is a reference assembly implementation that people can just
reuse.

Musl should remove the prototypes while it is missing the functions
though, and we should decide whether to support them (I think the
previous decision was a weak yes).

Justin


Justin


  parent reply	other threads:[~2015-02-13 10:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13  7:46 Rich Felker
2015-02-13  9:29 ` Raphael Cohn
2015-02-13  9:38   ` Anthony J. Bentley
2015-02-13  9:50     ` Raphael Cohn
2015-02-13  9:57       ` Raphael Cohn
2015-02-13 10:45     ` Justin Cormack [this message]
2015-02-13 11:07       ` u-wsnj
2015-02-13 11:09 ` Justin Cormack
2015-02-13 13:02   ` Justin Cormack
2015-02-14 23:23     ` Felix Fietkau
2015-02-15  2:44       ` Rich Felker
2015-02-15  4:07         ` Isaac Dunham
2015-02-15 12:09       ` Sebastian Gottschall
2015-02-14  0:06   ` Isaac Dunham
2015-02-14  2:21     ` Rich Felker
2015-02-14 10:23     ` Justin Cormack
2015-02-14 20:35       ` Isaac Dunham
2015-02-14  2:23 ` Rich Felker

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=CAK4o1WwkqXPLko+ZJ-OgKdAA2i1gmJPMHc08790Dxbbh80ijyA@mail.gmail.com \
    --to=justin@specialbusservice.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).