public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/19029] New: _XOPEN_VERSION and _XOPEN_UNIX not defined in XSI conformance mode
@ 2015-09-29 21:58 msebor at redhat dot com
2015-09-30 17:28 ` [Bug libc/19029] " msebor at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: msebor at redhat dot com @ 2015-09-29 21:58 UTC (permalink / raw)
To: glibc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 13958 bytes --]
https://sourceware.org/bugzilla/show_bug.cgi?id=19029
Bug ID: 19029
Summary: _XOPEN_VERSION and _XOPEN_UNIX not defined in XSI
conformance mode
Product: glibc
Version: 2.22
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: msebor at redhat dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
In Section 2.1.4 XSI Conformance, the latest POSIX spec states:
XSI-conforming implementations shall set the symbolic constant _XOPEN_UNIX to a
value other than -1 and shall set the symbolic constant _XOPEN_VERSION to the
value 700.
The following test shows that the latest glibc fails to define either
_XOPEN_VERSION or _XOPEN_UNIX. This problem came up while developing a
portable application that relies on _XOPEN_NAME_MAX, which is also missing
(this is the subject of bug 18229.
#define _XOPEN_SOURCE 700
#include <limits.h>
#define A(expr) _Static_assert (expr, #expr)
A (_XOPEN_UNIX != -1);
A (_XOPEN_VERSION == _XOPEN_SOURCE)
A (_XOPEN_NAME_MAX == 255);
A (_XOPEN_PATH_MAX == 1024);
tst-xopen.c:7:4: error: â_XOPEN_UNIXâ undeclared here (not in a function)
A (_XOPEN_UNIX != -1);
^
tst-xopen.c:5:33: note: in definition of macro âAâ
#define A(expr) _Static_assert (expr, #expr)
^
tst-xopen.c:7:4: error: expression in static assertion is not an integer
A (_XOPEN_UNIX != -1);
^
tst-xopen.c:5:33: note: in definition of macro âAâ
#define A(expr) _Static_assert (expr, #expr)
^
tst-xopen.c:8:4: error: â_XOPEN_VERSIONâ undeclared here (not in a function)
A (_XOPEN_VERSION == _XOPEN_SOURCE)
^
tst-xopen.c:5:33: note: in definition of macro âAâ
#define A(expr) _Static_assert (expr, #expr)
^
tst-xopen.c:8:4: error: expression in static assertion is not an integer
A (_XOPEN_VERSION == _XOPEN_SOURCE)
^
tst-xopen.c:5:33: note: in definition of macro âAâ
#define A(expr) _Static_assert (expr, #expr)
^
tst-xopen.c:5:17: error: expected â;â before â_Static_assertâ
#define A(expr) _Static_assert (expr, #expr)
^
tst-xopen.c:9:1: note: in expansion of macro âAâ
A (_XOPEN_NAME_MAX == 255);
^
tst-xopen.c:10:4: error: â_XOPEN_PATH_MAXâ undeclared here (not in a function)
A (_XOPEN_PATH_MAX == 1024);
^
tst-xopen.c:5:33: note: in definition of macro âAâ
#define A(expr) _Static_assert (expr, #expr)
^
tst-xopen.c:10:4: error: expression in static assertion is not an integer
A (_XOPEN_PATH_MAX == 1024);
^
tst-xopen.c:5:33: note: in definition of macro âAâ
#define A(expr) _Static_assert (expr, #expr)
^
--
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-29955-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed Sep 30 17:14:11 2015
Return-Path: <glibc-bugs-return-29955-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 111483 invoked by alias); 30 Sep 2015 17:14:10 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 104519 invoked by uid 55); 30 Sep 2015 17:14:04 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/19006] Make i486/i586 use vDSO syscall entry.
Date: Wed, 30 Sep 2015 17:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-19006-131-terJaZJ5BQ@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-19006-131@http.sourceware.org/bugzilla/>
References: <bug-19006-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg00354.txt.bz2
Content-length: 8760
https://sourceware.org/bugzilla/show_bug.cgi?id\x19006
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via f6d1d86d0c2cca118fd6a7734ea0ccd72b51c4b4 (commit)
from 629d220d49e0842af2766808a131893efaf6ecda (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;höd1d86d0c2cca118fd6a7734ea0ccd72b51c4b4
commit f6d1d86d0c2cca118fd6a7734ea0ccd72b51c4b4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Sep 30 10:12:26 2015 -0700
Move sysdeps/unix/sysv/linux/i386/i486/*.? to i386
Since glibc doesn't support i386 any more, we can move
sysdeps/unix/sysv/linux/i386/i486/*.? to i386.
[BZ #19006]
* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
to ...
* sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
* sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
to ...
* sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
* sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
to ...
* sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
* sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
* sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
to ...
* sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
* sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
Moved to ...
* sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
Moved to ...
* sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
to ...
* sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
Moved to ...
* sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
to ...
* sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
* sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
Removed.
* sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
Likewise.
* sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
Likewise.
* sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
Replace ../i486/pthread_cond_timedwait.S with
../pthread_cond_timedwait.S.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 72 ++++++++++++++++++++
.../unix/sysv/linux/i386/i586/libc-lowlevellock.S | 1 -
.../unix/sysv/linux/i386/i586/lll_timedlock_wait.c | 1 -
.../unix/sysv/linux/i386/i586/lll_timedwait_tid.c | 1 -
sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S | 19 -----
.../unix/sysv/linux/i386/i586/lowlevelrobustlock.S | 19 -----
.../sysv/linux/i386/i586/pthread_barrier_wait.S | 19 -----
.../sysv/linux/i386/i586/pthread_cond_broadcast.S | 19 -----
.../sysv/linux/i386/i586/pthread_cond_signal.S | 19 -----
.../sysv/linux/i386/i586/pthread_cond_timedwait.S | 19 -----
.../unix/sysv/linux/i386/i586/pthread_cond_wait.S | 19 -----
.../unix/sysv/linux/i386/i686/libc-lowlevellock.S | 1 -
.../unix/sysv/linux/i386/i686/lll_timedlock_wait.c | 1 -
.../unix/sysv/linux/i386/i686/lll_timedwait_tid.c | 1 -
sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S | 19 -----
.../unix/sysv/linux/i386/i686/lowlevelrobustlock.S | 19 -----
.../sysv/linux/i386/i686/pthread_barrier_wait.S | 19 -----
.../sysv/linux/i386/i686/pthread_cond_broadcast.S | 19 -----
.../sysv/linux/i386/i686/pthread_cond_signal.S | 19 -----
.../sysv/linux/i386/i686/pthread_cond_timedwait.S | 2 +-
.../unix/sysv/linux/i386/i686/pthread_cond_wait.S | 19 -----
.../sysv/linux/i386/{i486 => }/libc-lowlevellock.S | 0
.../linux/i386/{i486 => }/lll_timedlock_wait.c | 0
.../sysv/linux/i386/{i486 => }/lll_timedwait_tid.c | 0
.../unix/sysv/linux/i386/{i486 => }/lowlevellock.S | 0
.../linux/i386/{i486 => }/lowlevelrobustlock.S | 0
.../linux/i386/{i486 => }/pthread_barrier_wait.S | 0
.../linux/i386/{i486 => }/pthread_cond_broadcast.S | 0
.../linux/i386/{i486 => }/pthread_cond_signal.S | 0
.../linux/i386/{i486 => }/pthread_cond_timedwait.S | 0
.../sysv/linux/i386/{i486 => }/pthread_cond_wait.S | 0
31 files changed, 73 insertions(+), 254 deletions(-)
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S
delete mode 100644 sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S
rename sysdeps/unix/sysv/linux/i386/{i486 => }/libc-lowlevellock.S (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/lll_timedlock_wait.c (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/lll_timedwait_tid.c (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/lowlevellock.S (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/lowlevelrobustlock.S (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/pthread_barrier_wait.S (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/pthread_cond_broadcast.S (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/pthread_cond_signal.S (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/pthread_cond_timedwait.S (100%)
rename sysdeps/unix/sysv/linux/i386/{i486 => }/pthread_cond_wait.S (100%)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libc/19029] _XOPEN_VERSION and _XOPEN_UNIX not defined in XSI conformance mode
2015-09-29 21:58 [Bug libc/19029] New: _XOPEN_VERSION and _XOPEN_UNIX not defined in XSI conformance mode msebor at redhat dot com
@ 2015-09-30 17:28 ` msebor at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: msebor at redhat dot com @ 2015-09-30 17:28 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=19029
Martin Sebor <msebor at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Martin Sebor <msebor at redhat dot com> ---
Closing as invalid -- the test case fails to include <unistd.h>. With the
header included as required, the two asserts involving the _XOPEN _UNIX and
_XOPEN_VERSION macros compile successfully (the other two still fail but that's
bug 18229).
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-30 17:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-29 21:58 [Bug libc/19029] New: _XOPEN_VERSION and _XOPEN_UNIX not defined in XSI conformance mode msebor at redhat dot com
2015-09-30 17:28 ` [Bug libc/19029] " msebor at redhat dot com
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).