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


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.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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