diff options
author | Karl Williamson <khw@cpan.org> | 2020-03-15 14:18:53 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-18 18:05:49 -0600 |
commit | e63f5cd52c6c3c1a6bfd3378cba9f99dea62b3b2 (patch) | |
tree | 92011858fd7fa23de8e42e98d71c97c7e4542830 /reentr.c | |
parent | 7dc0f1bb7f6dd199fb0aae6f5edfa264e67a051a (diff) | |
download | perl-e63f5cd52c6c3c1a6bfd3378cba9f99dea62b3b2.tar.gz |
reentr.[ch]: Add gmtime_r, localtime_r
This now replaces occurrences of the non re-entrant versions of these
two functions with the reentrant ones.
Diffstat (limited to 'reentr.c')
-rw-r--r-- | reentr.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -132,6 +132,12 @@ Perl_reentrant_size(pTHX) { # endif # endif /* HAS_GETSPNAM_R */ +# ifdef HAS_GMTIME_R +# endif /* HAS_GMTIME_R */ + +# ifdef HAS_LOCALTIME_R +# endif /* HAS_LOCALTIME_R */ + # ifdef HAS_READDIR_R /* This is the size Solaris recommends. * (though we go static, should use pathconf() instead) */ @@ -235,6 +241,12 @@ Perl_reentrant_init(pTHX) { Newx(PL_reentrant_buffer->_spent_buffer, PL_reentrant_buffer->_spent_size, char); # endif /* HAS_GETSPNAM_R */ +# ifdef HAS_GMTIME_R +# endif /* HAS_GMTIME_R */ + +# ifdef HAS_LOCALTIME_R +# endif /* HAS_LOCALTIME_R */ + # ifdef HAS_READDIR_R PL_reentrant_buffer->_readdir_struct = (struct dirent*)safemalloc(PL_reentrant_buffer->_readdir_size); # endif /* HAS_READDIR_R */ @@ -322,6 +334,12 @@ Perl_reentrant_free(pTHX) { Safefree(PL_reentrant_buffer->_spent_buffer); # endif /* HAS_GETSPNAM_R */ +# ifdef HAS_GMTIME_R +# endif /* HAS_GMTIME_R */ + +# ifdef HAS_LOCALTIME_R +# endif /* HAS_LOCALTIME_R */ + # ifdef HAS_READDIR_R Safefree(PL_reentrant_buffer->_readdir_struct); # endif /* HAS_READDIR_R */ |