On 06/01/2013 08:14 PM, Daniel J Sebald wrote:

> Please consider placing extern "C" around the sig2str and str2sig 
> declarations inside sig2str.h similar to the attached diff/changeset. We're 
> looking at using the sig2str routine in Octave and removing some code from 
> that project that is similar to what sig2str but not up-to-date with all the 
> Unix SIG definitions that might exist.

Thanks, done.

> I would also like you to consider the issue of duplicate signal definitions 
> (i.e., different SIGxxxx using the same number such as SIGCHLD and SIGCLD).  
> Right now, sig2str will return only one string associated with the signal 
> number (first appearance) even though internally the structure numname[] 
> contains a complete list.  If someone wants to know all definitions, then 
> sig2str doesn't really indicate that.  What do people think?  Should there be 
> a routine that provides a complete listing?

I suppose it wouldn't hurt...

Reply via email to