From patchwork Sun Apr 3 22:29:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 64948 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp886723lbc; Sun, 3 Apr 2016 15:30:09 -0700 (PDT) X-Received: by 10.98.74.200 with SMTP id c69mr15790923pfj.129.1459722608881; Sun, 03 Apr 2016 15:30:08 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 74si37072432pfk.37.2016.04.03.15.30.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Apr 2016 15:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-13433-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of newlib-return-13433-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-13433-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=AP328LBjOq+XjfE6P3X52b1O/oF0peD r93NXfGjDRkYEgfj9+wEirWXBJIxR+fEXznEuJn+APAfFa8ez9mvh2VC0PTUB/b+ gznJi99KXb05llYaB7JvymVADpAFHOtjWJwSg1DrmM6F0+4eV2Re8dAfx8WUqYtj R2ZS683YGVLU= 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:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=zqlr3TMuut0UWqdC85RXLCKY/gk=; b=siq2E acZ3ptMLYQZjA8oxuK3Uzm4ki6viz9Y9y+34t0pf7ciC3GO2shHTaRaq6mybcxm9 VtQjXi5+QLJZNiWHk1ZrPtpNLsZnSqvPN9PHbU1kUWsRzweyjI2Pn2JDxfbzBy2y JmciNp4ZDyVuP/Xt8qLP+H2jvUqfpKRdXOCbj0= Received: (qmail 104522 invoked by alias); 3 Apr 2016 22:29:52 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 104487 invoked by uid 89); 3 Apr 2016 22:29:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1210 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 03 Apr 2016 22:29:41 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 945148B137 for ; Sun, 3 Apr 2016 22:29:40 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-26.rdu2.redhat.com [10.10.116.26]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u33MTcsk005760 (version=TLSv1/SSLv3 cipher=AES256-SHA256 bits=256 verify=NO) for ; Sun, 3 Apr 2016 18:29:40 -0400 From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH 2/2] Feature test macros overhaul: tar.h Date: Sun, 3 Apr 2016 17:29:21 -0500 Message-Id: <1459722561-8612-2-git-send-email-yselkowi@redhat.com> In-Reply-To: <1459722561-8612-1-git-send-email-yselkowi@redhat.com> References: <1459722561-8612-1-git-send-email-yselkowi@redhat.com> TSVTX was marked XSI beginning with SUSv3, compare: http://pubs.opengroup.org/onlinepubs/007908799/xsh/tar.h.html http://pubs.opengroup.org/onlinepubs/009695399/basedefs/tar.h.html http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/tar.h.html Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/tar.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 diff --git a/newlib/libc/include/tar.h b/newlib/libc/include/tar.h index 07b06dd..36437fc 100644 --- a/newlib/libc/include/tar.h +++ b/newlib/libc/include/tar.h @@ -5,6 +5,8 @@ #ifndef _TAR_H #define _TAR_H +#include + /* General definitions */ #define TMAGIC "ustar" /* ustar plus null byte. */ #define TMAGLEN 6 /* Length of the above. */ @@ -25,7 +27,9 @@ /* Mode field bit definitions (octal) */ #define TSUID 04000 /* Set UID on execution. */ #define TSGID 02000 /* Set GID on execution. */ +#if __XSI_VISIBLE || __POSIX_VISIBLE < 200112 #define TSVTX 01000 /* On directories, restricted deletion flag. */ +#endif #define TUREAD 00400 /* Read by owner. */ #define TUWRITE 00200 /* Write by owner. */ #define TUEXEC 00100 /* Execute/search by owner. */