mailing list of musl libc
 help / color / mirror / code / Atom feed
* getcontext, setcontext, makecontext and swapcontext
@ 2018-01-28 12:24 Tmp File
  2018-01-29 15:38 ` William Pitcock
  2018-01-29 18:47 ` Rich Felker
  0 siblings, 2 replies; 3+ messages in thread
From: Tmp File @ 2018-01-28 12:24 UTC (permalink / raw)
  To: musl

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-29 18:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-28 12:24 getcontext, setcontext, makecontext and swapcontext Tmp File
2018-01-29 15:38 ` William Pitcock
2018-01-29 18:47 ` Rich Felker

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