<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/posix.constants.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'posix.constants.setrlimit.php',
    1 => 'posix_setrlimit constants',
    2 => 'posix_setrlimit constants',
  ),
  'up' => 
  array (
    0 => 'posix.constants.php',
    1 => 'Predefined Constants',
  ),
  'prev' => 
  array (
    0 => 'posix.constants.mknod.php',
    1 => 'posix_mknod constants',
  ),
  'next' => 
  array (
    0 => 'posix.constants.pathconf.php',
    1 => 'posix_pathconf constants',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/posix/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="posix.constants.setrlimit" class="section">
  <h2 class="title"><span class="function"><a href="function.posix-setrlimit.php" class="function">posix_setrlimit()</a></span> constants</h2>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Please note that some of them may not be available on your system.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    You may wish to read the below notes in conjunction with the manpage for
    <span class="function"><strong>setrlimit()</strong></span> on your specific operating system, as there
    is variance in how these limits are interpreted, even across operating
    systems that claim to implement POSIX in full.
   </p>
  </p></blockquote>
  <dl>
   
    <dt id="constant.posix-rlimit-as">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-as">POSIX_RLIMIT_AS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum size of the process&#039;s address space in bytes. See also PHP&#039;s
      <a href="ini.core.php#ini.memory-limit" class="link">memory_limit</a> configuration
      directive.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-core">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-core">POSIX_RLIMIT_CORE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum size of a core file. If the limit is set to 0, no core file
      will be generated.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-cpu">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-cpu">POSIX_RLIMIT_CPU</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum amount of CPU time that the process can use, in seconds.
      When the soft limit is hit, a <strong><code><a href="pcntl.constants.php#constant.sigxcpu">SIGXCPU</a></code></strong> signal will be
      sent, which can be caught with <span class="function"><a href="function.pcntl-signal.php" class="function">pcntl_signal()</a></span>.
      Depending on the operating system, additional <strong><code><a href="pcntl.constants.php#constant.sigxcpu">SIGXCPU</a></code></strong>
      signals may be sent each second until the hard limit is hit, at which
      point an uncatchable <strong><code><a href="pcntl.constants.php#constant.sigkill">SIGKILL</a></code></strong> signal is sent.
     </span>
     <span class="simpara">
      See also <span class="function"><a href="function.set-time-limit.php" class="function">set_time_limit()</a></span>.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-data">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-data">POSIX_RLIMIT_DATA</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum size of the process&#039;s data segment, in bytes. It is
      extremely unlikely that this will have any effect on the execution of
      PHP unless an extension is in use that calls <span class="function"><strong>brk()</strong></span> or
      <span class="function"><strong>sbrk()</strong></span>.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-fsize">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-fsize">POSIX_RLIMIT_FSIZE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum size of files that the process can create, in bytes.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-locks">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-locks">POSIX_RLIMIT_LOCKS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum number of locks that the process can create. This is only
      supported on extremely old Linux kernels.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-memlock">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-memlock">POSIX_RLIMIT_MEMLOCK</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum number of bytes that can be locked into memory.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-msgqueue">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-msgqueue">POSIX_RLIMIT_MSGQUEUE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum number of bytes that can be allocated for POSIX message
      queues. PHP does not ship with support for POSIX message queues, so this
      limit will not have any effect unless you are using an extension that
      implements that support.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-nice">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-nice">POSIX_RLIMIT_NICE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum value to which the process can be
      <a href="function.pcntl-setpriority.php" class="link">reniced</a> to. The value
      that will be used will be <code class="literal">20 - limit</code>, as resource
      limit values cannot be negative.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-nofile">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-nofile">POSIX_RLIMIT_NOFILE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      A value one greater than the maximum file descriptor number that can be
      opened by this process.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-nproc">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-nproc">POSIX_RLIMIT_NPROC</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum number of processes (and/or threads, on some operating
      systems) that can be created for the real user ID of the process.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-rss">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-rss">POSIX_RLIMIT_RSS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum size of the process&#039;s resident set, in pages.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-rtprio">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-rtprio">POSIX_RLIMIT_RTPRIO</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum real time priority that can be set via the
      <span class="function"><strong>sched_setscheduler()</strong></span> and
      <span class="function"><strong>sched_setparam()</strong></span> system calls.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-rttime">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-rttime">POSIX_RLIMIT_RTTIME</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum amount of CPU time, in microseconds, that the process can
      consume without making a blocking system call if it is using real time
      scheduling.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-sigpending">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-sigpending">POSIX_RLIMIT_SIGPENDING</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum number of signals that can be queued for the real user ID of
      the process.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-stack">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-stack">POSIX_RLIMIT_STACK</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum size of the process stack, in bytes.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-infinity">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-infinity">POSIX_RLIMIT_INFINITY</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      Used to indicate an infinite value for a resource limit.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-kqueues">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-kqueues">POSIX_RLIMIT_KQUEUES</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum number of kqueues this user id is allowed to create (FreeBSD).
      Available as of PHP 8.1.0.
     </span>
    </dd>
   
   
    <dt id="constant.posix-rlimit-npts">
     <strong><code><a href="posix.constants.setrlimit.php#constant.posix-rlimit-npts">POSIX_RLIMIT_NPTS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      The maximum number of pseudo-terminals this user id is allowed to create (FreeBSD).
      Available as of PHP 8.1.0.
     </span>
    </dd>
   
  </dl>
 </div><?php manual_footer($setup); ?>