From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id 1EE923858D32 for ; Thu, 7 Jul 2022 09:22:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1EE923858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de Received: from sslproxy03.your-server.de ([88.198.220.132]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o9Nio-000Lf3-Uj for newlib@sourceware.org; Thu, 07 Jul 2022 11:22:55 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o9Nip-000XOZ-4F for newlib@sourceware.org; Thu, 07 Jul 2022 11:22:55 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id BFA8D480135 for ; Thu, 7 Jul 2022 11:22:54 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dubBRNlPA5cf for ; Thu, 7 Jul 2022 11:22:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 829B54801B0 for ; Thu, 7 Jul 2022 11:22:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Uv6VErBW9Xrw for ; Thu, 7 Jul 2022 11:22:54 +0200 (CEST) Received: from zimbra.eb.localhost (unknown [192.168.96.242]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 65668480135 for ; Thu, 7 Jul 2022 11:22:54 +0200 (CEST) From: Sebastian Huber To: newlib@sourceware.org Subject: [PATCH] Reduce namespace pollution from Date: Thu, 7 Jul 2022 11:22:51 +0200 Message-Id: <20220707092251.104834-1-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.103.6/26596/Thu Jul 7 09:53:54 2022) X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2022 09:23:00 -0000 Provide only __daddr_t through . --- newlib/libc/include/sys/_types.h | 4 ++++ newlib/libc/include/sys/types.h | 6 ++---- newlib/libc/sys/rtems/include/machine/_types.h | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_= types.h index 017a0aaf6..d1112d5d1 100644 --- a/newlib/libc/include/sys/_types.h +++ b/newlib/libc/include/sys/_types.h @@ -194,6 +194,10 @@ typedef _TIME_T_ __time_t; =20 typedef _CLOCKID_T_ __clockid_t; =20 +#ifndef __machine_daddr_t_defined +typedef long __daddr_t; +#endif + #define _TIMER_T_ unsigned long typedef _TIMER_T_ __timer_t; =20 diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/ty= pes.h index 4613ac81f..5035d540d 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -115,10 +115,8 @@ typedef _TIME_T_ time_t; #define _TIME_T_DECLARED #endif =20 -#ifndef __daddr_t_defined -typedef long daddr_t; -#define __daddr_t_defined -#endif +typedef __daddr_t daddr_t; + #ifndef __caddr_t_defined typedef char * caddr_t; #define __caddr_t_defined diff --git a/newlib/libc/sys/rtems/include/machine/_types.h b/newlib/libc= /sys/rtems/include/machine/_types.h index 5bbe5a5a6..48a320624 100644 --- a/newlib/libc/sys/rtems/include/machine/_types.h +++ b/newlib/libc/sys/rtems/include/machine/_types.h @@ -30,8 +30,8 @@ typedef __uint64_t _CLOCK_T_; typedef int _CLOCKID_T_; #define __machine_clockid_t_defined =20 -typedef __int64_t daddr_t; -#define __daddr_t_defined +typedef __int64_t __daddr_t; +#define __machine_daddr_t_defined =20 typedef int __accmode_t; /* access permissions */ typedef __uint32_t __fixpt_t; /* fixed point number */ --=20 2.35.3