Front page | perl.perl5.porters |
Postings from September 2017
Re: RFC: PERL_REENTR
Thread Previous
From:
Karl Williamson
Date:
September 7, 2017 19:50
Subject:
Re: RFC: PERL_REENTR
Message ID:
daa1ddb4-e2c7-60cf-a629-5ba70c4aae07@khwilliamson.com
On 09/06/2017 06:19 PM, Tony Cook wrote:
> On Fri, Sep 01, 2017 at 04:02:43PM -0600, Karl Williamson wrote:
>> Perl has a facility for automatically and invisibly substituting reentrant
>> library functions when the non-reentrant one is called.
> ...
>>
>> Nor is it done on Darwin, but I don't know why.
>
> As discussed in #p5p, this seems to come from:
>
> commit 4f8ddd771cda27533f4680b572d765b063e03e11
> Author: Artur Bergman <sky@nanisky.com>
> Date: Tue Feb 5 10:30:58 2002 +0000
>
> Enable building with threads under macosx, assume __APPLE__ means darwin and disable _r functions, since we don't have them.
>
> p4raw-id: //depot/perl@14557
>
>
> which seems to be badly out of date.
>
> Tony
>
This has now been fixed in blead by
commit 14795193793753d71ffd287b58817b8fa0d8be76
Author: Karl Williamson <khw@cpan.org>
Date: Thu Sep 7 10:51:50 2017 -0600
Use reentrant functions on Darwin
Darwin does have reentrant functions, like asctime_r, and so enable
their automatic use of all the ones available. Tony Cook
speculated the
failure to use these may be behind some unexplained problems on
Darwin.
Netware is still disabled; the commit that did that did not
specify why.
It would be good if someone could come with a test that fails
(with some
regularity) until this patch is applied.
Thread Previous