Hello Michael,

Thanks for the prompt reply.

On Thu, Aug 28, 2008 at 10:31:57PM +0200, Michael Kerrisk wrote:
> > I'm glad to see the feature test macros for strerror_r and strdup. Now,
> > it seems that sigaction requires _POSIX_SOURCE.
> 
> No it doesn't.  Why do you think this is so?

Well, because it's in #ifdef __USE_POSIX. Try the following:

#include <signal.h>

int
main(void)
{
        return sigaction(0, 0, 0);
}

Compiling with gcc -Wall -std=c99 a.c results in the following warning:

a.c: In function ‘main’:
a.c:6: warning: implicit declaration of function ‘sigaction’

IIRC, C99 says anything not described in it must not be defined, so I
conclude anything beyond C99 should only be available using a macro.

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to