From patchwork Mon Mar 11 14:59:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zack Weinberg X-Patchwork-Id: 1054503 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-100536-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=panix.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="Ux5WkdsO"; dkim-atps=neutral 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 44J1VV1G5hz9s4Y for ; Tue, 12 Mar 2019 02:00:01 +1100 (AEDT) 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:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=mbRPcyqVh5Od2EB0Qiz9KRrwqsYUkO9+v5GtlKBGpYk TOGpcCWTetqSCaLAmxmXBnYOTxQN6Rdvd/3tAPhTttIq263QzU+alrIqiTkrjaYH JDWB2nVDpUPhaR41DwKkypEaLF/T3jqqB6tzr32ovBnwXAGrbEtPK5v5MbIW8KCY = 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:mime-version:content-type:content-transfer-encoding; s=default; bh=+14Q51+8k1Ut1m06eslwVpFeL18=; b=Ux5WkdsOtp82b0dbb AN17cI1Y/e2ZwtAjlZldFflL1jVmSimm9wqKCVGc4djT0sMRlETru9OJ09iQBqNB WFCqqPMvavzEQRbjSLIE0NTJgUBI8S3f7eqp1HGugr/CLBGkmhbqNf7GcvlV/yhw rFg6dHEHldnb1Teef0K3OpTZu8= Received: (qmail 29127 invoked by alias); 11 Mar 2019 14:59:56 -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 29118 invoked by uid 89); 11 Mar 2019 14:59:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=H*f:sk:cover.1, aren, HX-Languages-Length:1518, HContent-Transfer-Encoding:8bit X-HELO: mailbackend.panix.com From: Zack Weinberg To: libc-alpha@sourceware.org Subject: [PATCH 1/8] Move inttypes.h and stdint.h to stdlib. Date: Mon, 11 Mar 2019 10:59:45 -0400 Message-Id: <8599cb1bbabc34c9a06c26443158fcf576e61efb.1552315664.git.zackw@panix.com> In-Reply-To: References: MIME-Version: 1.0 inttypes.h and stdint.h are in sysdeps/generic, but there are no other versions of these headers anywhere in the source tree, so they aren’t actually system-dependent. Move them to the subdirectory that installs them (stdlib). * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h: Move to stdlib. * include/inttypes.h: Adjust to match. * include/stdint.h: New wrapper. --- include/inttypes.h | 2 +- include/stdint.h | 1 + {sysdeps/generic => stdlib}/inttypes.h | 0 {sysdeps/generic => stdlib}/stdint.h | 0 4 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 include/stdint.h rename {sysdeps/generic => stdlib}/inttypes.h (100%) rename {sysdeps/generic => stdlib}/stdint.h (100%) diff --git a/include/inttypes.h b/include/inttypes.h index 33219e2a9f..3a583c6c07 100644 --- a/include/inttypes.h +++ b/include/inttypes.h @@ -1,5 +1,5 @@ #ifndef _INTTYPES_H -#include_next +#include #ifndef _ISOMAC libc_hidden_proto (strtoumax) #endif diff --git a/include/stdint.h b/include/stdint.h new file mode 100644 index 0000000000..7f428741d7 --- /dev/null +++ b/include/stdint.h @@ -0,0 +1 @@ +#include diff --git a/sysdeps/generic/inttypes.h b/stdlib/inttypes.h similarity index 100% rename from sysdeps/generic/inttypes.h rename to stdlib/inttypes.h diff --git a/sysdeps/generic/stdint.h b/stdlib/stdint.h similarity index 100% rename from sysdeps/generic/stdint.h rename to stdlib/stdint.h