<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'posix.constants.setrlimit.php',
    1 => 'posix_setrlimit 定数',
    2 => 'posix_setrlimit 定数',
  ),
  'up' => 
  array (
    0 => 'posix.constants.php',
    1 => '定義済み定数',
  ),
  'prev' => 
  array (
    0 => 'posix.constants.mknod.php',
    1 => 'posix_mknod 定数',
  ),
  'next' => 
  array (
    0 => 'posix.constants.pathconf.php',
    1 => 'posix_pathconf の定数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    '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> 定数</h2>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    システムによっては
    いくつかの定数が使用できない場合があることに注意してください。
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    以下の一覧とともに、特定のオペレーションシステムの 
    <span class="function"><strong>setrlimit()</strong></span> のマニュアルページを読みたくなるかもしれません。
    なぜなら、POSIX を完全に実装していると主張するオペレーティングシステム間でも、
    これらの値をどう解釈するかはばらつきがあるからです。
   </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">
      プロセスのアドレススペースの最大値をバイト単位で指定します。
      PHP の <a href="ini.core.php#ini.memory-limit" class="link">memory_limit</a>
      設定ディレクティブも参照ください。
     </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">
      core ファイルの最大サイズ。
      0 に設定すると、core ファイルは生成されません。
     </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">
      プロセスが使えるCPU時間の上限を秒単位で指定します。
      プロセスがソフトリミットに達した場合、<strong><code><a href="pcntl.constants.php#constant.sigxcpu">SIGXCPU</a></code></strong>
      シグナルが送られます。
      これは <span class="function"><a href="function.pcntl-signal.php" class="function">pcntl_signal()</a></span> でキャッチできます。
      オペレーティングシステムによっては、
      追加の <strong><code><a href="pcntl.constants.php#constant.sigxcpu">SIGXCPU</a></code></strong> シグナルをハードリミットに達する
      まで1秒ごとに送り、ハードリミットに達すると
      <strong><code><a href="pcntl.constants.php#constant.sigkill">SIGKILL</a></code></strong> シグナルを送るかもしれません。
     </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">
      プロセスのデータセグメントの最大値をバイト単位で指定します。
      <span class="function"><strong>brk()</strong></span> や
      <span class="function"><strong>sbrk()</strong></span> を呼ぶ拡張モジュールでもない限り、
      この設定がPHPの実行に影響を及ぼす可能性は極めて小さいです。
     </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">
      プロセスが作成できるファイルサイズの最大値をバイト単位で指定します。
     </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">
      プロセスが作ることができるロック数の最大数。
      これは極めて古い Linux kernel でのみサポートされています。
     </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">
      POSIX メッセージキューのために確保できるバイト数の制限を指定する。
      PHP は POSIX メッセージキューをサポートしていないので、
      このリミットは POSIX メッセージキューをサポートした拡張モジュールを使っていない限り効果がありません。
     </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">
      プロセスが <a href="function.pcntl-setpriority.php" class="link">設定できるnice値</a> の上限を指定します。
      リソース制限値として負の数を指定できないため、<code class="literal">20 - limit</code> という値が実際に使われます。
     </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">
      このプロセスがオープンできるファイルディスクリプター数の最大値より1大きい値を指定します。
     </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">
      プロセスの実ユーザーIDで作成できる最大プロセス数(オペレーティングシステムによってはスレッド数)
     </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">
      プロセスの resident set の最大値をページ数単位で指定します。
     </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">
      <span class="function"><strong>sched_setscheduler()</strong></span> や
      <span class="function"><strong>sched_setparam()</strong></span> システムコール経由で
      設定できる、リアルタイム優先度の最大値
     </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">
      リアルタイムスケジューリングを採用している場合に
      スケジューリングされるプロセスが、
      ブロッキング型のシステムコールを呼び出さずに消費できる
      CPU時間の最大値をマイクロ秒単位で指定します。
     </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">
      プロセスの実ユーザーID に対して、
      キューに入れられるシグナルの数の最大値
     </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">
      プロセススタックの最大サイズをバイト単位で指定します。
     </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">
      リソースリミットが無限であることを示すのに使われます。
     </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">
      このユーザーID が作成できる kqueues の数の最大値 (FreeBSD)。
      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">
      このユーザーID が作成できる擬似端末の数の最大値 (FreeBSD)。
      PHP 8.1.0 以降で利用可能です。
     </span>
    </dd>
   
  </dl>
 </div><?php manual_footer($setup); ?>