This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]