public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4364] New: _XOPEN_VERSION and unistd.h
@ 2007-04-14 23:44 madcoder at debian dot org
  2007-04-14 23:45 ` [Bug libc/4364] " madcoder at debian dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: madcoder at debian dot org @ 2007-04-14 23:44 UTC (permalink / raw)
  To: glibc-bugs

quoting from: http://bugs.debian.org/203412, attached is a patch

===================================================================
SUSv3 [0] states that:

  The following symbolic constant shall be defined only if the
  implementation supports the XSI option; see XSI Conformance.
  
    _XOPEN_VERSION
    [XSI] 
    Integer value indicating version of the X/Open Portability Guide to
        which the implementation conforms. The value shall be 600. 

It furthermore states [0]:

  _XOPEN_UNIX
    [XSI] 
     The implementation supports the XSI extension.

Therefore, if _XOPEN_UNIX is defined, as it is, unconditionally to 1,
then at least at some time _XOPEN_VERSION must be defined to 600.

The only place I can find that _XOPEN_VERSION is mentioned is unistd.h,
which has the following snippet of code:

  /* X/Open version number to which the library conforms.  It is selectable.  
*/
  #ifdef __USE_UNIX98
  # define _XOPEN_VERSION       500
  #else
  # define _XOPEN_VERSION       4
  #endif

There is a complicated set of preprocessor directives in features.h that
chooses appropriately; for _XOPEN_SOURCE=600, _XOPEN_VERSION=500, not
600. Oops.


  [0] http://www.opengroup.org/onlinepubs/007904975/basedefs/unistd.h.html

-- 
           Summary: _XOPEN_VERSION and unistd.h
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: madcoder at debian dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4364

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-12 15:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-14 23:44 [Bug libc/4364] New: _XOPEN_VERSION and unistd.h madcoder at debian dot org
2007-04-14 23:45 ` [Bug libc/4364] " madcoder at debian dot org
2007-04-15  0:08 ` jakub at redhat dot com
2007-04-16 23:44 ` drepper at redhat dot com
2007-07-12 15:10 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).