summaryrefslogtreecommitdiff
path: root/perlapi.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-04-28 06:32:47 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-04-28 06:32:47 +0000
commit0891a229ed34cb34ddb76f1813dcb76d39a174fb (patch)
tree20ad4c23e4db58d98bc0b4a4f3ff7bb7b94f520c /perlapi.h
parent15f0f28a65432bb5e8f8e84f9d63806555182655 (diff)
downloadperl-0891a229ed34cb34ddb76f1813dcb76d39a174fb.tar.gz
Detecting errors of reentrant APIs: getgrgid_r and the like
when returning an int can either return the error in the return value or in the errno. We need a new per-interp variable to store the return value instead of clobbering the errno with it. The new variable, PL_reentrant_retint, is only used within the reentrancy framework, and immediately after it's set, so there should not be similar visibility issues as for the errno. Spotted by Edward Moy. p4raw-id: //depot/perl@19357
Diffstat (limited to 'perlapi.h')
-rw-r--r--perlapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perlapi.h b/perlapi.h
index 945ce26221..f75263702a 100644
--- a/perlapi.h
+++ b/perlapi.h
@@ -474,6 +474,8 @@ END_EXTERN_C
#define PL_ptr_table (*Perl_Iptr_table_ptr(aTHX))
#undef PL_reentrant_buffer
#define PL_reentrant_buffer (*Perl_Ireentrant_buffer_ptr(aTHX))
+#undef PL_reentrant_retint
+#define PL_reentrant_retint (*Perl_Ireentrant_retint_ptr(aTHX))
#undef PL_regex_pad
#define PL_regex_pad (*Perl_Iregex_pad_ptr(aTHX))
#undef PL_regex_padav