<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.dio-stat" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>dio_stat</refname>
  <refpurpose>
   Gets stat information about the file descriptor fd
  </refpurpose>
 </refnamediv>
 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>array</type><methodname>dio_stat</methodname>
   <methodparam><type>resource</type><parameter>fd</parameter></methodparam>
  </methodsynopsis>
  <para>
   <function>dio_stat</function> returns information about the given file
   descriptor.
  </para>
 </refsect1>
 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   <variablelist>
    <varlistentry>
     <term><parameter>fd</parameter></term>
     <listitem>
      <para>
       The file descriptor returned by <function>dio_open</function>.
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>
 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Returns an associative array with the following keys:
   <itemizedlist>
    <listitem>
     <para>
      "device" - device
     </para>
    </listitem>
    <listitem>
     <para>
      "inode" - inode
     </para>
    </listitem>
    <listitem>
     <para>
      "mode" - mode
     </para>
    </listitem>
    <listitem>
     <para>
      "nlink" - number of hard links
     </para>
    </listitem>
    <listitem>
     <para>
      "uid" - user id
     </para>
    </listitem>
    <listitem>
     <para>
      "gid" - group id
     </para>
    </listitem>
    <listitem>
     <para>
      "device_type" - device type (if inode device)
     </para>
    </listitem>
    <listitem>
     <para>
      "size" - total size in bytes
     </para>
    </listitem>
    <listitem>
     <para>
      "blocksize" - blocksize
     </para>
    </listitem>
    <listitem>
     <para>
      "blocks" - number of blocks allocated
     </para>
    </listitem>
    <listitem>
     <para>
      "atime" - time of last access
     </para>
    </listitem>
    <listitem>
     <para>
      "mtime" - time of last modification
     </para>
    </listitem>
    <listitem>
     <para>
      "ctime" - time of last change
     </para>
    </listitem>
   </itemizedlist>
   On error <function>dio_stat</function> returns &null;.
  </para>
 </refsect1>
</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
