From patchwork Fri Mar 14 20:03:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 330467 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id 9CAE32C00C5 for ; Sat, 15 Mar 2014 07:03:21 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=sMWy+jFcTrUlRRlRrdoO6bafYNICHOs7uvCSJeAVYA3M9T VMgmv49bwLCTSg6+b4ZJrf3hL2rb3vGtk4rx4dJnzc7RLoJDCVHl25AaucIs6Lgi drSE+JNVplnpgwyh786IQ8j7njo7BEq2+MjIBIQFoRsViCS/LXNbOjBvlLM/Q= 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:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=/iOCD2EcMy02OyI8b178wxCX02Q=; b=P/im72vMDXd3gD9tWyux OPVZQojoNL+gaUoAMT69E4mgIhEWAXo8yx2oJOUcE+7g33ZsBWPELuSWwfeMsAxX TO24gxOeTPjYLsgfx2GM8SRqhclJajV2e7drnafY1r4+AwUGktFkNli8EpPeq3vY wPBmtmwPFNMI3b/U3Qa+3I8= Received: (qmail 3544 invoked by alias); 14 Mar 2014 20:03:14 -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 3534 invoked by uid 89); 14 Mar 2014 20:03:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [PATCH roland/mman-linux] Move bits/mman-linux.h out of sysdeps/unix/sysv/linux/. Message-Id: <20140314200309.83A247449E@topped-with-meat.com> Date: Fri, 14 Mar 2014 13:03:09 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=Rt9WckWK c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=4KPrJs8tsEEA:10 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=0Y3u0BwCnMsBKFZNXxgA:9 a=CjuIK1q_8ugA:10 I'm working on a non-Linux port (NaCl) that uses the Linux bits for various things, including the bits/mman.h bits. It reduces duplication if I can just use bits/mman-linux.h, but as things stand that file is only available in Linux configurations. It's a bit nonobvious that sysdeps/unix/sysv/linux/Makefile (and soon sysdeps/nacl/Makefile) has to add bits/mman-linux.h to sysdep_headers though the header itself is outside of sysdeps/unix/sysv/linux/. But I think that wrinkle is preferable to winding up with manual duplication. If people think this is a bad idea, I can always do something more hokey in the NaCl port to copy the source file during the build or something. Opinions? Thanks, Roland 2014-03-14 Roland McGrath * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ... * bits/mman-linux.h: ... here. diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/bits/mman-linux.h similarity index 100% rename from sysdeps/unix/sysv/linux/bits/mman-linux.h rename to bits/mman-linux.h