summaryrefslogtreecommitdiff
path: root/globvar.sym
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2018-12-26 12:58:06 +0000
committerDavid Mitchell <davem@iabyn.com>2019-02-19 13:28:12 +0000
commit999d65ede909a162fb0accd370ffdf1411e94d5e (patch)
treef729bec46a0a745f8f178d03aae29602da4aa014 /globvar.sym
parent4ef8bdf9dc2018cb385cf00d11e2e74f0491f8e9 (diff)
downloadperl-999d65ede909a162fb0accd370ffdf1411e94d5e.tar.gz
foo_cloexec() under PERL_GLOBAL_STRUCT_PRIVATE
Fix the various Perl_PerlSock_dup2_cloexec() type functions so that t/porting/liberl.a passes under -DPERL_GLOBAL_STRUCT_PRIVATE builds. In these builds it is forbidden to have any static variables, but each of these functions (via convoluted macros) has a static var called 'strategy' which records, for each function, whether a run-time probe has been done to determine the best way of achieving close-exec functionality, and the result. Replace them all with 'global' vars: PL_strategy_dup2 etc. NB these vars aren't thread-safe but it doesn't really matter, as the worst that can happen is for a redundant probe or two to be done before a suitable "don't probe any more" value is written to the var and seen by all the threads.
Diffstat (limited to 'globvar.sym')
-rw-r--r--globvar.sym9
1 files changed, 9 insertions, 0 deletions
diff --git a/globvar.sym b/globvar.sym
index 476f4ca095..dcc65f2e29 100644
--- a/globvar.sym
+++ b/globvar.sym
@@ -66,6 +66,15 @@ PL_sig_name
PL_sig_num
PL_simple
PL_simple_bitmask
+PL_strategy_dup
+PL_strategy_dup2
+PL_strategy_open
+PL_strategy_open3
+PL_strategy_mkstemp
+PL_strategy_socket
+PL_strategy_accept
+PL_strategy_pipe
+PL_strategy_socketpair
PL_strict_utf8_dfa_tab
PL_subversion
PL_utf8skip