cleanup handlers and longjmp

Momchil Velikov velco@fadata.bg
Tue Dec 12 00:32:00 GMT 2000


"Martin v. Loewis" wrote:
>        [#5] A strictly conforming  program  shall  use  only  those
>        features  of  the  language  and  library  specified in this
>        International  Standard.2)   It  shall  not  produce  output
>        dependent on any unspecified, undefined, or  implementation-
>        defined   behavior,   and   shall  not  exceed  any  minimum
>        implementation limit.
> 
> Since using cleanup handlers and setjmp together invokes undefined
> behaviour, a program doing so is not strictly conforming. Therefore,
> extensions may provide a definition for the behaviour where the
> standard does not (as is the case with every extension).

I'm convinced, thanks.

Regards,
-velco


More information about the Libc-alpha mailing list