●
5.30.3
Latest
5.40.0
5.38.2
5.38.1
5.38.0
5.36.3
5.36.2
5.36.1
5.36.0
5.34.3
5.34.2
5.34.1
5.34.0
5.32.1
5.32.0
5.30.3
5.30.2
5.30.1
5.30.0
5.28.3
5.28.2
5.28.1
5.28.0
5.26.3
5.26.2
5.26.1
5.26.0
5.24.4
5.24.3
5.24.2
5.24.1
5.24.0
5.22.4
5.22.3
5.22.2
5.22.1
5.22.0
5.20.3
5.20.2
5.20.1
5.20.0
5.18.4
5.18.3
5.18.2
5.18.1
5.18.0
5.16.3
5.16.2
5.16.1
5.16.0
5.14.4
5.14.3
5.14.2
5.14.1
5.14.0
5.12.5
5.12.4
5.12.3
5.12.2
5.12.1
5.12.0
5.10.1
5.10.0
5.8.9
5.8.8
5.8.7
5.8.6
5.8.5
5.8.4
5.8.3
5.8.2
5.8.1
5.8.0
5.6.2
5.6.1
5.6.0
5.005_04
5.005_03
5.005_02
5.005_01
5.005
●
Dev
blead
5.41.2
5.41.1
5.40.0-RC2
5.40.0-RC1
5.39.10
5.39.9
5.39.8
5.39.6
5.39.5
5.39.4
5.39.3
5.39.2
5.39.1
5.37.11
5.37.10
5.37.9
5.37.8
5.37.7
5.37.6
5.37.5
5.37.4
5.37.3
5.37.2
5.37.1
5.37.0
●
Documentation
Perl
Intro
Tutorials
FAQs
Reference
Operators
Functions
Variables
Modules
Utilities
Community
History
perlfreebsd
(source,
CPAN)
You are viewing the version of this documentation from Perl 5.30.3.
View the latest version
●
NAME
●
DESCRIPTION
●
FreeBSD core dumps from readdir_r with ithreads
●
$^X doesn't always contain a full path in FreeBSD
●
AUTHOR
#NAME
perlfreebsd - Perl version 5 on FreeBSD systems
#DESCRIPTION
This document describes various features of FreeBSD that will affect how Perl version 5 (hereafter just Perl) is compiled and/or runs.
#FreeBSD core dumps from readdir_r with ithreads
When perl is configured to use ithreads, it will use re-entrant library calls in preference to non-re-entrant versions. There is a bug in FreeBSD'sreaddir_r
function in versions 4.5 and earlier that can cause a SEGV when reading large directories. A patch for FreeBSD libc is available (see http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/30631 ) which has been integrated into FreeBSD 4.6.
#$^X
doesn't always contain a full path in FreeBSD
perl sets $^X
where possible to a full path by asking the operating system. On FreeBSD the full path of the perl interpreter is found by using sysctl
with KERN_
PROC_PATHNAME
if that is supported, else by reading the symlink /proc/curproc/file. FreeBSD 7 and earlier has a bug where either approach sometimes returns an incorrect value (see http://www.freebsd.org/cgi/query-pr.cgi?pr=35703 ). In these cases perl will fall back to the old behaviour of using C'sargv[0]
value for $^
X
.
#AUTHOR
Nicholas Clark <nick@ccl4.org>, collating wisdom supplied by Slaven Rezic and Tim Bunce.
Please report any errors, updates, or suggestions to https://github.com/Perl/perl5/issues.
Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via the GitHub issue trackeroremail regarding any issues with the site itself, search, or rendering of documentation.
The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the Perl issue tracker, the mailing list, or IRC to report any issues with the contents or format of the documentation.