<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.inotify.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'inotify.constants.php',
    1 => '预定义常量',
    2 => '预定义常量',
  ),
  'up' => 
  array (
    0 => 'book.inotify.php',
    1 => 'Inotify',
  ),
  'prev' => 
  array (
    0 => 'inotify.resources.php',
    1 => '资源类型',
  ),
  'next' => 
  array (
    0 => 'ref.inotify.php',
    1 => 'Inotify 函数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/inotify/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="inotify.constants" class="appendix">
  <h1 class="title">预定义常量</h1>

  <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
  <dl id="inotify.constants.events">
   <strong class="title">Inotify 常量可用于 <span class="function"><a href="function.inotify-add-watch.php" class="function">inotify_add_watch()</a></span> 或由 <span class="function"><a href="function.inotify-read.php" class="function">inotify_read()</a></span> 返回</strong>
   
    <dt id="constant.in-access">
     <strong><code><a href="inotify.constants.php#constant.in-access">IN_ACCESS</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.in-modify">
     <strong><code><a href="inotify.constants.php#constant.in-modify">IN_MODIFY</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.in-attrib">
     <strong><code><a href="inotify.constants.php#constant.in-attrib">IN_ATTRIB</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.in-close-write">
     <strong><code><a href="inotify.constants.php#constant.in-close-write">IN_CLOSE_WRITE</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.in-close-nowrite">
     <strong><code><a href="inotify.constants.php#constant.in-close-nowrite">IN_CLOSE_NOWRITE</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.in-open">
     <strong><code><a href="inotify.constants.php#constant.in-open">IN_OPEN</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.in-moved-to">
     <strong><code><a href="inotify.constants.php#constant.in-moved-to">IN_MOVED_TO</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.in-moved-from">
     <strong><code><a href="inotify.constants.php#constant.in-moved-from">IN_MOVED_FROM</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.in-create">
     <strong><code><a href="inotify.constants.php#constant.in-create">IN_CREATE</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.in-delete">
     <strong><code><a href="inotify.constants.php#constant.in-delete">IN_DELETE</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.in-delete-self">
     <strong><code><a href="inotify.constants.php#constant.in-delete-self">IN_DELETE_SELF</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.in-move-self">
     <strong><code><a href="inotify.constants.php#constant.in-move-self">IN_MOVE_SELF</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.in-close">
     <strong><code><a href="inotify.constants.php#constant.in-close">IN_CLOSE</a></code></strong>
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      与 IN_CLOSE_WRITE | IN_CLOSE_NOWRITE 相等
     </span>
    </dd>
   
   
    <dt id="constant.in-move">
     <strong><code><a href="inotify.constants.php#constant.in-move">IN_MOVE</a></code></strong>
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      与 IN_MOVED_FROM | IN_MOVED_TO 相等
     </span>
    </dd>
   
   
    <dt id="constant.in-all-events">
     <strong><code><a href="inotify.constants.php#constant.in-all-events">IN_ALL_EVENTS</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.in-unmount">
     <strong><code><a href="inotify.constants.php#constant.in-unmount">IN_UNMOUNT</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.in-q-overflow">
     <strong><code><a href="inotify.constants.php#constant.in-q-overflow">IN_Q_OVERFLOW</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.in-ignored">
     <strong><code><a href="inotify.constants.php#constant.in-ignored">IN_IGNORED</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"><a href="function.inotify-rm-watch.php" class="function">inotify_rm_watch()</a></span> 显示移除，或者是文件被移动，或者文件系统被卸载）
     </span>
    </dd>
   
   
    <dt id="constant.in-isdir">
     <strong><code><a href="inotify.constants.php#constant.in-isdir">IN_ISDIR</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.in-onlydir">
     <strong><code><a href="inotify.constants.php#constant.in-onlydir">IN_ONLYDIR</a></code></strong>
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      如果是目录，仅监听路径名（从 Linux 2.6.15 开始）
     </span>
    </dd>
   
   
    <dt id="constant.in-dont-follow">
     <strong><code><a href="inotify.constants.php#constant.in-dont-follow">IN_DONT_FOLLOW</a></code></strong>
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      如果是符号链接，不引用路径名（从 Linux 2.6.15 开始）
     </span>
    </dd>
   
   
    <dt id="constant.in-mask-add">
     <strong><code><a href="inotify.constants.php#constant.in-mask-add">IN_MASK_ADD</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.in-oneshot">
     <strong><code><a href="inotify.constants.php#constant.in-oneshot">IN_ONESHOT</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>
   
  </dl>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <span class="simpara">
    以上标有星号 (*) 的事件可能发生在已监听目录的文件中。 
   </span>
  </p></blockquote>
</div>
<?php manual_footer($setup); ?>