public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Zack Weinberg <zackw@panix.com>
To: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
Cc: libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [RFC PATCH] Deprecate _REENTRANT and _THREAD_SAFE.
Date: Sat, 10 Dec 2016 13:56:00 -0000	[thread overview]
Message-ID: <CAKCAbMg6A=Y0viePELOmfCX-eS95AhOU4FUHy1B=u4_AUYaPhg@mail.gmail.com> (raw)
In-Reply-To: <cf5ed055-0f69-175d-690a-877ecdc44bc4@gmail.com>

On Sat, Dec 10, 2016 at 7:00 AM, Michael Kerrisk (man-pages)
<mtk.manpages@gmail.com> wrote:
> By now, the text reads:
>
>        _REENTRANT
>                Historically, on various C libraries it was  necessary  to
>                define  this  macro  in  all  multithreaded code.  (Some C
>                libraries may still require this.)  In glibc,  this  macro
>                also exposed definitions of certain reentrant functions.
>
>                However,  glibc  has  been thread-safe by default for many
>                years; since glibc 2.3, the only effect of defining _REEN‐
>                TRANT  has  been to enable one or two of the same declara‐
>                tions that are also enabled  by  defining  _POSIX_C_SOURCE
>                with a value of 199606L or greater.
>
>                _REENTRANT  is  now  obsolete.   In  glibc 2.25 and later,
>                defining   _REENTRANT   is    equivalent    to    defining
>                _POSIX_C_SOURCE with the value 199606L.  If a higher POSIX
>                conformance level is selected by any other means (such  as
>                _POSIX_C_SOURCE itself, _XOPEN_SOURCE, _DEFAULT_SOURCE, or
>                _GNU_SOURCE), then defining _REENTRANT has no effect.
>
>                This macro is automatically defined if one  compiles  with
>                cc -pthread.
>
> Seem okay?

Looks good to me.

zw

  reply	other threads:[~2016-12-10 13:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-06 15:22 Zack Weinberg
2016-12-06 15:36 ` Florian Weimer
2016-12-06 16:43   ` Zack Weinberg
2016-12-07  9:06     ` Florian Weimer
2016-12-07 13:52       ` Zack Weinberg
2016-12-08 19:51     ` Carlos O'Donell
2016-12-08 20:41       ` Zack Weinberg
2016-12-06 16:46 ` Joseph Myers
2016-12-06 16:48   ` Zack Weinberg
2016-12-08 18:21     ` Mike Frysinger
2016-12-08  9:01 ` Michael Kerrisk
2016-12-08 14:01   ` Zack Weinberg
2016-12-09 10:33     ` Michael Kerrisk (man-pages)
2016-12-09 18:07       ` Zack Weinberg
2016-12-10 12:01         ` Michael Kerrisk (man-pages)
2016-12-10 13:56           ` Zack Weinberg [this message]
2016-12-10 14:23             ` Michael Kerrisk (man-pages)

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='CAKCAbMg6A=Y0viePELOmfCX-eS95AhOU4FUHy1B=u4_AUYaPhg@mail.gmail.com' \
    --to=zackw@panix.com \
    --cc=libc-alpha@sourceware.org \
    --cc=mtk.manpages@gmail.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).