mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Tmp File" <tmpfile@mail.com>
To: musl@lists.openwall.com
Subject: getcontext, setcontext, makecontext and swapcontext
Date: Sun, 28 Jan 2018 13:24:58 +0100	[thread overview]
Message-ID: <trinity-faee7cc1-b4b2-493a-8b01-744bed68767c-1517142298690@3c-app-mailcom-lxa01> (raw)

Hello all.

I'm compiling many software in a musl box and (by far) the biggest wall I hit regards the functions getcontext, setcontext, makecontext and swapcontext. I understand they are deprecated, but they are used in many programs and it's usually really troublesome/tricky to modify the upstream source code to accomodate for them being unavailable on musl.

David du Colombier from plan9port mentioned[0] a simple coroutine library called libstak[1] that should help.
I see 2 possible approaches:
(i) musl imports libstak 
(ii} users somehow compile libstak and make it available for programs that need the *context functions

In case you aren't interested in (i) could somebody help us get (ii) to work?
Then musl distros like Alpine could have libstak as some kind of "compatibility" layer.
Of course (i) might be a better solution, if you aren't so concerned about getcontext, setcontext, makecontext and swapcontext "deprecation status".

Thank you.

[0] https://github.com/9fans/plan9port/issues/36#issuecomment-123992042
[1] https://github.com/0intro/libtask


             reply	other threads:[~2018-01-28 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-28 12:24 Tmp File [this message]
2018-01-29 15:38 ` William Pitcock
2018-01-29 18:47 ` 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=trinity-faee7cc1-b4b2-493a-8b01-744bed68767c-1517142298690@3c-app-mailcom-lxa01 \
    --to=tmpfile@mail.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).