From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24094 invoked by alias); 9 Aug 2018 04:59:23 -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 23129 invoked by uid 89); 9 Aug 2018 04:59:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=3.2 required=5.0 tests=AWL,BAYES_00,FOREIGN_BODY,SPF_PASS,T_FILL_THIS_FORM_SHORT autolearn=no version=3.3.2 spammy=Hx-languages-length:1159, H*f:sk:932842b, H*i:sk:932842b, Fax 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, 09 Aug 2018 04:59:21 +0000 Received: from [78.46.172.2] (helo=sslproxy05.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 1fnd2d-0007ng-Fe; Thu, 09 Aug 2018 06:59:19 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy05.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fnd2d-0000Ts-AK; Thu, 09 Aug 2018 06:59:19 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 0719C2A1685; Thu, 9 Aug 2018 06:59:44 +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 W1YW4ylULENe; Thu, 9 Aug 2018 06:59:43 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id B559A2A1686; Thu, 9 Aug 2018 06:59:43 +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 VkTSNI7qfKz7; Thu, 9 Aug 2018 06:59:43 +0200 (CEST) Received: from [192.168.96.149] (unknown [192.168.96.149]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 869EB2A1685; Thu, 9 Aug 2018 06:59:43 +0200 (CEST) Subject: Re: [PATCH v3 3/5] Introduce _REENT_GLOBAL_STDIO_STREAMS To: Freddie Chopin , newlib@sourceware.org References: <20170629122002.25614-1-sebastian.huber@embedded-brains.de> <20170629122002.25614-3-sebastian.huber@embedded-brains.de> <20170629183138.GY6201@calimero.vinschen.de> <20170630081306.GA6201@calimero.vinschen.de> <1068535433.14282.1498813082840.JavaMail.zimbra@embedded-brains.de> <7360fe32-cd12-5b49-1d1c-22a7b109cc49@embedded-brains.de> <932842b778dccb3546c78f42d4c0a459f79b4344.camel@op.pl> From: Sebastian Huber Message-ID: <8c99a78e-c19d-5709-8d9f-16e0053eceda@embedded-brains.de> Date: Thu, 09 Aug 2018 06:09:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <932842b778dccb3546c78f42d4c0a459f79b4344.camel@op.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018/txt/msg00629.txt.bz2 On 08/08/18 17:20, Freddie Chopin wrote: > On Wed, 2018-08-08 at 16:15 +0200, Sebastian Huber wrote: >> The thread-local IO streams are a Newlib feature that is used by our >> applications. > Don't get me wrong, but I would expect an option with "global" in the > name to make the streams really global, not "sort-of-global" (; > Otherwise it looks like a half-baked-hack to fix just some particular > problem instead of looking at the whole picture. There are two things involved here. The FILE objects and pointers to=20 FILE objects. The stdio, etc. are pointers. These pointers are=20 thread-local. The FILE objects are global and are used for the initial=20 values of these thread-local pointers. If you want to get rid of the=20 thread-local pointers, then you probably need a new configuration option. --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=C3=A4ftliche Mitteilung im Sinne des EHUG.