Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4061,15 +4061,15 @@ PP(pp_crypt)
}
# ifdef USE_ITHREADS
# ifdef HAS_CRYPT_R
if (!PL_reentrant_buffer->_crypt_struct_buffer) {
if (!PL_reentrant_buffer->crypt_struct_buffer_) {
/* This should be threadsafe because in ithreads there is only
* one thread per interpreter. If this would not be true,
* we would need a mutex to protect this malloc. */
PL_reentrant_buffer->_crypt_struct_buffer =
PL_reentrant_buffer->crypt_struct_buffer_ =
(struct crypt_data *)safemalloc(sizeof(struct crypt_data));
# if defined(__GLIBC__) || defined(__EMX__)
if (PL_reentrant_buffer->_crypt_struct_buffer) {
PL_reentrant_buffer->_crypt_struct_buffer->initialized = 0;
if (PL_reentrant_buffer->crypt_struct_buffer_) {
PL_reentrant_buffer->crypt_struct_buffer_->initialized = 0;
}
# endif
}
Expand Down
6 changes: 3 additions & 3 deletions pp_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -5291,7 +5291,7 @@ PP_wrapped(pp_ghostent,
if (!hent) {
#ifdef USE_REENTRANT_API
# ifdef USE_GETHOSTENT_ERRNO
h_errno = PL_reentrant_buffer->_gethostent_errno;
h_errno = PL_reentrant_buffer->gethostent_errno_;
# endif
#endif
STATUS_UNIX_SET(h_errno);
Expand Down Expand Up @@ -5382,7 +5382,7 @@ PP_wrapped(pp_gnetent,
if (!nent) {
#ifdef USE_REENTRANT_API
# ifdef USE_GETNETENT_ERRNO
h_errno = PL_reentrant_buffer->_getnetent_errno;
h_errno = PL_reentrant_buffer->getnetent_errno_;
# endif
#endif
STATUS_UNIX_SET(h_errno);
Expand Down Expand Up @@ -5735,7 +5735,7 @@ PP_wrapped(pp_gpwent,
# if defined(__CYGWIN__) && defined(USE_REENTRANT_API)
/* Cygwin 1.5.3-1 has buggy getpwnam_r() and getpwuid_r():
* the pw_comment is left uninitialized. */
PL_reentrant_buffer->_pwent_struct.pw_comment = NULL;
PL_reentrant_buffer->pwent_struct_.pw_comment = NULL;
# endif

switch (which) {
Expand Down
Loading
Loading