sigdelset

Jeff Johnston jjohnstn@redhat.com
Wed Apr 19 19:47:00 GMT 2006


Timo Weggen wrote:
> Jeff Johnston wrote:
> 
>> Timo Weggen wrote:
>>
>>> Hello,
>>>
>>> (first post). I am using newlib 1.14.0. I discovered that on the 
>>> nosys platform "sigaddset" is defined (via preprocessor), but 
>>> sigdelset is not defined. What is the desired policy for the signal 
>>> set family of functions? Are they beyond scope of newlib? I just want 
>>> know wether I should modify newlib (for me) here to add them in for 
>>> the nosys configuration, or this in some way is the application's 
>>> responsibility.
>>>
>>> TIA, hope that wasn't convered before,
>>> Timo.
>>>
>>
>> Posix signal handling is not part of vanilla newlib.  Some systems 
>> like Cygwin, RTEMS, and Linux do add support, but you can't expect it 
>> by default.
>>
>> Now, that said, there are some default macros in 
>> libc/include/sys/signal.h defining a rudimentary sigaddset and 
>> sigemptyset.  Offhand, there is no reason sigdelset, sigfillset, or 
>> sigismember could not be added in the same vein.  I will check in a 
>> patch shortly.  If you need the actual signal handling functions, then 
>> you will have some work to do.
>>
>> -- Jeff J.
> 
> 
> Thank you, it was just the macros I was curious about. I did not want to 
> mess up the include files.

The attached patch has been checked into CVS.

-- Jeff J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signal.h.patch
Type: text/x-patch
Size: 1444 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20060419/f89dd760/attachment.bin>


More information about the Newlib mailing list