tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: misuse of _XOPEN_SOURCE in headers?



On Thu, 28 Feb 2008 15:55:58 +0100
Matthias Drochner <M.Drochner%fz-juelich.de@localhost> wrote:

> 
> There are some places in our headers where _XOPEN_SOURCE
> is checked against the values 3 or 4.
> As I understand our <sys/featuretest.h>, susv3 and the
> standards(5) manpages of OSF1 and Solaris, _XOPEN_SOURCE
> should be either not defined at all, just defined (meaning
> XSH4.2 or so), or defined to a value >=500.
> Now some source just defining _XOPEN_SOURCE, which should
> give access to XSH4.2 functions, doesn't get definitions
> protected by eg "(_XOPEN_SOURCE - 0) >= 4".
> 
I agree it's a problem; I filed standards/37734 about this in January.  


                --Steve Bellovin, http://www.cs.columbia.edu/~smb


Home | Main Index | Thread Index | Old Index