Posix?

Bert Wesarg bert.wesarg at googlemail.com
Sun Jan 13 19:33:28 CET 2008


Hi,

On Jan 13, 2008 7:26 PM, Bert Wesarg <bert.wesarg at googlemail.com> wrote:
> 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
>

Hmm, I think this is the wrong way. With this you request the
environment to be a specific version, e.g. POSIX version.

But I think you want to ask the environment whether it is a specific
version, or?

Bert


More information about the Discuss mailing list