<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.posix-setrlimit.php',
    1 => 'posix_setrlimit',
    2 => 'Setzt Limits f&uuml;r eine Systemressource',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.posix-setpgid.php',
    1 => 'posix_setpgid',
  ),
  'next' => 
  array (
    0 => 'function.posix-setsid.php',
    1 => 'posix_setsid',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/posix/functions/posix-setrlimit.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-setrlimit" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_setrlimit</h1>
  <p class="verinfo">(PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_setrlimit</span> &mdash; <span class="dc-title">Setzt Limits für eine Systemressource</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.posix-setrlimit-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_setrlimit</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$resource</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$soft_limit</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$hard_limit</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>posix_setrlimit()</strong></span> legt die weichen und harten Limits für
   die angegebene Systemressource fest.
  </p>
  
<p class="para">
 Zu jeder Ressource gehören ein weicher und ein harter Grenzwert. Der weiche
 Grenzwert ist der Wert, den der Kernel für die entsprechende Ressource
 erzwingt. Der harte Grenzwert wirkt als Obergrenze für den weichen Grenzwert.
 Ein unprivilegierter Prozess darf seinen weichen Grenzwert nur auf einen Wert
 von 0 bis zum harten Grenzwert setzen und seinen harten Grenzwert
 unwiderruflich verringern.
</p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.posix-setrlimit-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">resource</code></dt>
     <dd>
      <p class="para">
       Die
       <a href="posix.constants.setrlimit.php" class="link">Konstante für das Ressourcenlimit</a>,
       dessen Werte festgelegt werden sollen.
      </p>
     </dd>
    
    
     <dt><code class="parameter">soft_limit</code></dt>
     <dd>
      <p class="para">
       Das weiche Limit, in der Einheit, die das Ressourcenlimit erfordert,
       oder <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-infinity">POSIX_RLIMIT_INFINITY</a></code></strong>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">hard_limit</code></dt>
     <dd>
      <p class="para">
       Das harte Limit, in der Einheit, die das Ressourcenlimit erfordert,
       oder <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-infinity">POSIX_RLIMIT_INFINITY</a></code></strong>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.posix-setrlimit-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.posix-setrlimit-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li>SETRLIMIT(2)-Manpage</li>
    <li><span class="function"><a href="function.posix-getrlimit.php" class="function" rel="rdfs-seeAlso">posix_getrlimit()</a> - Liefert Informationen &uuml;ber Systemressourcen-Limits</span></li>
   </ul>
  </p>
 </div>


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