From: Jens Staal <staal1978@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] a jmp_buf in APE question
Date: Mon, 7 Jan 2013 12:05:20 +0100 [thread overview]
Message-ID: <1637616.FvtJCIHcLZ@krypton> (raw)
In-Reply-To: <d9ae669115c31ca37f15264abd6b9d4e@kw.quanstro.net>
måndagen den 7 januari 2013 05.31.44 skrev erik quanstrom:
> the structure within jmp_buf is entirely determined by the code in setjmp.s
>
> i don't think it would be wise to rely on the structure of jmp_buf.
Do you mean by this that it would be unwise to do something like
"variable that needs to be = sp" = (jmp_buf) jb[0]
"variable that needs to be = pc" = (jmp_buf) jb[1]
this is how other similar ports of this package (GNU portable threads) have
been made, for example for win32
"variant 4", "variant 5" and "variant X" in the file pth_mctx.c are examples
of this strategy.*
*
for reference:
http://www.opensource.apple.com/source/ChatServer/ChatServer-37.1/jabberd-
src/jabberd/pth-1.4.0/pth_mctx.c?txt
next prev parent reply other threads:[~2013-01-07 11:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 5:45 Jens Staal
2013-01-07 10:31 ` erik quanstrom
2013-01-07 11:05 ` Jens Staal [this message]
2013-01-07 11:15 ` erik quanstrom
2013-01-07 16:43 ` Jens Staal
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=1637616.FvtJCIHcLZ@krypton \
--to=staal1978@gmail.com \
--cc=9fans@9fans.net \
/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.
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).