[PATCH 4/4] manual/setjmp.texi: Clarify setcontext and signal handlers text

Will Newton will.newton@linaro.org
Thu Mar 13 13:02:00 GMT 2014


On 13 March 2014 20:03, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Will Newton <will.newton@linaro.org> writes:
>
>> Calling setcontext from a signal handler can be done safely so
>> it is sufficient to note that it is not recommended.
>>
>> Also mention in setcontext documentation that restoring a context
>> created by a call to a signal handler is undefined.
>
> Unspecified and undefined are different concepts.  Unspecified means
> that the input is still valid, and the implementation must react in a
> defined way, but the standard doesn't say how.  Undefined means that the
> input is invalid, and the result is unpredictable.

Ok, I will update the patch.

Do you know where this distinction is defined?

-- 
Will Newton
Toolchain Working Group, Linaro



More information about the Libc-alpha mailing list