Michal Trojnara wrote:
Are we still talking about IRIX?
Sorry, I was talking about Linux and forgot to say that.
The SUSv3 (POSIX) specification is at http://www.opengroup.org/onlinepubs/009695399/functions/makecontext.html:
The application shall ensure that the value of argc matches the number of arguments of type int passed to func; otherwise, the behavior is undefined.
BTW, makecontext () is now marked obsolectent by POSIX. While it probably works well on several platfoms and operating systems, maybe it should not be the default any more... Mirek