Posix?
Bert Wesarg
bert.wesarg at googlemail.com
Sun Jan 13 19:26:26 CET 2008
Hi,
On Jan 13, 2008 7:06 PM, Thorsten Haude <yoo at vranx.de> wrote:
> Hi,
>
> * Bert Wesarg wrote (2008-01-13 19:01):
> >On Jan 13, 2008 6:00 PM, Thorsten Haude <yoo at vranx.de> wrote:
> >> is there a Posix way to get the environment's Posix level? The things
> >> I found seem to only work with glibc.
> >What is the GLibc way?
>
> From /usr/include/features.h:
>
> - - - Schnipp - - -
> /* These are defined by the user (or the compiler)
> to specify the desired environment:
>
> __STRICT_ANSI__ ISO Standard C.
> _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
> _POSIX_SOURCE IEEE Std 1003.1.
> _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
> if >=199309L, add IEEE Std 1003.1b-1993;
> if >=199506L, add IEEE Std 1003.1c-1995
This is the way to go:
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html
Bert
More information about the Discuss
mailing list