perlfreebsd.html
来自「perl教程」· HTML 代码 · 共 88 行
HTML
88 行
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>README.freebsd - Perl version 5 on FreeBSD systems</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>
<body>
<script>writelinks('__top__',2);</script>
<h1><a>README.freebsd - Perl version 5 on FreeBSD systems</a></h1>
<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<ul>
<li><a href="#freebsd_core_dumps_from_readdir_r_with_ithreads">FreeBSD core dumps from readdir_r with ithreads</a></li>
<li><a href="#__x_doesn_t_always_contain_a_full_path_in_freebsd">$^X doesn't always contain a full path in FreeBSD</a></li>
<li><a href="#perl_will_no_longer_be_part_of_base_freebsd">Perl will no longer be part of "base FreeBSD"</a></li>
</ul>
<li><a href="#author">AUTHOR</a></li>
</ul>
<!-- INDEX END -->
<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>README.freebsd - Perl version 5 on FreeBSD systems</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This document describes various features of FreeBSD that will affect how Perl
version 5 (hereafter just Perl) is compiled and/or runs.</p>
<p>
</p>
<h2><a name="freebsd_core_dumps_from_readdir_r_with_ithreads">FreeBSD core dumps from readdir_r with ithreads</a></h2>
<p>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's
<code>readdir_r</code> function in versions 4.5 and earlier that can cause a SEGV when
reading large directories. A patch for FreeBSD libc is available
(see <a href="http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/30631">http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/30631</a> )
which has been integrated into FreeBSD 4.6.</p>
<p>
</p>
<h2><a name="__x_doesn_t_always_contain_a_full_path_in_freebsd">$^X doesn't always contain a full path in FreeBSD</a></h2>
<p>perl 5.8.0 sets <a href="../../lib/Pod/perlvar.html#item___x"><code>$^X</code></a> where possible to a full path by asking the operating
system. On FreeBSD the full path of the perl interpreter is found by reading
the symlink <em>/proc/curproc/file</em>. There is a bug on FreeBSD, where the
result of reading this symlink is can be wrong in certain circumstances
(see <a href="http://www.freebsd.org/cgi/query-pr.cgi?pr=35703">http://www.freebsd.org/cgi/query-pr.cgi?pr=35703</a> ).
In these cases perl will fall back to the old behaviour of using C's
argv[0] value for <a href="../../lib/Pod/perlvar.html#item___x"><code>$^X</code></a>.</p>
<p>
</p>
<h2><a name="perl_will_no_longer_be_part_of_base_freebsd">Perl will no longer be part of "base FreeBSD"</a></h2>
<p>Not as bad as it sounds--what this means is that Perl will no longer be
part of the <strong>kernel build system</strong> of FreeBSD. Perl will still very
probably be part of the "default install", and in any case the latest
version will be in the ports system. The first FreeBSD version this
change will affect is 5.0, all 4.n versions will keep the status quo.</p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Nicholas Clark <<a href="mailto:nick@ccl4.org">nick@ccl4.org</a>>, collating wisdom supplied by Slaven Rezic
and Tim Bunce.</p>
<p>Please report any errors, updates, or suggestions to <em><a href="mailto:perlbug@perl.org">perlbug@perl.org</a></em>.</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?