From patchwork Sun Apr 3 22:29:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 64947 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp886683lbc; Sun, 3 Apr 2016 15:30:00 -0700 (PDT) X-Received: by 10.98.64.132 with SMTP id f4mr16086099pfd.146.1459722600795; Sun, 03 Apr 2016 15:30:00 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id xw5si37744440pab.189.2016.04.03.15.30.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Apr 2016 15:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-13432-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-13432-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-13432-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; q=dns; s= default; b=wCEuiILeDjSpm0Px5UXoEJBYhZq7xytZ1btjw8l1Nv4T55Bfh8jwZ s1qbldLRCwpVf/I5rhx8IfVo/Ae8PSWGo3AP2Aw7a0QSLMj0cyhsnHolnsslonFr SncN8t0MdP5qu2cUn8S8xi23p2Nh6zyM6ci7HzTyasHoV/lRnKDGak= 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; s=default; bh=wuq40trfPLdbrGKW1nyTAS9bHsI=; b=BgQ6i6cmLx7jiuQbMHKWYxIsbpUJ dYVynLsuCbgn/jRsn5NemdPkGEKZfaq5SNAOEIlUGNlqZqy6mpOM0vJUVNxt6h2t PMpquRlWDKUmFEPbk+qHzq17bvC9JmTjaiRKapUf7AQC8doP8AdB7AdH4QrOgMyG Iiv0eb0iHyxY1Uk= Received: (qmail 104512 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 104489 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=MAGIC, Hx-languages-length:1597, reserved, Reserved 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 004FE811CA for ; Sun, 3 Apr 2016 22:29:39 +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 u33MTcsj005760 (version=TLSv1/SSLv3 cipher=AES256-SHA256 bits=256 verify=NO) for ; Sun, 3 Apr 2016 18:29:39 -0400 From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH 1/2] Add cpio.h Date: Sun, 3 Apr 2016 17:29:20 -0500 Message-Id: <1459722561-8612-1-git-send-email-yselkowi@redhat.com> This header dates back to XPG3: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/cpio.h.html Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/cpio.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 newlib/libc/include/cpio.h -- 2.7.4 diff --git a/newlib/libc/include/cpio.h b/newlib/libc/include/cpio.h new file mode 100644 index 0000000..99860b2 --- /dev/null +++ b/newlib/libc/include/cpio.h @@ -0,0 +1,30 @@ +/* POSIX.1 symbolic constants for c_mode field of cpio archive format */ + +#ifndef _CPIO_H +#define _CPIO_H + +#define C_IRUSR 0000400 /* Read by owner */ +#define C_IWUSR 0000200 /* Write by owner */ +#define C_IXUSR 0000100 /* Execute by owner */ +#define C_IRGRP 0000040 /* Read by group */ +#define C_IWGRP 0000020 /* Write by group */ +#define C_IXGRP 0000010 /* Execute by group */ +#define C_IROTH 0000004 /* Read by others */ +#define C_IWOTH 0000002 /* Write by others */ +#define C_IXOTH 0000001 /* Execute by others */ +#define C_ISUID 0004000 /* Set user ID */ +#define C_ISGID 0002000 /* Set group ID */ +#define C_ISVTX 0001000 /* On directories, restricted deletion flag */ + +#define C_ISDIR 0040000 /* Directory */ +#define C_ISFIFO 0010000 /* FIFO */ +#define C_ISREG 0100000 /* Regular file */ +#define C_ISBLK 0060000 /* Block special */ +#define C_ISCHR 0020000 /* Character special */ +#define C_ISCTG 0110000 /* Reserved */ +#define C_ISLNK 0120000 /* Symbolic link */ +#define C_ISSOCK 0140000 /* Socket */ + +#define MAGIC "070707" + +#endif /* _CPIO_H */