Hello Baurzhan, On Thu, Aug 28, 2008 at 10:47 PM, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > 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,
Yes, sorry -- of course you are right: i didn't look closely enough. It looks like this should be documented fo a number of other functions as well. I'll get onto it. Thanks for reporting this! Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]