php-doc-en/reference/dio/functions/dio-seek.xml
Friedhelm Betz 2f2a9f9410 grammar and logical errors.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@133624 c90b9560-bf6c-de11-be94-00142212c4b1
2003-06-29 16:59:53 +00:00

72 lines
2.4 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/dio.xml, last change in rev 1.1 -->
<refentry id="function.dio-seek">
<refnamediv>
<refname>dio_seek</refname>
<refpurpose>Seeks to pos on fd from whence</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>dio_seek</methodname>
<methodparam><type>resource</type><parameter>fd</parameter></methodparam>
<methodparam><type>int</type><parameter>pos</parameter></methodparam>
<methodparam><type>int</type><parameter>whence</parameter></methodparam>
</methodsynopsis>
<para>
The function <function>dio_seek</function> is used to change the
file position of the file with descriptor
<parameter>fd</parameter>. The parameter
<parameter>whence</parameter> specifies how the position
<parameter>pos</parameter> should be interpreted:
<itemizedlist>
<listitem>
<para>
SEEK_SET - specifies that <parameter>pos</parameter> is
specified from the beginning of the file.
</para>
</listitem>
<listitem>
<para>
SEEK_CUR - Specifies that <parameter>pos</parameter> is a
count of characters from the current file position. This count
may be positive or negative.
</para>
</listitem>
<listitem>
<para>
SEEK_END - Specifies that <parameter>pos</parameter> is a
count of characters from the end of the file. A negative count
specifies a position within the current extent of the file; a
positive count specifies a position past the current end. If
you set the position past the current end, and actually write
data, you will extend the file with zeros up to that
position.
</para>
</listitem>
</itemizedlist>
</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:"../../../../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
-->