From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128501 invoked by alias); 29 Jun 2017 12:25:38 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 128407 invoked by uid 89); 29 Jun 2017 12:25:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: dedi548.your-server.de Received: from dedi548.your-server.de (HELO dedi548.your-server.de) (85.10.215.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 Jun 2017 12:25:35 +0000 Received: from [88.198.220.130] (helo=sslproxy01.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1dQYQX-0008K4-NT for newlib@sourceware.org; Thu, 29 Jun 2017 14:20:05 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy01.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dQYQX-0002IO-3g for newlib@sourceware.org; Thu, 29 Jun 2017 14:20:05 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id BAE3F2A004F for ; Thu, 29 Jun 2017 14:20:05 +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 7nZ3X4JE5sVc for ; Thu, 29 Jun 2017 14:20:05 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 665D42A1677 for ; Thu, 29 Jun 2017 14:20:05 +0200 (CEST) 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 kKHXs2wfwgv7 for ; Thu, 29 Jun 2017 14:20:05 +0200 (CEST) Received: from huber-linux.eb.localhost (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTP id 470692A167A for ; Thu, 29 Jun 2017 14:20:05 +0200 (CEST) From: Sebastian Huber To: newlib@sourceware.org Subject: [PATCH v3 4/5] Enable _REENT_GLOBAL_STDIO_STREAMS for RTEMS Date: Thu, 29 Jun 2017 12:25:00 -0000 Message-Id: <20170629122002.25614-4-sebastian.huber@embedded-brains.de> In-Reply-To: <20170629122002.25614-1-sebastian.huber@embedded-brains.de> References: <20170629122002.25614-1-sebastian.huber@embedded-brains.de> X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00518.txt.bz2 Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/config.h | 1 + newlib/libc/stdio/local.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index 555239f8b..ae8caff7b 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -238,6 +238,7 @@ #define _READ_WRITE_RETURN_TYPE _ssize_t #define __DYNAMIC_REENT__ #define _REENT_GLOBAL_ATEXIT +#define _REENT_GLOBAL_STDIO_STREAMS #endif #ifndef __EXPORT diff --git a/newlib/libc/stdio/local.h b/newlib/libc/stdio/local.h index 5f6995501..511e5e35f 100644 --- a/newlib/libc/stdio/local.h +++ b/newlib/libc/stdio/local.h @@ -38,7 +38,7 @@ case _STDIO_CLOSE_PER_REENT_STD_STREAMS is defined these file descriptors will be closed via close() provided the owner of the reent structure triggerd the on demand reent initilization, see CHECK_INIT(). */ -#if !defined(__rtems__) && !defined(__tirtos__) +#if !defined(__tirtos__) #define _STDIO_CLOSE_PER_REENT_STD_STREAMS #endif -- 2.12.3