9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Questions about libthread and setjmp
@ 2005-02-21 12:15 Gorka Guardiola
  2005-02-21 15:41 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Gorka Guardiola @ 2005-02-21 12:15 UTC (permalink / raw)
  To: 9fans


I have some questions regarding the man pages of setjmp
and the thread library implementation (the commentaries).

In setjmp(2):

The commentary "-2 leaves room for old pc and new pc in frame"
in the setlabel definition (there is also a missing bracket
in  label[JMPBUFSP but that is another story).

What does it mean?. I simply don't understand it. Maybe I am
missing something...


There is another strange commentary too in the same fashion.
Probably for the same reason I don't understand the first one
I don't understand this one.


	t->sched[JMPBUFSP] = (ulong)tos - 8;		/* old PC and new PC */

Can anyone explain please?.



						G.



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

end of thread, other threads:[~2005-02-21 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-21 12:15 [9fans] Questions about libthread and setjmp Gorka Guardiola
2005-02-21 15:41 ` Russ Cox

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