From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47377 invoked by alias); 30 Jun 2017 08:13:12 -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 47335 invoked by uid 89); 30 Jun 2017 08:13:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=closes, freopen, H*i:sk:e59a7f5, H*f:sk:e59a7f5 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 Jun 2017 08:13:09 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4CBA97A160 for ; Fri, 30 Jun 2017 08:13:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4CBA97A160 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=vinschen@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 4CBA97A160 Received: from calimero.vinschen.de (ovpn-117-36.ams2.redhat.com [10.36.117.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0D03E7E86D for ; Fri, 30 Jun 2017 08:13:08 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id BBAFFA8061B; Fri, 30 Jun 2017 10:13:06 +0200 (CEST) Date: Fri, 30 Jun 2017 08:13:00 -0000 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: [PATCH v3 3/5] Introduce _REENT_GLOBAL_STDIO_STREAMS Message-ID: <20170630081306.GA6201@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="H7DA0n3a+SnB4bJ2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-SW-Source: 2017/txt/msg00536.txt.bz2 --H7DA0n3a+SnB4bJ2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 631 On Jun 30 07:43, Sebastian Huber wrote: > On 29/06/17 20:31, Corinna Vinschen wrote: >=20 > > And, JFYI, Cygwin will start to use it too after the next release:) >=20 > There are some new problems with this change. We have no reference counti= ng > in the FILE objects, so a freopen(..., stdin), closes the global stdin FI= LE > object (__sf[0]), etc. What works is a stdin =3D fopen(). I guess this co= uld > break existing applications. Erm... isn't that expected behaviour? stdin/stdout/stderr are global objects, after all. They were never thread-local per POSIX. Corinna --=20 Corinna Vinschen Cygwin Maintainer Red Hat --H7DA0n3a+SnB4bJ2 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZVggSAAoJEPU2Bp2uRE+gqHUP/iE4OZXZ08KX1KIR1AaJ7hp5 iVJoA84BOyXJOt4WHGGlxn4pt9lbjLw+GonHidI6IG3VVA+uyFNGReBV8X8p/o1p LYS3oOM2hTvM78VhsAf5VUhcC3Nqz47vmCAIdc8SYCH9UYuhRC31n0d9fz9zyYUo tBQgcQ3h0d1/JbRiZLTCT6rRjKrW9vQkSA5Qr9wuvsVIqYpKih28cAinz4iBIqcv WcT48X9f9JRPXUYD2bsn99iCv5w/o0j/S9ocZXTtZLD21ptSemMh3HBwTVE7+cKp 7yVj/GCsU9zbjM5DkbYhSC2/BEJwglELTQlNcXIYeNfJQ2Fcpp1qzRWsf5CLp3yB 9rQMFCaadWqsgMiNOqMW02Sgd/j17qVE776abnv4dENE9E19wEA+w4Zmy7Ni8HDQ gjAKjRgA4lO6lMFEXovAH2YJZUp5r/40MRBjGKAZyWKsaNyTPXJubHonPsZnab8J vTpPPeQXIZcH9DEPU9jcwMzJVaJao5XOaE8OYc1OMRmpPDGWzWqUZ8b7Vhqit8dD OIHhDkMpT2/K3Pzq3YX91U3MqWbrdyeZg/Ez596F10NmExY59gosslgUUIRMnJn7 gsrl3ibacQ6CZLL6IZvJhol1eVfL3mohfjjfAHtqrFy2P8trxjRKDV315zaETSuc vHY5FatKeDxUJItT0u6K =iqP+ -----END PGP SIGNATURE----- --H7DA0n3a+SnB4bJ2--