1PERLFREEBSD(1) Perl Programmers Reference Guide PERLFREEBSD(1)
2
3
4
6 perlfreebsd - Perl version 5 on FreeBSD systems
7
9 This document describes various features of FreeBSD that will affect
10 how Perl version 5 (hereafter just Perl) is compiled and/or runs.
11
12 FreeBSD core dumps from readdir_r with ithreads
13 When perl is configured to use ithreads, it will use re-entrant library
14 calls in preference to non-re-entrant versions. There is a bug in
15 FreeBSD's "readdir_r" function in versions 4.5 and earlier that can
16 cause a SEGV when reading large directories. A patch for FreeBSD libc
17 is available (see http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/30631
18 ) which has been integrated into FreeBSD 4.6.
19
20 $^X doesn't always contain a full path in FreeBSD
21 perl sets $^X where possible to a full path by asking the operating
22 system. On FreeBSD the full path of the perl interpreter is found by
23 using "sysctl" with "KERN_PROC_PATHNAME" if that is supported, else by
24 reading the symlink /proc/curproc/file. FreeBSD 7 and earlier has a bug
25 where either approach sometimes returns an incorrect value (see
26 http://www.freebsd.org/cgi/query-pr.cgi?pr=35703 ). In these cases
27 perl will fall back to the old behaviour of using C's argv[0] value for
28 $^X.
29
31 Nicholas Clark <nick@ccl4.org>, collating wisdom supplied by Slaven
32 Rezic and Tim Bunce.
33
34 Please report any errors, updates, or suggestions to perlbug@perl.org.
35
36
37
38perl v5.16.3 2013-03-04 PERLFREEBSD(1)