From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68831 invoked by alias); 6 Apr 2017 21:30:03 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 68775 invoked by uid 89); 6 Apr 2017 21:30:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-qk0-f179.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=xe6xWobu3CJs2DVuNgQbWg5FHfJksdAmEsDm1GWTAF8=; b=eJ8lh2xnFHDHvf2/IhmfveofO3JPHE/CRflyfSh2gtNfGXCEztTkhedgUnlAPQBw6+ dDFv4+EA9fTfU68w9o6jv0G5L+44iVbvmPPxmF909zLAVei/ao3/kriA+75+yyMk57Qt nzJptWCEwSiTdMB89BacRhfXrWd9bndEY8ZbMfsjUwL5RJoNK1h4UQJVsbGAyqGKdHLl S+PCB9XJ92dyTTT3c38mA+jfRB5lyGEv1UMYrRwxUkXUZiJL9/FVXpERgYCJcYYJYDA5 Gbt1WN+C9I91Wz7vyrqbfP0bHTAPqn+j9z+VvrKGHSJwDhv+qXS+igmdjPuyX06vyxZf jS1Q== X-Gm-Message-State: AN3rC/5mDLunKBsOmJR3N3xgiOOC60F88tvGBzFj0kF/0MnV47yL2ER8RqPaKWcmXIdk7Yzw X-Received: by 10.233.239.18 with SMTP id d18mr8682629qkg.313.1491514200395; Thu, 06 Apr 2017 14:30:00 -0700 (PDT) Subject: Re: [PATCH 1/2] Remove _IO_MTSAFE_IO from public headers. To: Zack Weinberg References: <20170322125504.4863-1-zackw@panix.com> <20170322125504.4863-2-zackw@panix.com> Cc: GNU C Library From: Adhemerval Zanella Message-ID: <87a4474b-e4c8-fda7-1d8e-888e0446a984@linaro.org> Date: Thu, 06 Apr 2017 21:30:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-04/txt/msg00123.txt.bz2 On 06/04/2017 17:41, Zack Weinberg wrote: > On Thu, Apr 6, 2017 at 4:29 PM, Adhemerval Zanella > wrote: >> On 22/03/2017 09:55, Zack Weinberg wrote: >>> _IO_MTSAFE_IO controls whether stdio is *built* with support for >>> multithreading. In the distant past it might also have worked as a >>> feature selection macro, allowing library *users* to select >>> thread-safe or lock-free stdio at application build time, I haven't >>> done the archaeology. Nowadays, defining _IO_MTSAFE_IO while using >>> the installed headers, or in _ISOMAC mode, will cause libio.h to throw >>> syntax errors. >> >> What prevent us to just get rid of _IO_MTSAFE_IO and just build/assume >> stdio with multithread support? > > I think that's a desirable goal, but I don't want to do that in this > patchset because I suspect it will be messy *inside* libc. And I'd > start by getting it out of the public headers, anyway. Why do you think so? The make fragment sysdeps/pthread/Makeconfig already sets libc-reentrant regardless, so _IO_MTSAFE_IO is already being defined in all objects that might use it (and I suspect it has been this way for some time already). > > (I'd like to stop installing libio.h at all, too, but that's probably > going to be nastier: > https://codesearch.debian.net/search?q=libio.h&perpkg=1) > Agreed.