This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Where available, use sysctl() with KERN_PROC_PATHNAME to make $^X absolute.
authorNicholas Clark <nick@ccl4.org>
Wed, 21 Sep 2011 12:32:58 +0000 (14:32 +0200)
committerNicholas Clark <nick@ccl4.org>
Tue, 27 Sep 2011 20:23:10 +0000 (22:23 +0200)
commit2982a345b7a1edb63720282eef0fba5c61d0e6b5
tree8fffd4f1ff976c438b5e9028adba2364cca3b07d
parent2480ae1c1b2fa11085b45f96de55cb16c3bcc343
Where available, use sysctl() with KERN_PROC_PATHNAME to make $^X absolute.

In Configure, check whether sysctl() and KERN_PROC_PATHNAME can be used
to find the absolute pathname of the executable. If so, set
usekernprocpathname in config.sh and USE_KERN_PROC_PATHNAME in config.h.
If this is set, then use this approach in S_set_caret_X() to canonicalise
$^X as an absolute path. This approach works on (at least) FreeBSD, and
doesn't rely on the /proc filesystem existing, or /proc/curproc/file being
present.
21 files changed:
Configure
Cross/config.sh-arm-linux
NetWare/config.wc
Porting/Glossary
Porting/config.sh
config_h.SH
configure.com
epoc/config.sh
perl.c
plan9/config_sh.sample
symbian/config.sh
t/op/magic.t
uconfig.h
uconfig.sh
uconfig64.sh
win32/config.ce
win32/config.gc
win32/config.gc64
win32/config.gc64nox
win32/config.vc
win32/config.vc64