From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12424 Path: news.gmane.org!.POSTED!not-for-mail From: "Tmp File" Newsgroups: gmane.linux.lib.musl.general Subject: getcontext, setcontext, makecontext and swapcontext Date: Sun, 28 Jan 2018 13:24:58 +0100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1517142196 19899 195.159.176.226 (28 Jan 2018 12:23:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Jan 2018 12:23:16 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12440-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jan 28 13:23:12 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eflzK-0004sS-HL for gllmg-musl@m.gmane.org; Sun, 28 Jan 2018 13:23:10 +0100 Original-Received: (qmail 5747 invoked by uid 550); 28 Jan 2018 12:25:12 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5703 invoked from network); 28 Jan 2018 12:25:11 -0000 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:XV5z/QsMuPJLgU5/au8EdkkYWCe6RdF6gNW1rGFiAp6 yiOY8TjKa4aFXv6Wu9Ye1Is8183IA0PbZcpcp9k+DDo3On5Gd0 rEC5tIg1dm5Bg4Pc9uT8wzodrwvsPdpqvx5R7OxyM4eLEuLtUT XwKcdZUIcS+K9bKqM4/kCggQsL5tODgZ458LEAy2SfpFj5GNNf VFdVi7mpJLdKENg9yo/OjsaGjP57VTE3BBOWFtxLXB8rWfOK4u ieNCbV0Kmccm4sVzYK0T5/d0fhF3upxJZ6IfL6SX88LVqs9FxF V9/gMg= X-UI-Out-Filterresults: notjunk:1;V01:K0:jD+uSKVSa3E=:XCXTCAPJUiUMYahBMd/r/K H8WQNbZT10x9f3YKB8k7HqODwmnGcJmbAg4C8q68nswQUb8DRh5JV8t03t0sF8/FFi8BsZpQk 2/yQUerU/S+gHvq0H0gdzmpE/BjToRyyh9P+K3XrCcOQ3Jbtc00soDUDRB9NCjtyMGM/qs9D9 2KgYIf0zR5UHmJrcZI2+fOOjYLtoOJG9HfFgkhFyeTiIz6xughXpuB7pVoLyabJkXfoAKCJbr t5ZwqeGi8alSqiZ4EqiXZ/+N2JTqZUXnNH7NfYG8+L8rkNG349hqrA057Rc8L+098/2oSYLxf HyEIXQlJRyUvJwGLNwdkTQyYuAzbMnzwhuFgcjf5qiG/M97L0agB9IzKSDLh/1o94BKUYMLtM qERaNQcd8Nu+njdqVZYkrklttRThdoBT5aaeizajY00f2IgYCfZFe0m666iySPocReCPunglQ f+qyOuITGm+BAco1drsX0r7g9f1dvjkID6mhA2uzRQtvbUjlp2HV Xref: news.gmane.org gmane.linux.lib.musl.general:12424 Archived-At: 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