This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [patch/rfa]: Add _setjmp/_longjmp macros
On Jun 23 07:05, Joel Sherrill wrote:
> Corinna Vinschen wrote:
>> On Jan 13 17:32, Corinna Vinschen wrote:
>>
>>> Hi,
>>>
>>> SUSv3 defines a _setjmp/_longjmp pair of functions, which are equivalent
>>> to setjmp/longjmp, except that they shall never manipulate the signal
>>> mask:
>>>
>>> http://www.opengroup.org/onlinepubs/009695399/functions/_setjmp.html
>>>
>>> The below patch adds _setjmp and _longjmp as macros calling
>>> sigsetjmp/siglongjmp.
>>>
>>
>> I applied the below additional patch as obvious. It defines both
>> interfaces as functions when building for Cygwin.
>>
>>
> Would you mind making them available for RTEMS also?
> We try to follow SYSv3 as much as is possible in a single process,
> multithreaded environment (PSE52).
Are they actually implemented as functions?
> It should just require doing an "|| defined(__rtems__)"
Do you mind to send a quick patch w/ ChangeLog?
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat