How to Include Headers for siginterrupt() and vsnprintf()

Gabor PALI pgj at FreeBSD.org
Thu May 20 11:37:29 UTC 2010


Hi,

On 05/19/10 15:15, John Baldwin wrote:
> What do they do to hide the prototypes?  Do they set a specific version of 
> POSIX or ISO C that they wish to use?  Probably the code should not be doing 
> that

There is a file (rts/PosixSource.h) which does this:

#define _POSIX_SOURCE   1
#define _POSIX_C_SOURCE 199506L
#define _XOPEN_SOURCE   500
#define _ISOC99_SOURCE


The comment in the file says: "Include this file into sources which
should not need any non-Posix services.  That includes most RTS C sources."


Cheers,
:g




More information about the freebsd-hackers mailing list