[stunnel-users] RE: --with-threads=ucontext portability

Michal Trojnara Michal.Trojnara at mobi-com.net
Tue Jan 31 15:53:58 CET 2006

Miloslav Trmac wrote:
> 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.

You're right about the type of arguments.
"IEEE Std 1003.1-2001/Cor 1-2002, item XSH/TC1/D6/33 is applied, clarifying
that the arguments passed to func are of type int."

What about the number of arguments?  Why isn't "1" correct?

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

I'll think about it.


More information about the stunnel-users mailing list