From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: Zack Weinberg <zackw@panix.com>
Cc: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH 1/2] Remove _IO_MTSAFE_IO from public headers.
Date: Thu, 06 Apr 2017 21:30:00 -0000 [thread overview]
Message-ID: <87a4474b-e4c8-fda7-1d8e-888e0446a984@linaro.org> (raw)
In-Reply-To: <CAKCAbMi0zu84hEJ+=tGC8ZWa=5t9k0Suq6g5HaDaY9gtsMPDGw@mail.gmail.com>
On 06/04/2017 17:41, Zack Weinberg wrote:
> On Thu, Apr 6, 2017 at 4:29 PM, Adhemerval Zanella
> <adhemerval.zanella@linaro.org> 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.
next prev parent reply other threads:[~2017-04-06 21:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-22 12:55 [PATCH 0/2] _ISOMAC testsuite round N Zack Weinberg
2017-03-22 12:55 ` [PATCH 1/2] Remove _IO_MTSAFE_IO from public headers Zack Weinberg
2017-04-06 20:29 ` Adhemerval Zanella
2017-04-06 20:41 ` Zack Weinberg
2017-04-06 21:30 ` Adhemerval Zanella [this message]
2017-04-06 22:06 ` Florian Weimer
2017-04-07 14:46 ` Adhemerval Zanella
2017-03-22 12:55 ` [PATCH 2/2] Suppress internal declarations for most of the testsuite Zack Weinberg
2017-05-08 14:02 ` Andreas Schwab
2017-05-08 20:02 ` Zack Weinberg
2017-05-09 7:57 ` Andreas Schwab
2017-05-09 11:25 ` Zack Weinberg
2017-04-06 16:12 ` [PATCH 0/2] _ISOMAC testsuite round N Zack Weinberg
2017-04-17 14:31 ` Zack Weinberg
2017-05-01 11:24 ` Zack Weinberg
2017-05-08 13:23 ` Zack Weinberg
-- strict thread matches above, loose matches on Subject: below --
2017-03-08 16:30 [PATCH 0/2] Revised _ISOMAC testsuite patches Zack Weinberg
2017-03-08 16:35 ` [PATCH 1/2] Remove _IO_MTSAFE_IO from public headers Zack Weinberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a4474b-e4c8-fda7-1d8e-888e0446a984@linaro.org \
--to=adhemerval.zanella@linaro.org \
--cc=libc-alpha@sourceware.org \
--cc=zackw@panix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).