summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-03-16 11:52:59 -0600
committerKarl Williamson <khw@cpan.org>2020-03-18 18:05:49 -0600
commit6f16cbe7e9bc8235fe582dd816ccae057aff9bbd (patch)
tree2584cd9b6185fbb6d164881484c19120fb180cf2
parent02af4629d48da29a881a22a61bad14e161fcf8de (diff)
downloadperl-6f16cbe7e9bc8235fe582dd816ccae057aff9bbd.tar.gz
reentr.h: Add clarifying comment
-rw-r--r--reentr.h6
-rw-r--r--regen/reentr.pl6
2 files changed, 8 insertions, 4 deletions
diff --git a/reentr.h b/reentr.h
index 34e3c22315..51e19b8f23 100644
--- a/reentr.h
+++ b/reentr.h
@@ -18,8 +18,10 @@
/* If compiling for a threaded perl, we will macro-wrap the system/library
* interfaces (e.g. getpwent()) which have threaded versions
* (e.g. getpwent_r()), which will handle things correctly for
- * the Perl interpreter, but otherwise (for XS) the wrapping does
- * not take place. See L<perlxs/Thread-aware system interfaces>.
+ * the Perl interpreter. This is done automatically for the perl core and
+ * extensions, but not generally for XS modules unless they
+ * #define PERL_REENTRANT
+ * See L<perlxs/Thread-aware system interfaces>.
*/
#ifndef PERL_REENTR_API
diff --git a/regen/reentr.pl b/regen/reentr.pl
index 2ca40ea501..49c6ee816a 100644
--- a/regen/reentr.pl
+++ b/regen/reentr.pl
@@ -68,8 +68,10 @@ print $h <<EOF;
/* If compiling for a threaded perl, we will macro-wrap the system/library
* interfaces (e.g. getpwent()) which have threaded versions
* (e.g. getpwent_r()), which will handle things correctly for
- * the Perl interpreter, but otherwise (for XS) the wrapping does
- * not take place. See L<perlxs/Thread-aware system interfaces>.
+ * the Perl interpreter. This is done automatically for the perl core and
+ * extensions, but not generally for XS modules unless they
+ * #define PERL_REENTRANT
+ * See L<perlxs/Thread-aware system interfaces>.
*/
#ifndef PERL_REENTR_API