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
* [Bug libc/4364] _XOPEN_VERSION and unistd.h
2007-04-14 23:44 [Bug libc/4364] New: _XOPEN_VERSION and unistd.h madcoder at debian dot org
@ 2007-04-14 23:45 ` madcoder at debian dot org
2007-04-15 0:08 ` jakub at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: madcoder at debian dot org @ 2007-04-14 23:45 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From madcoder at debian dot org 2007-04-15 00:45 -------
Created an attachment (id=1688)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1688&action=view)
XOPEN_VERSION will be 600
when __USE_XOPEN2K is defined.
XOPEN_VERSION will be 600 when __USE_XOPEN2K is defined.
--
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
* [Bug libc/4364] _XOPEN_VERSION and unistd.h
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
3 siblings, 0 replies; 5+ messages in thread
From: jakub at redhat dot com @ 2007-04-15 0:08 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jakub at redhat dot com 2007-04-15 01:08 -------
I'd use #elif instead, other than that it looks ok to me.
/* X/Open version number to which the library conforms. It is selectable. */
#ifdef __USE_XOPEN2K
# define _XOPEN_VERSION 600
#elif defined __USE_UNIX98
# define _XOPEN_VERSION 500
#else
# define _XOPEN_VERSION 4
#endif
--
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
* [Bug libc/4364] _XOPEN_VERSION and unistd.h
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
3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2007-04-16 23:44 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2007-04-17 00:44 -------
I checked in the patch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
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
* [Bug libc/4364] _XOPEN_VERSION and unistd.h
2007-04-14 23:44 [Bug libc/4364] New: _XOPEN_VERSION and unistd.h madcoder at debian dot org
` (2 preceding siblings ...)
2007-04-16 23:44 ` drepper at redhat dot com
@ 2007-07-12 15:10 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2007-07-12 15:10 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2007-07-12 15:10 -------
Subject: Bug 4364
CVSROOT: /cvs/glibc
Module name: libc
Branch: glibc-2_5-branch
Changes by: jakub@sourceware.org 2007-07-12 15:09:59
Modified files:
. : ChangeLog
posix : unistd.h
Log message:
2007-04-16 Ulrich Drepper <drepper@redhat.com>
[BZ #4364]
* posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/ChangeLog.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.10362.2.66&r2=1.10362.2.67
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/posix/unistd.h.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.147&r2=1.147.2.1
--
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).