<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.posix.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.posix-fpathconf.php',
    1 => 'posix_fpathconf',
    2 => 'Returns the value of a configurable limit',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.posix-errno.php',
    1 => 'posix_errno',
  ),
  'next' => 
  array (
    0 => 'function.posix-get-last-error.php',
    1 => 'posix_get_last_error',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/posix/functions/posix-fpathconf.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-fpathconf" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_fpathconf</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.3.0)</p><p class="refpurpose"><span class="refname">posix_fpathconf</span> &mdash; <span class="dc-title">Returns the value of a configurable limit</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.posix-fpathconf-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_fpathconf</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$file_descriptor</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$name</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Returns the value of a configurable limit from <code class="parameter">name</code>
   for <code class="parameter">file_descriptor</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.posix-fpathconf-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
 <dt><code class="parameter">file_descriptor</code></dt>
 <dd>
  <p class="para">
   The file descriptor, which is expected to be either a file
   <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> or an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>. An <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   will be assumed to be a file descriptor that can be passed directly to
   the underlying system call.
  </p>
 </dd>

    
     <dt><code class="parameter">name</code></dt>
     <dd>
      <p class="para">
       The name of the configurable limit, one of the following.
       <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-link-max">POSIX_PC_LINK_MAX</a></code></strong>, <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-max-canon">POSIX_PC_MAX_CANON</a></code></strong>,
       <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-max-input">POSIX_PC_MAX_INPUT</a></code></strong>, <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-name-max">POSIX_PC_NAME_MAX</a></code></strong>,
       <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-path-max">POSIX_PC_PATH_MAX</a></code></strong>, <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-pipe-buf">POSIX_PC_PIPE_BUF</a></code></strong>,
       <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-chown-restricted">POSIX_PC_CHOWN_RESTRICTED</a></code></strong>, <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-no-trunc">POSIX_PC_NO_TRUNC</a></code></strong>,
       <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-alloc-size-min">POSIX_PC_ALLOC_SIZE_MIN</a></code></strong>, <strong><code><a href="posix.constants.pathconf.php#constant.posix-pc-symlink-max">POSIX_PC_SYMLINK_MAX</a></code></strong>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.posix-fpathconf-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Returns the configurable limit or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.posix-fpathconf-errors">
  <h3 class="title">Errori/Eccezioni</h3>
  <p class="para">
   Throws a <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span>
   when <code class="parameter">resource</code> is invalid.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.posix-fpathconf-examples">
  <h3 class="title">Esempi</h3>
  <div class="example" id="function.posix-fpathconf.example.basic">
   <p><strong>Example #1 <span class="function"><strong>posix_fpathconf()</strong></span> example</strong></p>
   <div class="example-contents"><p>
    This example will get the max path name&#039;s length in bytes
    for the current dir.
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$fd </span><span style="color: #007700">= </span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #0000BB">__DIR__</span><span style="color: #007700">, </span><span style="color: #DD0000">"r"</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">posix_fpathconf</span><span style="color: #007700">(</span><span style="color: #0000BB">$fd</span><span style="color: #007700">, </span><span style="color: #0000BB">POSIX_PC_PATH_MAX</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Il precedente esempio visualizzerà:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">4096</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.posix-fpathconf-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.posix-pathconf.php" class="function" rel="rdfs-seeAlso">posix_pathconf()</a> - Returns the value of a configurable limit</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>