From patchwork Thu May 15 21:43:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 953 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 2C85A36007B for ; Thu, 15 May 2014 14:43:23 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14307373) id CA628592C2B6; Thu, 15 May 2014 14:43:22 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx22.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-mx22.g.dreamhost.com (Postfix) with ESMTPS id 8134158A4F61 for ; Thu, 15 May 2014 14:43:22 -0700 (PDT) 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=NHXHExvf7AsBrFzkJiQ6/KmFHwdmC mkHbcnvamULnMQ15PvXAsJwwC2TbcYndATXQxeWC1x8P141VW7/TRemGUekLGgTD DS3jOofXedWeTEBPn5D/SDwQ7WBkSzAes2HPpob2b2aqAZUrvqfOafiZC+LilvmM /5WLiUITI56heY= 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=0P0qEWiJzRDMo0B6r1T6n3/idb8=; b=lvH g/LcKRNUKqo05GEXvFaTByT6ncHQiNYzSgFWMQ5wrUGta5A6R6W4I3dfh3ezI7eH VAPJgzO1dKY+jEV21pMfWxZZneaXwAyfLko+JS1yql1H7+fi8C18GTFvdr06cgjp 0hLTIWQ1TgZsoz++2WPhY8siOb8S0FcvXO/pt0BU= Received: (qmail 27507 invoked by alias); 15 May 2014 21:43:21 -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 27498 invoked by uid 89); 15 May 2014 21:43:20 -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: Thu, 15 May 2014 21:43:05 +0000 From: "Joseph S. Myers" To: Subject: conformtest: clean up POSIX expectations for sys/mman.h, sys/stat.h, sys/types.h Message-ID: MIME-Version: 1.0 X-DH-Original-To: glibc@patchwork.siddhesh.in Continuing the series of patches to clean up conformtest expectations for "POSIX" (1995/6) based on review of the expectations against the standard, this patch cleans up expectations for sys/mman.h, sys/stat.h and sys/types.h. Tested x86_64; no new XFAILs needed. 2014-05-15 Joseph Myers * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require type. [POSIX] (off_t): Likewise. * conform/data/sys/stat.h-data (S_IRGRP): Require constant. [POSIX] (S_ISBLK): Require macro. [POSIX] (S_ISCHR): Likewise. [POSIX] (S_ISDIR): Likewise. [POSIX] (S_ISFIFO): Likewise. [POSIX] (S_ISREG): Likewise. [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list optional-macro. * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require type. [POSIX] (time_t): Likewise. [POSIX] (timer_t): Likewise. diff --git a/conform/data/sys/mman.h-data b/conform/data/sys/mman.h-data index 0555fd1..3a88684 100644 --- a/conform/data/sys/mman.h-data +++ b/conform/data/sys/mman.h-data @@ -39,8 +39,10 @@ optional-function int posix_typed_mem_get_info (int, struct posix_typed_mem_info optional-function int posix_typed_mem_open (const char*, int, int) # endif +# ifndef POSIX type size_t type off_t +# endif function int mlock (const void*, size_t) function int mlockall (int) diff --git a/conform/data/sys/stat.h-data b/conform/data/sys/stat.h-data index 41c3932..631daa4 100644 --- a/conform/data/sys/stat.h-data +++ b/conform/data/sys/stat.h-data @@ -66,6 +66,7 @@ constant S_IRUSR constant S_IWUSR constant S_IXUSR constant S_IRWXG +constant S_IRGRP constant S_IWGRP constant S_IXGRP constant S_IRWXO @@ -78,12 +79,12 @@ constant S_ISGID constant S_ISVTX #endif -#if !defined POSIX macro S_ISBLK macro S_ISCHR macro S_ISDIR macro S_ISFIFO macro S_ISREG +#if !defined POSIX macro S_ISLNK macro S_ISSOCK #endif @@ -92,7 +93,9 @@ macro S_ISSOCK optional-macro S_TYPEISMQ optional-macro S_TYPEISSEM optional-macro S_TYPEISSHM +# if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 optional-macro S_TYPEISTMO +# endif # if defined XOPEN2K8 || defined POSIX2008 constant UTIME_NOW diff --git a/conform/data/sys/types.h-data b/conform/data/sys/types.h-data index cda1954..36c5efa 100644 --- a/conform/data/sys/types.h-data +++ b/conform/data/sys/types.h-data @@ -1,6 +1,6 @@ #if !defined ISO && !defined ISO99 && !defined ISO11 -type blkcnt_t #if !defined POSIX +type blkcnt_t type blksize_t type clock_t type clockid_t @@ -48,8 +48,10 @@ type ssize_t # if !defined POSIX && !defined POSIX2008 type suseconds_t # endif +# ifndef POSIX type time_t type timer_t +# endif type uid_t allow *_t