<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.posix-isatty.php',
    1 => 'posix_isatty',
    2 => 'ファイル記述子が対話型端末であるかどうかを定義する',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX 関数',
  ),
  'prev' => 
  array (
    0 => 'function.posix-initgroups.php',
    1 => 'posix_initgroups',
  ),
  'next' => 
  array (
    0 => 'function.posix-kill.php',
    1 => 'posix_kill',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/posix/functions/posix-isatty.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-isatty" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_isatty</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_isatty</span> &mdash; <span class="dc-title">ファイル記述子が対話型端末であるかどうかを定義する</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.posix-isatty-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_isatty</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="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

   <p class="para rdfs-comment">
    ファイル記述子 <code class="parameter">file_descriptor</code> が、
    有効な端末デバイスを指しているかどうかを調べます。
  </p>
 </div>

    
 <div class="refsect1 parameters" id="refsect1-function.posix-isatty-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
 <dt><code class="parameter">file_descriptor</code></dt>
 <dd>
  <p class="para">
   ファイル記述子。ファイルリソースか、あるいは <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> で指定します。
   <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> を指定した場合は、システムコールにそのまま渡せるファイル記述子だとみなします。
  </p>
 </dd>

   </dl>
  </p>
 </div>

       
 <div class="refsect1 returnvalues" id="refsect1-function.posix-isatty-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   <code class="parameter">file_descriptor</code> がオープンされており、
   かつ端末に接続されている場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>、
   それ以外の場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.posix-isatty-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       渡されたファイル記述子やストリームが無効な場合、
       errno (エラー番号) に <strong><code>EBADF</code></strong> を設定するようになりました。
      </td>
     </tr>

     <tr>
      <td>8.3.0</td>
      <td>
       通常の PHP の型変換のセマンティクスに従い、
       整数を変換した場合に、型のエラーに関する <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>
       が発生するようになりました。
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>

       
 <div class="refsect1 seealso" id="refsect1-function.posix-isatty-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.posix-ttyname.php" class="function" rel="rdfs-seeAlso">posix_ttyname()</a> - 端末のデバイス名を調べる</span></li>
    <li><span class="function"><a href="function.stream-isatty.php" class="function" rel="rdfs-seeAlso">stream_isatty()</a> - ストリームがターミナル型のデバイスかを調べる</span></li>
   </ul>
  </p>
 </div>

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