vrana           Fri May  6 10:06:13 2005 EDT

  Modified files:              
    /phpdoc/en/reference/dio/functions  dio-open.xml dio-seek.xml 
  Log:
  Example title, seeking examples (bug #32960)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/dio/functions/dio-open.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/dio/functions/dio-open.xml
diff -u phpdoc/en/reference/dio/functions/dio-open.xml:1.8 
phpdoc/en/reference/dio/functions/dio-open.xml:1.9
--- phpdoc/en/reference/dio/functions/dio-open.xml:1.8  Tue Apr  5 08:51:55 2005
+++ phpdoc/en/reference/dio/functions/dio-open.xml      Fri May  6 10:06:13 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <refentry id="function.dio-open">
  <refnamediv>
   <refname>dio_open</refname>
@@ -114,7 +114,7 @@
  <refsect1 role="examples">
   &reftitle.examples;
   <example>
-   <title>Setting the baud rate on a serial port</title>
+   <title>Opening a file descriptor</title>
    <programlisting role="php">
 <![CDATA[
 <?php
http://cvs.php.net/diff.php/phpdoc/en/reference/dio/functions/dio-seek.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/dio/functions/dio-seek.xml
diff -u phpdoc/en/reference/dio/functions/dio-seek.xml:1.8 
phpdoc/en/reference/dio/functions/dio-seek.xml:1.9
--- phpdoc/en/reference/dio/functions/dio-seek.xml:1.8  Tue Apr  5 08:51:55 2005
+++ phpdoc/en/reference/dio/functions/dio-seek.xml      Fri May  6 10:06:13 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <refentry id="function.dio-seek">
  <refnamediv>
   <refname>dio_seek</refname>
@@ -86,23 +86,23 @@
   &reftitle.examples;
   <para>
    <example>
-    <title>Setting the baud rate on a serial port</title>
+    <title>Positioning in a file</title>
     <programlisting role="php">
 <![CDATA[
 <?php
 
 $fd = dio_open('/dev/ttyS0', O_RDWR);
 
-dio_seek($fd, SEEK_SET, 10);
+dio_seek($fd, 10, SEEK_SET);
 // position is now at 10 characters from the start of the file
 
-dio_seek($fd, SEEK_CUR, -2);
+dio_seek($fd, -2, SEEK_CUR);
 // position is now at 8 characters from the start of the file
 
-dio_seek($fd, SEEK_END, 5);
+dio_seek($fd, -5, SEEK_END);
 // position is now at 5 characters from the end of the file
 
-dio_seek($fd, SEEK_END, -10);
+dio_seek($fd, 10, SEEK_END);
 // position is now at 10 characters past the end of the file. 
 // The 10 characters between the end of the file and the current
 // position are filled with zeros.

Reply via email to