develooper Front page | perl.perl5.porters | Postings from September 2017


Thread Previous
Karl Williamson
September 7, 2017 19:50
Message ID:
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 <>
> 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 <>
  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 
      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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About