From patchwork Fri Mar 7 18:30:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 12 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (caibbdcaaahb.dreamhost.com [208.113.200.71]) by wilcox.dreamhost.com (Postfix) with ESMTP id 691743600C4 for ; Fri, 7 Mar 2014 10:30:50 -0800 (PST) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14307373) id 03B3E1473CC9; Fri, 7 Mar 2014 10:30:49 -0800 (PST) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx21.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx21.g.dreamhost.com (Postfix) with ESMTPS id BF38614874A9 for ; Fri, 7 Mar 2014 10:30:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=acCxsT3l2ojSWzR5dqKBKbW0FuT2h /PdCuKIlKGFOyAb6kLQBylnuIVtr7cZarRyLErEQkr006GZkZItC1CnZMZb/q0oN SaGa2gg16+lqSU/cGyxS0rIYv8GGeCWLAsVJnqxIXABCL1r70JLRMiSxJ0f/i/cj 4MdSJNEeDq+DUM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=ATdNyebCVgn7PQFhzkV/wC7NjF8=; b=SHt zT88OPyB+ttzg2LptU3GtNLkw8wY3Tf8QKTE1GNy6vndtnne29JiFbFLkM/MkXYk EO+gh0hOM07NNVXRSi8gQZkHzlRtlzVl0naIVNOqLOuhnIgtjytuhJvPbpXzzxwU RNm39MAdq4HylA78LAP6nJ6mNf33hbMXW6xMTH8k= Received: (qmail 3007 invoked by alias); 7 Mar 2014 18:30:47 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 2991 invoked by uid 89); 7 Mar 2014 18:30:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Fri, 7 Mar 2014 18:30:36 +0000 From: "Joseph S. Myers" To: Subject: Include all of from for older standards (bug 16670) Message-ID: MIME-Version: 1.0 X-DH-Original-To: glibc@patchwork.siddhesh.in This patch fixes one of the header namespace issues shown up by conformtest, failing to expose all symbols from as required by older standards. The patch keeps the existing behavior if __USE_XOPEN2K is defined (the default; POSIX.1-2001 was the version that made it optional to expose these symbols), but ensures that all the symbols from are exposed if an older standard is selected. Tested x86_64. 2014-03-07 Joseph Myers [BZ #16670] * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define before #include of . [!__USE_XOPEN2K] (__need_timespec): Likewise. * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove. (test-xfail-UNIX98/sched.h/conform): Likewise. diff --git a/conform/Makefile b/conform/Makefile index 3e08728..e8c9a9a 100644 --- a/conform/Makefile +++ b/conform/Makefile @@ -188,7 +188,6 @@ test-xfail-XPG4/termios.h/conform = yes test-xfail-XPG4/ucontext.h/conform = yes test-xfail-XPG4/unistd.h/conform = yes test-xfail-XPG4/utmpx.h/conform = yes -test-xfail-POSIX/sched.h/conform = yes test-xfail-POSIX/signal.h/conform = yes test-xfail-POSIX/sys/wait.h/conform = yes test-xfail-POSIX/tar.h/conform = yes @@ -197,7 +196,6 @@ test-xfail-UNIX98/fcntl.h/conform = yes test-xfail-UNIX98/langinfo.h/conform = yes test-xfail-UNIX98/netdb.h/conform = yes test-xfail-UNIX98/netinet/in.h/conform = yes -test-xfail-UNIX98/sched.h/conform = yes test-xfail-UNIX98/signal.h/conform = yes test-xfail-UNIX98/stdio.h/conform = yes test-xfail-UNIX98/stdlib.h/conform = yes diff --git a/posix/sched.h b/posix/sched.h index f7da255..779109a 100644 --- a/posix/sched.h +++ b/posix/sched.h @@ -27,8 +27,10 @@ #define __need_size_t #include -#define __need_time_t -#define __need_timespec +#ifdef __USE_XOPEN2K +# define __need_time_t +# define __need_timespec +#endif #include #ifndef __pid_t_defined