Moving everything from signal.h to sys/signal.h

Christopher Faylor me@cgf.cx
Fri Oct 8 17:42:00 GMT 2004


On Thu, Oct 07, 2004 at 04:21:07PM -0400, Jeff Johnston wrote:
><sys/signal.h> is not defined by POSIX, ANSI, Single UNIX, or C99 so we're 
>largely in undefined territory here.  As previously noted, newlib's usage 
>of the sys directory doesn't necessarily match up with other C libraries 
>out there.  It seems to me the ultimate goal you want to achieve is to 
>allow existing code written against glibc that takes advantage of the fact 
>that <signal.h> and <sys/signal.h> are interchangeable.  An easy solution 
>would be to add a check in the default <sys/signal.h> that if _SIGNAL_H_ 
>wasn't already defined, to include <signal.h>.  Does that seem reasonable 
>to you?

Yes, that seems fine.  I do like trying to be as close to glibc as possible,
too.

cgf



More information about the Newlib mailing list