cvs: phpdoc-fr /reference/dio/functions dio-close.xml dio-fcntl.xml dio-open.xml dio-seek.xml dio-tcsetattr.xml dio-truncate.xml
| From: | Yannick TORRES | Date: | Thu, 28 Oct 2004 14:25:38 +0000 |
| Subject: | cvs: phpdoc-fr /reference/dio/functions dio-close.xml dio-fcntl.xml dio-open.xml dio-seek.xml dio-tcsetattr.xml dio-truncate.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-3546@lists.php.net to get a copy of this message | ||
yannick Thu Oct 28 10:25:38 2004 EDT
Modified files:
/phpdoc-fr/reference/dio/functions dio-close.xml dio-fcntl.xml
dio-open.xml dio-seek.xml
dio-tcsetattr.xml
dio-truncate.xml
Log:
sync with EN
http://cvs.php.net/diff.php/phpdoc-fr/reference/dio/functions/dio-close.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc-fr/reference/dio/functions/dio-close.xml
diff -u phpdoc-fr/reference/dio/functions/dio-close.xml:1.5
phpdoc-fr/reference/dio/functions/dio-close.xml:1.6
--- phpdoc-fr/reference/dio/functions/dio-close.xml:1.5 Thu Mar 4 12:49:57 2004
+++ phpdoc-fr/reference/dio/functions/dio-close.xml Thu Oct 28 10:25:38 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.4 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.5 Maintainer: didou Status: ready -->
<refentry id="function.dio-close">
<refnamediv>
<refname>dio_close</refname>
@@ -17,7 +17,24 @@
représenté par la ressource <parameter>fd</parameter>.
</para>
<para>
- Voir aussi <function>dio_open</function>.
+ <example>
+ <title>
+ Ferme un descripteur de fichier ouvert
+ </title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$fd = dio_open('/dev/ttyS0', O_RDWR);
+
+dio_close($fd);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ Voir aussi
+ <function>dio_open</function>.
</para>
</refsect1>
</refentry>
http://cvs.php.net/diff.php/phpdoc-fr/reference/dio/functions/dio-fcntl.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc-fr/reference/dio/functions/dio-fcntl.xml
diff -u phpdoc-fr/reference/dio/functions/dio-fcntl.xml:1.5
phpdoc-fr/reference/dio/functions/dio-fcntl.xml:1.6
--- phpdoc-fr/reference/dio/functions/dio-fcntl.xml:1.5 Thu Mar 4 12:49:57 2004
+++ phpdoc-fr/reference/dio/functions/dio-fcntl.xml Thu Oct 28 10:25:38 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.6 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.7 Maintainer: didou Status: ready -->
<refentry id="function.dio-fcntl">
<refnamediv>
<refname>dio_fcntl</refname>
@@ -93,7 +93,30 @@
</para>
</listitem>
</itemizedlist>
+ <example>
+ <title>
+ Définition et effacement d'un verrou
+ </title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$fd = dio_open('/dev/ttyS0', O_RDWR);
+
+if (dio_fcntl($fd, F_SETLK) == -1) {
+ // le descripteur de fichier semble verrouillé
+ echo "Le verrou n'a pu être effacé. Il a été posé par quelqu'un
d'autre.";
+} else {
+ echo "Le verrou a été défini/verrouillé avec succès";
+}
+
+dio_close($fd);
+?>
+]]>
+ </programlisting>
+ </example>
</para>
+ ¬e.no-windows;
</refsect1>
</refentry>
http://cvs.php.net/diff.php/phpdoc-fr/reference/dio/functions/dio-open.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc-fr/reference/dio/functions/dio-open.xml
diff -u phpdoc-fr/reference/dio/functions/dio-open.xml:1.8
phpdoc-fr/reference/dio/functions/dio-open.xml:1.9
--- phpdoc-fr/reference/dio/functions/dio-open.xml:1.8 Thu Mar 4 12:49:57 2004
+++ phpdoc-fr/reference/dio/functions/dio-open.xml Thu Oct 28 10:25:38 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
-<!-- EN-Revision: 1.5 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.9 $ -->
+<!-- EN-Revision: 1.6 Maintainer: didou Status: ready -->
<refentry id="function.dio-open">
<refnamediv>
<refname>dio_open</refname>
@@ -74,6 +74,21 @@
</listitem>
</itemizedlist>
</para>
+ <example>
+ <title>
+ Définition du débit des bauds sur un port série
+ </title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$fd = dio_open('/dev/ttyS0', O_RDWR | O_NOCTTY | O_NONBLOCK);
+
+dio_close($fd);
+?>
+]]>
+ </programlisting>
+ </example>
<para>
Voir aussi <function>dio_close</function>.
</para>
http://cvs.php.net/diff.php/phpdoc-fr/reference/dio/functions/dio-seek.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc-fr/reference/dio/functions/dio-seek.xml
diff -u phpdoc-fr/reference/dio/functions/dio-seek.xml:1.7
phpdoc-fr/reference/dio/functions/dio-seek.xml:1.8
--- phpdoc-fr/reference/dio/functions/dio-seek.xml:1.7 Fri Aug 13 06:25:20 2004
+++ phpdoc-fr/reference/dio/functions/dio-seek.xml Thu Oct 28 10:25:38 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
-<!-- EN-Revision: 1.4 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.8 $ -->
+<!-- EN-Revision: 1.6 Maintainer: didou Status: ready -->
<refentry id="function.dio-seek">
<refnamediv>
<refname>dio_seek</refname>
@@ -45,6 +45,35 @@
</para>
</listitem>
</itemizedlist>
+ <example>
+ <title>
+ Setting the baud rate on a serial port
+ </title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$fd = dio_open('/dev/ttyS0', O_RDWR);
+
+dio_seek($fd, SEEK_SET, 10);
+// la position est maintenant à 10 caractères depuis le début du fichier
+
+dio_seek($fd, SEEK_CUR, -2);
+// la position est maintenant à 8 caractères depuis le début du fichier
+
+dio_seek($fd, SEEK_END, 5);
+// la position est maintenant à 5 caractères depuis la fin du fichier
+
+dio_seek($fd, SEEK_END, -10);
+// la position est maintenant à 10 caractères après la fin du fichier.
+// Les 10 caractères entre la fin du fichier et la position courante sont
+// complétés par des zéros.
+
+dio_close($fd);
+?>
+]]>
+ </programlisting>
+ </example>
</para>
</refsect1>
</refentry>
http://cvs.php.net/diff.php/phpdoc-fr/reference/dio/functions/dio-tcsetattr.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc-fr/reference/dio/functions/dio-tcsetattr.xml
diff -u phpdoc-fr/reference/dio/functions/dio-tcsetattr.xml:1.4
phpdoc-fr/reference/dio/functions/dio-tcsetattr.xml:1.5
--- phpdoc-fr/reference/dio/functions/dio-tcsetattr.xml:1.4 Thu Mar 4 12:49:57 2004
+++ phpdoc-fr/reference/dio/functions/dio-tcsetattr.xml Thu Oct 28 10:25:38 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
-<!-- EN-Revision: 1.7 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.5 $ -->
+<!-- EN-Revision: 1.8 Maintainer: didou Status: ready -->
<refentry id="function.dio-tcsetattr">
<refnamediv>
<refname>dio_tcsetattr</refname>
@@ -74,6 +74,7 @@
</programlisting>
</example>
</para>
+ ¬e.no-windows;
</refsect1>
</refentry>
http://cvs.php.net/diff.php/phpdoc-fr/reference/dio/functions/dio-truncate.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc-fr/reference/dio/functions/dio-truncate.xml
diff -u phpdoc-fr/reference/dio/functions/dio-truncate.xml:1.7
phpdoc-fr/reference/dio/functions/dio-truncate.xml:1.8
--- phpdoc-fr/reference/dio/functions/dio-truncate.xml:1.7 Thu Mar 4 12:49:57 2004
+++ phpdoc-fr/reference/dio/functions/dio-truncate.xml Thu Oct 28 10:25:38 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
-<!-- EN-Revision: 1.3 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.8 $ -->
+<!-- EN-Revision: 1.4 Maintainer: didou Status: ready -->
<refentry id="function.dio-truncate">
<refnamediv>
<refname>dio_truncate</refname>
@@ -22,6 +22,7 @@
peut être inchangé, ou bien agrandi. Dans ce dernier cas,
l'extension se fait avec des octets nuls. &return.success;
</para>
+ ¬e.no-windows;
</refsect1>
</refentry>